Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001554/0.001554, allocations: 109.2 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00191/0.001911, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.449/1.449, allocations: 227.4 MB / 246.3 MB, free: 9.051 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2182/0.2182, allocations: 46.11 MB / 343.6 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002106/0.002106, allocations: 76.22 kB / 416.9 MB, free: 20.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1339/0.136, allocations: 62.44 MB / 479.4 MB, free: 5.609 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances): time 0.4266/0.5626, allocations: 183.3 MB / 0.6472 GB, free: 12.3 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002057/0.5647, allocations: 0.9328 MB / 0.6481 GB, free: 11.36 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002587/0.565, allocations: 7.938 kB / 0.6481 GB, free: 11.36 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006845/0.5657, allocations: 179 kB / 0.6483 GB, free: 11.18 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005153/0.5662, allocations: 270.6 kB / 0.6486 GB, free: 10.91 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004531/0.5708, allocations: 1.646 MB / 0.6502 GB, free: 9.27 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001323/0.5721, allocations: 1.306 MB / 0.6514 GB, free: 7.961 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000395/0.5725, allocations: 274.7 kB / 0.6517 GB, free: 7.691 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003096/0.5756, allocations: 1.449 MB / 0.6531 GB, free: 6.238 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004299/0.5761, allocations: 322.8 kB / 0.6534 GB, free: 5.922 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.448e-05/0.5762, allocations: 24 kB / 0.6534 GB, free: 5.898 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004702/0.5809, allocations: 2.874 MB / 0.6563 GB, free: 3.02 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002443/0.5811, allocations: 175.5 kB / 0.6564 GB, free: 2.848 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003095/0.5815, allocations: 250.8 kB / 0.6567 GB, free: 2.602 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003603/0.5851, allocations: 2.066 MB / 0.6587 GB, free: 0.5312 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.5851, allocations: 0 / 0.6587 GB, free: 0.5312 MB / 494.1 MB Notification: Performance of FrontEnd: time 8.02e-07/0.5851, allocations: 4 kB / 0.6587 GB, free: 0.5273 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.096e-06/0.5851, allocations: 0 / 0.6587 GB, free: 0.5273 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.00194/0.5871, allocations: 1.06 MB / 0.6597 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.677e-05/0.5871, allocations: 8.031 kB / 0.6597 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001046/0.5872, allocations: 74.53 kB / 0.6598 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002604/0.5875, allocations: 59.42 kB / 0.6599 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005103/0.588, allocations: 369.9 kB / 0.6602 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.072e-05/0.5881, allocations: 36.94 kB / 0.6602 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.569e-05/0.5881, allocations: 32 kB / 0.6603 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009136/0.589, allocations: 0.5159 MB / 0.6608 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.321e-05/0.5891, allocations: 0 / 0.6608 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.007e-05/0.5891, allocations: 20 kB / 0.6608 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.5891, allocations: 12 kB / 0.6608 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008691/0.59, allocations: 499.3 kB / 0.6613 GB, free: 13.72 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002602/0.5926, allocations: 1.978 MB / 0.6632 GB, free: 11.6 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007192/0.5934, allocations: 457.9 kB / 0.6636 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003167/0.5937, allocations: 186.5 kB / 0.6638 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008176/0.5945, allocations: 0.9454 MB / 0.6647 GB, free: 9.77 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.736e-05/0.5946, allocations: 42.5 kB / 0.6648 GB, free: 9.719 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=30): time 1.643e-06/0.5946, allocations: 0 / 0.6648 GB, free: 9.719 MB / 0.4981 GB Notification: Performance of matching and sorting (n=30): time 0.001143/0.5957, allocations: 0.4886 MB / 0.6653 GB, free: 9.227 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.561e-05/0.5958, allocations: 110.8 kB / 0.6654 GB, free: 9.094 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004244/0.5962, allocations: 401.5 kB / 0.6658 GB, free: 8.695 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.423e-05/0.5963, allocations: 33.7 kB / 0.6658 GB, free: 8.656 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001552/0.5964, allocations: 216.3 kB / 0.666 GB, free: 8.441 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 7.412e-05/0.5965, allocations: 106.4 kB / 0.6661 GB, free: 8.336 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001349/0.5967, allocations: 78.06 kB / 0.6662 GB, free: 8.254 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001491/0.5968, allocations: 354.7 kB / 0.6665 GB, free: 7.898 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003271/0.5971, allocations: 152.6 kB / 0.6667 GB, free: 7.75 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003838/0.5975, allocations: 258.3 kB / 0.6669 GB, free: 7.453 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007358/0.5983, allocations: 487.5 kB / 0.6674 GB, free: 6.922 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.5983, allocations: 0 / 0.6674 GB, free: 6.922 MB / 0.4981 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009949/0.5993, allocations: 0.5509 MB / 0.6679 GB, free: 6.352 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.288e-05/0.5994, allocations: 63.41 kB / 0.668 GB, free: 6.277 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.417e-06/0.5994, allocations: 4 kB / 0.668 GB, free: 6.273 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.57e-05/0.5994, allocations: 4 kB / 0.668 GB, free: 6.27 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004029/0.5998, allocations: 92.19 kB / 0.6681 GB, free: 6.18 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.125e-05/0.5998, allocations: 4 kB / 0.6681 GB, free: 6.176 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003645/0.6002, allocations: 59.42 kB / 0.6681 GB, free: 6.117 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.555e-05/0.6003, allocations: 23.98 kB / 0.6681 GB, free: 6.094 MB / 0.4981 GB 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.0002121/0.6005, allocations: 189.6 kB / 0.6683 GB, free: 5.898 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001257/0.6006, allocations: 43.52 kB / 0.6684 GB, free: 5.855 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001033/0.6016, allocations: 492.3 kB / 0.6688 GB, free: 5.371 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.6017, allocations: 11.88 kB / 0.6688 GB, free: 5.359 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.6017, allocations: 0 / 0.6688 GB, free: 5.359 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.6017, allocations: 3.984 kB / 0.6688 GB, free: 5.355 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002956/0.6046, allocations: 2.437 MB / 0.6712 GB, free: 2.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.6047, allocations: 0 / 0.6712 GB, free: 2.57 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002869/0.605, allocations: 63.91 kB / 0.6713 GB, free: 2.508 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.656e-06/0.605, allocations: 7.938 kB / 0.6713 GB, free: 2.5 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.453e-05/0.605, allocations: 8 kB / 0.6713 GB, free: 2.492 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.849e-06/0.605, allocations: 8.188 kB / 0.6713 GB, free: 2.484 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.605, allocations: 0 / 0.6713 GB, free: 2.484 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008234/0.6059, allocations: 0.6417 MB / 0.6719 GB, free: 1.809 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001116/0.606, allocations: 128.5 kB / 0.6721 GB, free: 1.664 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.367e-05/0.6061, allocations: 19.84 kB / 0.6721 GB, free: 1.645 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004307/0.6065, allocations: 15.98 kB / 0.6721 GB, free: 1.629 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.217e-05/0.6066, allocations: 31.91 kB / 0.6721 GB, free: 1.598 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.246e-05/0.6066, allocations: 23.98 kB / 0.6721 GB, free: 1.574 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0004149/0.607, allocations: 363.1 kB / 0.6725 GB, free: 1.219 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.7e-07/0.6071, allocations: 0 / 0.6725 GB, free: 1.219 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001134/0.6082, allocations: 351.6 kB / 0.6728 GB, free: 0.875 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.002243/0.6104, allocations: 1.58 MB / 0.6744 GB, free: 15.26 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0008212/0.6113, allocations: 473.5 kB / 0.6748 GB, free: 14.78 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.6113, allocations: 0 / 0.6748 GB, free: 14.78 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0003274/0.6116, allocations: 167.7 kB / 0.675 GB, free: 14.61 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001405/0.613, allocations: 267.1 kB / 0.6752 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006082/0.6191, allocations: 4.77 MB / 0.6799 GB, free: 9.371 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004436/0.6196, allocations: 0.8389 MB / 0.6807 GB, free: 8.504 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.000481/0.6201, allocations: 126.3 kB / 0.6808 GB, free: 8.383 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002168/0.6203, allocations: 147.4 kB / 0.681 GB, free: 8.238 MB / 0.5137 GB Notification: Performance of SimCode: time 8.02e-07/0.6203, allocations: 0 / 0.681 GB, free: 8.238 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03287/0.6532, allocations: 19 MB / 0.6995 GB, free: 5.469 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002959/0.6535, allocations: 271.2 kB / 0.6998 GB, free: 5.117 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.529/3.183, allocations: 0 / 0.6998 GB, free: 5.117 MB / 0.5294 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches