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.001205/0.001205, allocations: 104.1 kB / 17.63 MB, free: 5.504 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.00121/0.00121, allocations: 192 kB / 18.56 MB, free: 4.578 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.331/1.331, allocations: 222.9 MB / 242.2 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.208/0.208, allocations: 44.18 MB / 336.6 MB, free: 2.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 63.28 kB / 408.4 MB, free: 27.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.109, allocations: 60.83 MB / 469.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances): time 0.4285/0.5376, allocations: 181.3 MB / 0.6353 GB, free: 11.3 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.001905/0.5396, allocations: 0.8853 MB / 0.6362 GB, free: 10.41 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002116/0.5398, allocations: 11.94 kB / 0.6362 GB, free: 10.4 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000659/0.5405, allocations: 206.6 kB / 0.6364 GB, free: 10.2 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005308/0.5411, allocations: 278.3 kB / 0.6367 GB, free: 9.926 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004842/0.5459, allocations: 1.911 MB / 0.6385 GB, free: 8.02 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.001116/0.547, allocations: 0.975 MB / 0.6395 GB, free: 7.039 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004377/0.5475, allocations: 332.6 kB / 0.6398 GB, free: 6.719 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003106/0.5506, allocations: 1.534 MB / 0.6413 GB, free: 5.18 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004651/0.5511, allocations: 310.9 kB / 0.6416 GB, free: 4.875 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 9.088e-05/0.5512, allocations: 52 kB / 0.6416 GB, free: 4.824 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00459/0.5558, allocations: 2.687 MB / 0.6443 GB, free: 2.133 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002263/0.556, allocations: 195.5 kB / 0.6444 GB, free: 1.941 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000314/0.5564, allocations: 274.8 kB / 0.6447 GB, free: 1.672 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003417/0.5598, allocations: 2.015 MB / 0.6467 GB, free: 15.65 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.5598, allocations: 0 / 0.6467 GB, free: 15.65 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.5598, allocations: 0 / 0.6467 GB, free: 15.65 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.288e-06/0.5598, allocations: 0 / 0.6467 GB, free: 15.65 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.001903/0.5617, allocations: 1.036 MB / 0.6477 GB, free: 14.55 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.5618, allocations: 12.03 kB / 0.6477 GB, free: 14.54 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002739/0.5621, allocations: 59.42 kB / 0.6478 GB, free: 14.48 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004944/0.5626, allocations: 365.9 kB / 0.6481 GB, free: 14.08 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.291e-05/0.5626, allocations: 33 kB / 0.6481 GB, free: 14.05 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.629e-05/0.5627, allocations: 35.94 kB / 0.6482 GB, free: 14.02 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008495/0.5635, allocations: 0.5201 MB / 0.6487 GB, free: 13.47 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.5636, allocations: 0 / 0.6487 GB, free: 13.47 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.565e-05/0.5636, allocations: 24 kB / 0.6487 GB, free: 13.45 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.21e-05/0.5636, allocations: 8 kB / 0.6487 GB, free: 13.44 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008192/0.5645, allocations: 499.6 kB / 0.6492 GB, free: 12.95 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002558/0.567, allocations: 1.978 MB / 0.6511 GB, free: 10.83 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006714/0.5677, allocations: 452.7 kB / 0.6515 GB, free: 10.34 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003054/0.568, allocations: 178.5 kB / 0.6517 GB, free: 10.16 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007917/0.5688, allocations: 0.9533 MB / 0.6527 GB, free: 9 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.541e-05/0.5689, allocations: 42.5 kB / 0.6527 GB, free: 8.949 MB / 494.1 MB Notification: Performance of pre-optimization done (n=30): time 1.904e-06/0.5689, allocations: 0 / 0.6527 GB, free: 8.949 MB / 494.1 MB Notification: Performance of matching and sorting (n=30): time 0.001093/0.57, allocations: 499.7 kB / 0.6532 GB, free: 8.457 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.322e-05/0.5701, allocations: 110.8 kB / 0.6533 GB, free: 8.324 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004169/0.5705, allocations: 401.6 kB / 0.6537 GB, free: 7.922 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.297e-05/0.5705, allocations: 37.64 kB / 0.6537 GB, free: 7.879 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001555/0.5707, allocations: 220.1 kB / 0.6539 GB, free: 7.66 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.964e-05/0.5708, allocations: 102.5 kB / 0.654 GB, free: 7.559 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001272/0.5709, allocations: 74.06 kB / 0.6541 GB, free: 7.48 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.5711, allocations: 354.8 kB / 0.6544 GB, free: 7.125 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002954/0.5714, allocations: 152.6 kB / 0.6546 GB, free: 6.977 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003689/0.5717, allocations: 250 kB / 0.6548 GB, free: 6.688 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007049/0.5725, allocations: 487.9 kB / 0.6553 GB, free: 6.152 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.065e-06/0.5725, allocations: 0 / 0.6553 GB, free: 6.152 MB / 494.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009786/0.5735, allocations: 0.5508 MB / 0.6558 GB, free: 5.586 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.121e-05/0.5735, allocations: 63.41 kB / 0.6559 GB, free: 5.512 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.5736, allocations: 7.938 kB / 0.6559 GB, free: 5.504 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.891e-05/0.5736, allocations: 4.375 kB / 0.6559 GB, free: 5.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003799/0.574, allocations: 87.83 kB / 0.656 GB, free: 5.414 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.545e-05/0.574, allocations: 11.98 kB / 0.656 GB, free: 5.402 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003407/0.5743, allocations: 51.44 kB / 0.656 GB, free: 5.352 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.192e-05/0.5744, allocations: 23.98 kB / 0.656 GB, free: 5.328 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.0002458/0.5747, allocations: 181.6 kB / 0.6562 GB, free: 5.141 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001408/0.5748, allocations: 43.53 kB / 0.6562 GB, free: 5.098 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001036/0.5759, allocations: 498.8 kB / 0.6567 GB, free: 4.605 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.394e-06/0.5759, allocations: 4 kB / 0.6567 GB, free: 4.602 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.5759, allocations: 0 / 0.6567 GB, free: 4.602 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.5759, allocations: 0 / 0.6567 GB, free: 4.602 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003067/0.579, allocations: 2.437 MB / 0.6591 GB, free: 1.816 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.579, allocations: 0 / 0.6591 GB, free: 1.816 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002766/0.5793, allocations: 63.91 kB / 0.6592 GB, free: 1.754 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.115e-05/0.5793, allocations: 8.125 kB / 0.6592 GB, free: 1.746 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.705e-05/0.5793, allocations: 15.98 kB / 0.6592 GB, free: 1.73 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.29e-06/0.5793, allocations: 4 kB / 0.6592 GB, free: 1.727 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/0.5794, allocations: 0 / 0.6592 GB, free: 1.727 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008501/0.5802, allocations: 0.6354 MB / 0.6598 GB, free: 1.055 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001312/0.5804, allocations: 128.4 kB / 0.6599 GB, free: 0.9102 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.09e-05/0.5804, allocations: 15.91 kB / 0.66 GB, free: 0.8945 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004507/0.5809, allocations: 24.03 kB / 0.66 GB, free: 0.8711 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.403e-05/0.581, allocations: 27.97 kB / 0.66 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.423e-05/0.5811, allocations: 23.98 kB / 0.66 GB, free: 0.8203 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.000412/0.5815, allocations: 363 kB / 0.6604 GB, free: 480 kB / 494.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5815, allocations: 4 kB / 0.6604 GB, free: 476 kB / 494.1 MB Notification: Performance of remove unused functions: time 0.001114/0.5826, allocations: 339.7 kB / 0.6607 GB, free: 136 kB / 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.001638/0.5842, allocations: 0.4915 MB / 0.6612 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00112/0.5854, allocations: 483 kB / 0.6616 GB, free: 15.15 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.125e-05/0.5854, allocations: 4 kB / 0.6616 GB, free: 15.15 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.00038/0.5858, allocations: 179.7 kB / 0.6618 GB, free: 14.97 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001811/0.5876, allocations: 270.8 kB / 0.6621 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001626/0.5893, allocations: 0.8035 MB / 0.6629 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005277/0.5898, allocations: 0.8429 MB / 0.6637 GB, free: 13 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0005011/0.5903, allocations: 110.8 kB / 0.6638 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001288/0.5905, allocations: 51.42 kB / 0.6638 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of SimCode: time 1.332e-06/0.5905, allocations: 0 / 0.6638 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of Templates: time 0.02605/0.6165, allocations: 14.88 MB / 0.6784 GB, free: 14.11 MB / 0.5137 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