Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001154/0.001154, allocations: 108.5 kB / 17.03 MB, free: 5.664 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.00107/0.00107, allocations: 192.1 kB / 17.96 MB, free: 5.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.375/1.375, allocations: 205.1 MB / 223.8 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2044/0.2044, allocations: 43.53 MB / 314.7 MB, free: 472 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001463, allocations: 68.69 kB / 384.2 MB, free: 56.39 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09804/0.09952, allocations: 57.79 MB / 442 MB, free: 6.129 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances): time 0.4052/0.5048, allocations: 186.3 MB / 0.6135 GB, free: 5.129 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002017/0.5069, allocations: 0.8978 MB / 0.6144 GB, free: 4.465 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002682/0.5072, allocations: 15.19 kB / 0.6144 GB, free: 4.457 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006616/0.5078, allocations: 209 kB / 0.6146 GB, free: 4.281 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005415/0.5084, allocations: 273.5 kB / 0.6149 GB, free: 4.059 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006221/0.5146, allocations: 2.148 MB / 0.617 GB, free: 2.578 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001271/0.5159, allocations: 0.9805 MB / 0.6179 GB, free: 2.012 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004814/0.5164, allocations: 333.3 kB / 0.6182 GB, free: 1.809 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003704/0.5201, allocations: 1.697 MB / 0.6199 GB, free: 0.7891 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005043/0.5207, allocations: 315.3 kB / 0.6202 GB, free: 0.6055 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 7.443e-05/0.5207, allocations: 47.47 kB / 0.6202 GB, free: 0.6055 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005171/0.5259, allocations: 2.936 MB / 0.6231 GB, free: 14.8 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002632/0.5262, allocations: 191.5 kB / 0.6233 GB, free: 14.62 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003889/0.5266, allocations: 278.8 kB / 0.6236 GB, free: 14.34 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0039/0.5305, allocations: 2.109 MB / 0.6256 GB, free: 12.23 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.5305, allocations: 0 / 0.6256 GB, free: 12.23 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.5306, allocations: 4 kB / 0.6256 GB, free: 12.23 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.368e-06/0.5306, allocations: 0 / 0.6256 GB, free: 12.23 MB / 446.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.002136/0.5327, allocations: 1.064 MB / 0.6267 GB, free: 11.1 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.706e-05/0.5328, allocations: 12.03 kB / 0.6267 GB, free: 11.09 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003055/0.5331, allocations: 59.42 kB / 0.6267 GB, free: 11.03 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006189/0.5337, allocations: 385.8 kB / 0.6271 GB, free: 10.61 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.205e-05/0.5338, allocations: 29 kB / 0.6271 GB, free: 10.59 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.974e-05/0.5338, allocations: 40 kB / 0.6272 GB, free: 10.55 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000899/0.5347, allocations: 0.5206 MB / 0.6277 GB, free: 10 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.298e-05/0.5348, allocations: 0 / 0.6277 GB, free: 10 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.732e-05/0.5348, allocations: 16 kB / 0.6277 GB, free: 9.984 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.199e-05/0.5348, allocations: 16 kB / 0.6277 GB, free: 9.969 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008564/0.5357, allocations: 499.5 kB / 0.6282 GB, free: 9.48 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002642/0.5383, allocations: 1.967 MB / 0.6301 GB, free: 7.371 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007482/0.5391, allocations: 461.7 kB / 0.6305 GB, free: 6.875 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003166/0.5394, allocations: 182.4 kB / 0.6307 GB, free: 6.688 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008007/0.5402, allocations: 0.9455 MB / 0.6316 GB, free: 5.539 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.517e-05/0.5403, allocations: 42.55 kB / 0.6317 GB, free: 5.488 MB / 446.1 MB Notification: Performance of pre-optimization done (n=30): time 1.853e-06/0.5403, allocations: 0 / 0.6317 GB, free: 5.488 MB / 446.1 MB Notification: Performance of matching and sorting (n=30): time 0.001116/0.5414, allocations: 0.4968 MB / 0.6322 GB, free: 4.988 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.753e-05/0.5415, allocations: 110.8 kB / 0.6323 GB, free: 4.855 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004407/0.5419, allocations: 397.6 kB / 0.6326 GB, free: 4.461 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.387e-05/0.542, allocations: 37.7 kB / 0.6327 GB, free: 4.418 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001475/0.5422, allocations: 212.1 kB / 0.6329 GB, free: 4.207 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.936e-05/0.5422, allocations: 102.5 kB / 0.633 GB, free: 4.105 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001324/0.5424, allocations: 81.97 kB / 0.6331 GB, free: 4.02 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.5425, allocations: 350.8 kB / 0.6334 GB, free: 3.668 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002996/0.5428, allocations: 148.7 kB / 0.6335 GB, free: 3.523 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003692/0.5432, allocations: 266 kB / 0.6338 GB, free: 3.219 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000694/0.5439, allocations: 483.5 kB / 0.6342 GB, free: 2.691 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.648e-06/0.5439, allocations: 4 kB / 0.6343 GB, free: 2.688 MB / 446.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.00095/0.5449, allocations: 0.5508 MB / 0.6348 GB, free: 2.117 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.26e-05/0.545, allocations: 63.39 kB / 0.6348 GB, free: 2.043 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.824e-06/0.545, allocations: 4.375 kB / 0.6349 GB, free: 2.039 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.625e-05/0.545, allocations: 8 kB / 0.6349 GB, free: 2.031 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000391/0.5454, allocations: 83.89 kB / 0.6349 GB, free: 1.949 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.04e-05/0.5454, allocations: 4 kB / 0.6349 GB, free: 1.945 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003188/0.5457, allocations: 47.52 kB / 0.635 GB, free: 1.898 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.233e-05/0.5458, allocations: 23.98 kB / 0.635 GB, free: 1.875 MB / 446.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.000211/0.546, allocations: 197.6 kB / 0.6352 GB, free: 1.672 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001341/0.5462, allocations: 47.42 kB / 0.6352 GB, free: 1.625 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009758/0.5471, allocations: 484 kB / 0.6357 GB, free: 1.145 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.5472, allocations: 11.94 kB / 0.6357 GB, free: 1.133 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.5472, allocations: 0 / 0.6357 GB, free: 1.133 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/0.5472, allocations: 3.984 kB / 0.6357 GB, free: 1.129 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003001/0.5502, allocations: 2.441 MB / 0.6381 GB, free: 14.34 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.5502, allocations: 4 kB / 0.6381 GB, free: 14.34 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002857/0.5505, allocations: 55.91 kB / 0.6382 GB, free: 14.28 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.576e-06/0.5505, allocations: 4 kB / 0.6382 GB, free: 14.28 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.771e-05/0.5506, allocations: 11.94 kB / 0.6382 GB, free: 14.27 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.39e-06/0.5506, allocations: 4 kB / 0.6382 GB, free: 14.26 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/0.5506, allocations: 11.92 kB / 0.6382 GB, free: 14.25 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007888/0.5514, allocations: 0.6357 MB / 0.6388 GB, free: 13.58 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001489/0.5515, allocations: 124.6 kB / 0.6389 GB, free: 13.44 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.996e-05/0.5516, allocations: 15.88 kB / 0.6389 GB, free: 13.42 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004323/0.5521, allocations: 19.98 kB / 0.639 GB, free: 13.4 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.447e-05/0.5521, allocations: 27.91 kB / 0.639 GB, free: 13.38 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.732e-05/0.5522, allocations: 19.98 kB / 0.639 GB, free: 13.36 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.000408/0.5526, allocations: 367.1 kB / 0.6394 GB, free: 13 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5526, allocations: 0 / 0.6394 GB, free: 13 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001145/0.5538, allocations: 379.6 kB / 0.6397 GB, free: 12.62 MB / 462.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.00153/0.5553, allocations: 0.5725 MB / 0.6403 GB, free: 12.05 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0008493/0.5562, allocations: 475.1 kB / 0.6407 GB, free: 11.56 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.798e-06/0.5562, allocations: 4 kB / 0.6407 GB, free: 11.56 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003087/0.5565, allocations: 167.7 kB / 0.6409 GB, free: 11.39 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001395/0.5579, allocations: 278.6 kB / 0.6412 GB, free: 11.12 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001309/0.5592, allocations: 0.7846 MB / 0.6419 GB, free: 10.29 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004324/0.5597, allocations: 0.839 MB / 0.6428 GB, free: 9.43 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004246/0.5601, allocations: 126.3 kB / 0.6429 GB, free: 9.305 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001283/0.5603, allocations: 39.44 kB / 0.6429 GB, free: 9.266 MB / 462.1 MB Notification: Performance of SimCode: time 5.71e-07/0.5603, allocations: 0 / 0.6429 GB, free: 9.266 MB / 462.1 MB Notification: Performance of Templates: time 0.02618/0.5864, allocations: 15.96 MB / 0.6585 GB, free: 9.348 MB / 478.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Sensors/TestTraceSubstances/TestTraceSubstances.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches