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.001759/0.001759, allocations: 109.4 kB / 17.21 MB, free: 6.27 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.00216/0.00216, allocations: 194 kB / 18.12 MB, free: 5.363 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.602/1.602, allocations: 222.9 MB / 241.8 MB, free: 15.56 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.21/0.21, allocations: 44.18 MB / 336.1 MB, free: 3.035 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 66.08 kB / 407.7 MB, free: 27.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1038, allocations: 60.83 MB / 468.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances): time 0.4198/0.5237, allocations: 179.9 MB / 0.6333 GB, free: 13.27 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.001921/0.5256, allocations: 0.9281 MB / 0.6342 GB, free: 12.34 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004115/0.526, allocations: 15.88 kB / 0.6342 GB, free: 12.32 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007261/0.5268, allocations: 175.1 kB / 0.6344 GB, free: 12.15 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006346/0.5275, allocations: 258.6 kB / 0.6346 GB, free: 11.9 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004436/0.5319, allocations: 1.657 MB / 0.6362 GB, free: 10.25 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.001335/0.5333, allocations: 1.302 MB / 0.6375 GB, free: 8.938 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004816/0.5338, allocations: 277.2 kB / 0.6378 GB, free: 8.664 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003446/0.5372, allocations: 1.422 MB / 0.6391 GB, free: 7.238 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000611/0.5379, allocations: 326.7 kB / 0.6395 GB, free: 6.918 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001001/0.538, allocations: 28 kB / 0.6395 GB, free: 6.891 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004696/0.5427, allocations: 2.819 MB / 0.6422 GB, free: 4.066 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002462/0.5429, allocations: 171.5 kB / 0.6424 GB, free: 3.898 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003555/0.5433, allocations: 242.9 kB / 0.6426 GB, free: 3.66 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0039/0.5472, allocations: 2.046 MB / 0.6446 GB, free: 1.609 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.755e-06/0.5472, allocations: 0 / 0.6446 GB, free: 1.609 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.5472, allocations: 7.938 kB / 0.6446 GB, free: 1.602 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.951e-05/0.5473, allocations: 0 / 0.6446 GB, free: 1.602 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.002361/0.5496, allocations: 1.04 MB / 0.6457 GB, free: 0.5 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.5497, allocations: 15.97 kB / 0.6457 GB, free: 496 kB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002903/0.55, allocations: 55.44 kB / 0.6457 GB, free: 440 kB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005231/0.5505, allocations: 373.8 kB / 0.6461 GB, free: 24 kB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.337e-05/0.5506, allocations: 29.05 kB / 0.6461 GB, free: 15.99 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.969e-05/0.5506, allocations: 39.94 kB / 0.6461 GB, free: 15.95 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008881/0.5515, allocations: 0.5161 MB / 0.6467 GB, free: 15.41 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.319e-05/0.5516, allocations: 4 kB / 0.6467 GB, free: 15.41 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.229e-05/0.5516, allocations: 19.98 kB / 0.6467 GB, free: 15.39 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.106e-05/0.5516, allocations: 8 kB / 0.6467 GB, free: 15.38 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008614/0.5525, allocations: 499.6 kB / 0.6472 GB, free: 14.89 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002589/0.5551, allocations: 1.978 MB / 0.6491 GB, free: 12.77 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007081/0.5558, allocations: 458.9 kB / 0.6495 GB, free: 12.28 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000304/0.5561, allocations: 182.5 kB / 0.6497 GB, free: 12.09 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007717/0.5569, allocations: 0.9415 MB / 0.6506 GB, free: 10.95 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.878e-05/0.557, allocations: 38.56 kB / 0.6507 GB, free: 10.9 MB / 494.1 MB Notification: Performance of pre-optimization done (n=30): time 4.288e-06/0.557, allocations: 0 / 0.6507 GB, free: 10.9 MB / 494.1 MB Notification: Performance of matching and sorting (n=30): time 0.001079/0.5581, allocations: 0.502 MB / 0.6511 GB, free: 10.39 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.615e-05/0.5581, allocations: 106.8 kB / 0.6513 GB, free: 10.26 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004259/0.5586, allocations: 397.6 kB / 0.6516 GB, free: 9.867 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.525e-05/0.5586, allocations: 33.7 kB / 0.6517 GB, free: 9.828 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001585/0.5588, allocations: 220.2 kB / 0.6519 GB, free: 9.609 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.596e-05/0.5589, allocations: 102.5 kB / 0.652 GB, free: 9.508 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001472/0.559, allocations: 78.06 kB / 0.652 GB, free: 9.426 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000158/0.5592, allocations: 350.8 kB / 0.6524 GB, free: 9.074 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003227/0.5595, allocations: 156.6 kB / 0.6525 GB, free: 8.922 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003758/0.5599, allocations: 262 kB / 0.6528 GB, free: 8.621 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007356/0.5606, allocations: 495.4 kB / 0.6533 GB, free: 8.082 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.5607, allocations: 0 / 0.6533 GB, free: 8.082 MB / 494.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009805/0.5616, allocations: 0.547 MB / 0.6538 GB, free: 7.516 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.797e-05/0.5617, allocations: 70.27 kB / 0.6539 GB, free: 7.438 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.5617, allocations: 8 kB / 0.6539 GB, free: 7.43 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.856e-05/0.5618, allocations: 8 kB / 0.6539 GB, free: 7.422 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003974/0.5622, allocations: 83.95 kB / 0.6539 GB, free: 7.34 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.359e-05/0.5622, allocations: 11.94 kB / 0.654 GB, free: 7.328 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004195/0.5626, allocations: 55.42 kB / 0.654 GB, free: 7.273 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.906e-05/0.5627, allocations: 23.98 kB / 0.654 GB, free: 7.25 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.0002114/0.5629, allocations: 182.2 kB / 0.6542 GB, free: 7.062 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001285/0.563, allocations: 47.53 kB / 0.6543 GB, free: 7.016 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009885/0.564, allocations: 484.8 kB / 0.6547 GB, free: 6.539 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.295e-06/0.564, allocations: 4 kB / 0.6547 GB, free: 6.535 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.5641, allocations: 3.938 kB / 0.6547 GB, free: 6.531 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.5641, allocations: 4 kB / 0.6547 GB, free: 6.527 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002873/0.5669, allocations: 2.437 MB / 0.6571 GB, free: 3.742 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.567, allocations: 4.219 kB / 0.6571 GB, free: 3.738 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003017/0.5673, allocations: 63.91 kB / 0.6572 GB, free: 3.676 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.403e-06/0.5673, allocations: 7.938 kB / 0.6572 GB, free: 3.668 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.592e-05/0.5673, allocations: 11.98 kB / 0.6572 GB, free: 3.656 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.749e-06/0.5673, allocations: 4 kB / 0.6572 GB, free: 3.652 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.5673, allocations: 0 / 0.6572 GB, free: 3.652 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000771/0.5681, allocations: 0.6395 MB / 0.6578 GB, free: 2.977 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001049/0.5682, allocations: 128.5 kB / 0.6579 GB, free: 2.832 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.913e-05/0.5683, allocations: 15.91 kB / 0.658 GB, free: 2.816 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004596/0.5688, allocations: 27.91 kB / 0.658 GB, free: 2.789 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.365e-05/0.5688, allocations: 23.97 kB / 0.658 GB, free: 2.766 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.31e-05/0.5689, allocations: 19.98 kB / 0.658 GB, free: 2.746 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003952/0.5693, allocations: 367.1 kB / 0.6584 GB, free: 2.387 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.714e-06/0.5693, allocations: 0 / 0.6584 GB, free: 2.387 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00104/0.5704, allocations: 335.7 kB / 0.6587 GB, free: 2.059 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.001154/0.5715, allocations: 0.4978 MB / 0.6592 GB, free: 1.566 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0008288/0.5724, allocations: 478.3 kB / 0.6596 GB, free: 1.074 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.5724, allocations: 0 / 0.6596 GB, free: 1.074 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003117/0.5727, allocations: 168.8 kB / 0.6598 GB, free: 0.9102 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001413/0.5741, allocations: 264.4 kB / 0.6601 GB, free: 0.6602 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001298/0.5754, allocations: 0.9346 MB / 0.661 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003895/0.5758, allocations: 0.8315 MB / 0.6618 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0004432/0.5763, allocations: 115.2 kB / 0.6619 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001174/0.5764, allocations: 47.42 kB / 0.6619 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of SimCode: time 2.2e-07/0.5764, allocations: 0 / 0.6619 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of Templates: time 0.02332/0.5997, allocations: 14.45 MB / 0.676 GB, free: 356 kB / 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