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: translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|traceSubstance.C|traceSubstance1.C",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances") translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|traceSubstance.C|traceSubstance1.C",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001262/0.001262, allocations: 110.9 kB / 17.33 MB, free: 5.672 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.001154/0.001154, allocations: 193.3 kB / 18.25 MB, free: 4.977 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.344/1.344, allocations: 222.9 MB / 241.9 MB, free: 15.42 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.209/0.209, allocations: 44.17 MB / 336.2 MB, free: 2.867 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 59.28 kB / 407.9 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1132, allocations: 60.83 MB / 468.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances): time 0.418/0.5313, allocations: 179.2 MB / 0.6327 GB, free: 13.83 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.002241/0.5336, allocations: 0.9164 MB / 0.6336 GB, free: 12.91 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002568/0.5339, allocations: 7.938 kB / 0.6336 GB, free: 12.91 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007732/0.5346, allocations: 183 kB / 0.6338 GB, free: 12.73 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006196/0.5354, allocations: 270.6 kB / 0.634 GB, free: 12.46 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005696/0.5411, allocations: 1.734 MB / 0.6357 GB, free: 10.73 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.001307/0.5424, allocations: 0.9788 MB / 0.6367 GB, free: 9.746 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005082/0.5429, allocations: 322.6 kB / 0.637 GB, free: 9.438 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00348/0.5464, allocations: 1.504 MB / 0.6385 GB, free: 7.93 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005274/0.5469, allocations: 334.8 kB / 0.6388 GB, free: 7.602 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 8.765e-05/0.547, allocations: 48 kB / 0.6388 GB, free: 7.555 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005143/0.5522, allocations: 2.78 MB / 0.6415 GB, free: 4.77 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000305/0.5525, allocations: 207.5 kB / 0.6417 GB, free: 4.566 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004369/0.553, allocations: 270.8 kB / 0.642 GB, free: 4.301 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004224/0.5572, allocations: 2.073 MB / 0.644 GB, free: 2.223 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.5572, allocations: 0 / 0.644 GB, free: 2.223 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.5573, allocations: 4 kB / 0.644 GB, free: 2.219 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.63e-05/0.5573, allocations: 0 / 0.644 GB, free: 2.219 MB / 478.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.002037/0.5593, allocations: 1.033 MB / 0.645 GB, free: 1.125 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.206e-05/0.5594, allocations: 16.02 kB / 0.6451 GB, free: 1.109 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002972/0.5597, allocations: 59.44 kB / 0.6451 GB, free: 1.051 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005058/0.5602, allocations: 365.9 kB / 0.6455 GB, free: 0.6523 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.528e-05/0.5602, allocations: 29 kB / 0.6455 GB, free: 0.625 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.433e-05/0.5603, allocations: 39.94 kB / 0.6455 GB, free: 0.5859 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00103/0.5613, allocations: 0.5201 MB / 0.646 GB, free: 36 kB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.926e-05/0.5614, allocations: 0 / 0.646 GB, free: 36 kB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.381e-05/0.5615, allocations: 20.88 kB / 0.6461 GB, free: 16 kB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.496e-05/0.5615, allocations: 8 kB / 0.6461 GB, free: 8 kB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001153/0.5626, allocations: 499.7 kB / 0.6465 GB, free: 15.52 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002727/0.5654, allocations: 1.976 MB / 0.6485 GB, free: 13.4 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007613/0.5662, allocations: 448.7 kB / 0.6489 GB, free: 12.92 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000326/0.5665, allocations: 197.8 kB / 0.6491 GB, free: 12.72 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009611/0.5675, allocations: 0.9455 MB / 0.65 GB, free: 11.57 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.575e-05/0.5675, allocations: 42.5 kB / 0.6501 GB, free: 11.52 MB / 494.1 MB Notification: Performance of pre-optimization done (n=30): time 2.464e-06/0.5675, allocations: 0 / 0.6501 GB, free: 11.52 MB / 494.1 MB Notification: Performance of matching and sorting (n=30): time 0.001144/0.5687, allocations: 0.4931 MB / 0.6505 GB, free: 11.02 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.708e-05/0.5688, allocations: 106.8 kB / 0.6506 GB, free: 10.89 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004403/0.5692, allocations: 405.5 kB / 0.651 GB, free: 10.49 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 5.01e-05/0.5693, allocations: 33.7 kB / 0.6511 GB, free: 10.45 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001595/0.5694, allocations: 216.1 kB / 0.6513 GB, free: 10.23 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.953e-05/0.5695, allocations: 98.55 kB / 0.6514 GB, free: 10.14 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001458/0.5697, allocations: 82.06 kB / 0.6514 GB, free: 10.05 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001683/0.5699, allocations: 350.8 kB / 0.6518 GB, free: 9.699 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003326/0.5702, allocations: 148.6 kB / 0.6519 GB, free: 9.555 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003952/0.5706, allocations: 262 kB / 0.6522 GB, free: 9.254 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007454/0.5714, allocations: 483.3 kB / 0.6526 GB, free: 8.727 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.5714, allocations: 4 kB / 0.6526 GB, free: 8.723 MB / 494.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009657/0.5723, allocations: 0.547 MB / 0.6532 GB, free: 8.156 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.857e-05/0.5724, allocations: 59.41 kB / 0.6532 GB, free: 8.086 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.598e-05/0.5724, allocations: 8.312 kB / 0.6532 GB, free: 8.078 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.474e-05/0.5725, allocations: 8 kB / 0.6532 GB, free: 8.07 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004117/0.5729, allocations: 91.81 kB / 0.6533 GB, free: 7.98 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.161e-05/0.5729, allocations: 4 kB / 0.6533 GB, free: 7.977 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003955/0.5733, allocations: 55.42 kB / 0.6534 GB, free: 7.922 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.952e-05/0.5734, allocations: 20 kB / 0.6534 GB, free: 7.902 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.0002486/0.5736, allocations: 190.2 kB / 0.6536 GB, free: 7.707 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001328/0.5738, allocations: 43.53 kB / 0.6536 GB, free: 7.664 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001043/0.5748, allocations: 486 kB / 0.6541 GB, free: 7.184 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.121e-06/0.5748, allocations: 4 kB / 0.6541 GB, free: 7.18 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.5749, allocations: 0 / 0.6541 GB, free: 7.18 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.341e-05/0.5749, allocations: 7.984 kB / 0.6541 GB, free: 7.172 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002921/0.5778, allocations: 2.437 MB / 0.6565 GB, free: 4.387 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/0.5778, allocations: 0 / 0.6565 GB, free: 4.387 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003023/0.5781, allocations: 63.89 kB / 0.6565 GB, free: 4.324 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.092e-05/0.5782, allocations: 8.219 kB / 0.6565 GB, free: 4.316 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.749e-05/0.5782, allocations: 8 kB / 0.6565 GB, free: 4.309 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.791e-06/0.5782, allocations: 4 kB / 0.6565 GB, free: 4.305 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.5782, allocations: 4.062 kB / 0.6566 GB, free: 4.301 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008644/0.5791, allocations: 0.6433 MB / 0.6572 GB, free: 3.621 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001292/0.5792, allocations: 136.4 kB / 0.6573 GB, free: 3.469 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.394e-05/0.5793, allocations: 11.91 kB / 0.6573 GB, free: 3.457 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004498/0.5798, allocations: 23.98 kB / 0.6573 GB, free: 3.434 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.741e-05/0.5798, allocations: 19.97 kB / 0.6574 GB, free: 3.414 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.132e-05/0.5799, allocations: 19.98 kB / 0.6574 GB, free: 3.395 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0004003/0.5803, allocations: 367 kB / 0.6577 GB, free: 3.035 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5803, allocations: 4 kB / 0.6577 GB, free: 3.031 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001234/0.5816, allocations: 343.7 kB / 0.6581 GB, free: 2.695 MB / 494.1 MB 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.001263/0.5828, allocations: 493.8 kB / 0.6585 GB, free: 2.223 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0008959/0.5837, allocations: 494.2 kB / 0.659 GB, free: 1.715 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.5838, allocations: 0 / 0.659 GB, free: 1.715 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003062/0.5841, allocations: 167.7 kB / 0.6592 GB, free: 1.551 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001477/0.5856, allocations: 290 kB / 0.6594 GB, free: 1.289 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001399/0.587, allocations: 0.9363 MB / 0.6604 GB, free: 308 kB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004509/0.5874, allocations: 0.839 MB / 0.6612 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0004972/0.5879, allocations: 123.5 kB / 0.6613 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001209/0.5881, allocations: 39.44 kB / 0.6613 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of SimCode: time 3.1e-07/0.5881, allocations: 0 / 0.6613 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of Templates: time 0.02514/0.6132, allocations: 14.77 MB / 0.6758 GB, free: 0.6523 MB / 0.4981 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Sensors/TestTraceSubstances/TestTraceSubstances.csv","/var/lib/jenkins/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