Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001121/0.001121, allocations: 104.2 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001173/0.001173, allocations: 191.9 kB / 18.56 MB, free: 4.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.343/1.343, allocations: 222.9 MB / 242.3 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2055/0.2055, allocations: 44.19 MB / 336.6 MB, free: 2.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 64.14 kB / 408.5 MB, free: 27.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.117, allocations: 60.82 MB / 469.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances): time 0.3926/0.5096, allocations: 181.3 MB / 0.6354 GB, free: 11.22 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.001775/0.5114, allocations: 0.9047 MB / 0.6363 GB, free: 10.32 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001931/0.5116, allocations: 11.94 kB / 0.6363 GB, free: 10.3 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005855/0.5122, allocations: 198.7 kB / 0.6365 GB, free: 10.11 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004878/0.5127, allocations: 282.3 kB / 0.6368 GB, free: 9.832 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004606/0.5173, allocations: 1.894 MB / 0.6386 GB, free: 7.938 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.001011/0.5184, allocations: 0.9788 MB / 0.6396 GB, free: 6.953 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004262/0.5188, allocations: 336.1 kB / 0.6399 GB, free: 6.629 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003069/0.5219, allocations: 1.527 MB / 0.6414 GB, free: 5.098 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004492/0.5223, allocations: 322.8 kB / 0.6417 GB, free: 4.781 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 8.89e-05/0.5224, allocations: 51.94 kB / 0.6417 GB, free: 4.73 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004298/0.5267, allocations: 2.683 MB / 0.6444 GB, free: 2.043 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000234/0.527, allocations: 195.5 kB / 0.6445 GB, free: 1.852 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002952/0.5273, allocations: 266.9 kB / 0.6448 GB, free: 1.59 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003239/0.5306, allocations: 2.011 MB / 0.6468 GB, free: 15.57 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.5306, allocations: 0 / 0.6468 GB, free: 15.57 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.235e-06/0.5306, allocations: 0 / 0.6468 GB, free: 15.57 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.308e-05/0.5306, allocations: 0 / 0.6468 GB, free: 15.57 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.001932/0.5325, allocations: 1.044 MB / 0.6478 GB, free: 14.47 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.5326, allocations: 12.03 kB / 0.6478 GB, free: 14.46 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.177e-05/0.5327, allocations: 74.53 kB / 0.6479 GB, free: 14.38 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002666/0.533, allocations: 59.42 kB / 0.6479 GB, free: 14.32 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000491/0.5335, allocations: 362 kB / 0.6483 GB, free: 13.92 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.863e-05/0.5335, allocations: 32.94 kB / 0.6483 GB, free: 13.89 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.916e-05/0.5336, allocations: 40 kB / 0.6483 GB, free: 13.85 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008511/0.5344, allocations: 0.5201 MB / 0.6488 GB, free: 13.3 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.316e-05/0.5345, allocations: 0 / 0.6488 GB, free: 13.3 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.432e-05/0.5345, allocations: 19.94 kB / 0.6489 GB, free: 13.28 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.739e-06/0.5345, allocations: 11.94 kB / 0.6489 GB, free: 13.27 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008766/0.5354, allocations: 0.4927 MB / 0.6494 GB, free: 12.78 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002597/0.538, allocations: 1.978 MB / 0.6513 GB, free: 10.66 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006957/0.5387, allocations: 453.8 kB / 0.6517 GB, free: 10.17 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003312/0.5391, allocations: 182.4 kB / 0.6519 GB, free: 9.98 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007875/0.5399, allocations: 0.9494 MB / 0.6528 GB, free: 8.828 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.633e-05/0.5399, allocations: 42.56 kB / 0.6529 GB, free: 8.777 MB / 494.1 MB Notification: Performance of pre-optimization done (n=30): time 2.074e-06/0.5399, allocations: 0 / 0.6529 GB, free: 8.777 MB / 494.1 MB Notification: Performance of matching and sorting (n=30): time 0.001091/0.541, allocations: 0.4934 MB / 0.6533 GB, free: 8.281 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.04e-05/0.5411, allocations: 110.8 kB / 0.6535 GB, free: 8.148 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004112/0.5415, allocations: 401.6 kB / 0.6538 GB, free: 7.746 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.38e-05/0.5416, allocations: 33.7 kB / 0.6539 GB, free: 7.707 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000145/0.5417, allocations: 224 kB / 0.6541 GB, free: 7.484 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.264e-05/0.5418, allocations: 98.55 kB / 0.6542 GB, free: 7.387 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001354/0.5419, allocations: 82.06 kB / 0.6543 GB, free: 7.301 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.5421, allocations: 350.7 kB / 0.6546 GB, free: 6.949 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003556/0.5424, allocations: 144.7 kB / 0.6547 GB, free: 6.809 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003912/0.5428, allocations: 262 kB / 0.655 GB, free: 6.508 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000726/0.5436, allocations: 483.3 kB / 0.6554 GB, free: 5.98 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.5436, allocations: 4 kB / 0.6554 GB, free: 5.977 MB / 494.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009586/0.5445, allocations: 0.547 MB / 0.656 GB, free: 5.41 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.188e-05/0.5446, allocations: 66.2 kB / 0.656 GB, free: 5.336 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.238e-06/0.5446, allocations: 4 kB / 0.656 GB, free: 5.332 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.5446, allocations: 4 kB / 0.656 GB, free: 5.328 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000402/0.5451, allocations: 83.89 kB / 0.6561 GB, free: 5.246 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.253e-05/0.5451, allocations: 4.375 kB / 0.6561 GB, free: 5.242 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003261/0.5454, allocations: 63.3 kB / 0.6562 GB, free: 5.18 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.8e-05/0.5455, allocations: 23.98 kB / 0.6562 GB, free: 5.156 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 2 (traceSubstance.ind,traceSubstance1.ind) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002252/0.5457, allocations: 189.6 kB / 0.6564 GB, free: 4.961 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001261/0.5458, allocations: 39.53 kB / 0.6564 GB, free: 4.922 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001018/0.5469, allocations: 481.8 kB / 0.6569 GB, free: 4.449 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.103e-06/0.5469, allocations: 12.03 kB / 0.6569 GB, free: 4.438 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.034e-05/0.5469, allocations: 7.984 kB / 0.6569 GB, free: 4.43 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.5469, allocations: 0 / 0.6569 GB, free: 4.43 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002789/0.5497, allocations: 2.429 MB / 0.6593 GB, free: 1.652 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.54e-06/0.5498, allocations: 4 kB / 0.6593 GB, free: 1.648 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000291/0.55, allocations: 59.91 kB / 0.6593 GB, free: 1.59 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.236e-06/0.5501, allocations: 11.88 kB / 0.6594 GB, free: 1.578 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.365e-05/0.5501, allocations: 8 kB / 0.6594 GB, free: 1.57 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.923e-06/0.5501, allocations: 7.984 kB / 0.6594 GB, free: 1.562 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/0.5501, allocations: 12.12 kB / 0.6594 GB, free: 1.551 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008341/0.551, allocations: 0.6255 MB / 0.66 GB, free: 0.8906 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001164/0.5511, allocations: 136.4 kB / 0.6601 GB, free: 0.7383 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.766e-05/0.5512, allocations: 15.91 kB / 0.6601 GB, free: 0.7227 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004532/0.5516, allocations: 23.98 kB / 0.6602 GB, free: 0.6992 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.933e-05/0.5517, allocations: 23.97 kB / 0.6602 GB, free: 0.6758 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.592e-05/0.5518, allocations: 19.98 kB / 0.6602 GB, free: 0.6562 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003977/0.5522, allocations: 363.1 kB / 0.6606 GB, free: 312 kB / 494.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5522, allocations: 0 / 0.6606 GB, free: 312 kB / 494.1 MB Notification: Performance of remove unused functions: time 0.001078/0.5533, allocations: 343.8 kB / 0.6609 GB, free: 15.96 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002277/0.5555, allocations: 1.563 MB / 0.6624 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0008611/0.5564, allocations: 483.2 kB / 0.6629 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.224e-06/0.5564, allocations: 8.125 kB / 0.6629 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003318/0.5568, allocations: 163.7 kB / 0.663 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001536/0.5583, allocations: 291.7 kB / 0.6633 GB, free: 13.44 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006268/0.5646, allocations: 4.65 MB / 0.6678 GB, free: 8.562 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000418/0.5651, allocations: 0.8385 MB / 0.6687 GB, free: 7.699 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0004882/0.5656, allocations: 114.7 kB / 0.6688 GB, free: 7.59 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002236/0.5658, allocations: 147.4 kB / 0.6689 GB, free: 7.449 MB / 0.4981 GB Notification: Performance of SimCode: time 8.22e-07/0.5658, allocations: 0 / 0.6689 GB, free: 7.449 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03992/0.6057, allocations: 19.4 MB / 0.6879 GB, free: 4.301 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.872/8.477, allocations: 11.84 kB / 0.6879 GB, free: 4.289 MB / 0.5137 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Sensors/TestTraceSubstances/TestTraceSubstances.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches