Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001085/0.001085, allocations: 174.8 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.211/1.211, allocations: 205.4 MB / 222.9 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007747/0.0007747, allocations: 82.41 kB / 271.2 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2911/0.2911, allocations: 43.56 MB / 363.1 MB, free: 51.94 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005484/0.0005485, allocations: 19.92 kB / 432 MB, free: 5.59 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.1206, allocations: 58.84 MB / 490.8 MB, free: 10.67 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances): time 0.3421/0.4628, allocations: 169.6 MB / 0.6449 GB, free: 12.82 MB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.001924/0.4647, allocations: 0.8899 MB / 0.6458 GB, free: 11.93 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004116/0.4652, allocations: 7.938 kB / 0.6458 GB, free: 11.92 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006865/0.4659, allocations: 175 kB / 0.646 GB, free: 11.75 MB / 474.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.0007506/0.4666, allocations: 266.4 kB / 0.6462 GB, free: 11.49 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005319/0.472, allocations: 1.755 MB / 0.648 GB, free: 9.746 MB / 474.7 MB Notification: Performance of NFFlatten.flatten: time 0.001286/0.4733, allocations: 1.104 MB / 0.649 GB, free: 8.641 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005673/0.4739, allocations: 274.6 kB / 0.6493 GB, free: 8.383 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003651/0.4775, allocations: 1.545 MB / 0.6508 GB, free: 6.836 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005534/0.4781, allocations: 310.9 kB / 0.6511 GB, free: 6.531 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 9.928e-05/0.4782, allocations: 24 kB / 0.6511 GB, free: 6.508 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005012/0.4832, allocations: 2.937 MB / 0.654 GB, free: 3.566 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002716/0.4835, allocations: 171.6 kB / 0.6542 GB, free: 3.398 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004058/0.4839, allocations: 256.7 kB / 0.6544 GB, free: 3.141 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002366/0.4863, allocations: 1.466 MB / 0.6558 GB, free: 1.672 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.4863, allocations: 0 / 0.6558 GB, free: 1.672 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.4863, allocations: 4 kB / 0.6558 GB, free: 1.668 MB / 474.7 MB Notification: Performance of Transformations before backend: time 1.985e-05/0.4863, allocations: 0 / 0.6558 GB, free: 1.668 MB / 474.7 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.002008/0.4884, allocations: 0.9709 MB / 0.6568 GB, free: 0.6406 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.862e-05/0.4884, allocations: 12.03 kB / 0.6568 GB, free: 0.6289 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000285/0.4887, allocations: 59.42 kB / 0.6568 GB, free: 0.5703 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005456/0.4893, allocations: 373.8 kB / 0.6572 GB, free: 172 kB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.991e-05/0.4893, allocations: 29 kB / 0.6572 GB, free: 144 kB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.169e-05/0.4894, allocations: 36 kB / 0.6573 GB, free: 104 kB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009213/0.4903, allocations: 0.5293 MB / 0.6578 GB, free: 15.55 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.473e-05/0.4903, allocations: 0 / 0.6578 GB, free: 15.55 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.544e-05/0.4904, allocations: 16 kB / 0.6578 GB, free: 15.53 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.168e-05/0.4904, allocations: 11.94 kB / 0.6578 GB, free: 15.52 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008936/0.4913, allocations: 0.4994 MB / 0.6583 GB, free: 15.02 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002729/0.494, allocations: 1.979 MB / 0.6602 GB, free: 12.91 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000733/0.4948, allocations: 462.9 kB / 0.6607 GB, free: 12.41 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003199/0.4951, allocations: 182.5 kB / 0.6608 GB, free: 12.22 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007999/0.4959, allocations: 0.9494 MB / 0.6618 GB, free: 11.07 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.064e-05/0.496, allocations: 42.56 kB / 0.6618 GB, free: 11.02 MB / 490.7 MB Notification: Performance of pre-optimization done (n=30): time 2.194e-06/0.496, allocations: 0 / 0.6618 GB, free: 11.02 MB / 490.7 MB Notification: Performance of matching and sorting (n=30): time 0.00109/0.4971, allocations: 0.5053 MB / 0.6623 GB, free: 10.51 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.421e-05/0.4972, allocations: 106.8 kB / 0.6624 GB, free: 10.38 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004588/0.4976, allocations: 401.5 kB / 0.6628 GB, free: 9.98 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 5.68e-05/0.4977, allocations: 37.7 kB / 0.6628 GB, free: 9.938 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001618/0.4979, allocations: 216.1 kB / 0.663 GB, free: 9.723 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.382e-05/0.4979, allocations: 102.5 kB / 0.6631 GB, free: 9.621 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.738e-05/0.498, allocations: 8 kB / 0.6631 GB, free: 9.613 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.4981, allocations: 350.8 kB / 0.6635 GB, free: 9.262 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003238/0.4984, allocations: 152.7 kB / 0.6636 GB, free: 9.113 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003798/0.4988, allocations: 269.9 kB / 0.6639 GB, free: 8.805 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008609/0.4997, allocations: 494.8 kB / 0.6643 GB, free: 8.266 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.603e-06/0.4997, allocations: 4 kB / 0.6644 GB, free: 8.262 MB / 490.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001027/0.5008, allocations: 0.5596 MB / 0.6649 GB, free: 7.684 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.892e-05/0.5008, allocations: 67.39 kB / 0.665 GB, free: 7.605 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.395e-06/0.5009, allocations: 0 / 0.665 GB, free: 7.605 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.832e-05/0.5009, allocations: 8 kB / 0.665 GB, free: 7.598 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003845/0.5013, allocations: 87.83 kB / 0.6651 GB, free: 7.512 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.27e-05/0.5013, allocations: 7.938 kB / 0.6651 GB, free: 7.504 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003501/0.5017, allocations: 63.83 kB / 0.6651 GB, free: 7.441 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.049e-05/0.5017, allocations: 19.98 kB / 0.6651 GB, free: 7.422 MB / 490.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002181/0.5019, allocations: 193.6 kB / 0.6653 GB, free: 7.223 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001142/0.5021, allocations: 39.53 kB / 0.6654 GB, free: 7.184 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001045/0.5031, allocations: 0.5019 MB / 0.6659 GB, free: 6.672 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.264e-06/0.5031, allocations: 7.938 kB / 0.6659 GB, free: 6.664 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.451e-06/0.5032, allocations: 0 / 0.6659 GB, free: 6.664 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.5032, allocations: 0 / 0.6659 GB, free: 6.664 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002811/0.506, allocations: 2.449 MB / 0.6683 GB, free: 3.867 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.009e-06/0.506, allocations: 4 kB / 0.6683 GB, free: 3.863 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002825/0.5063, allocations: 59.91 kB / 0.6683 GB, free: 3.805 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.253e-06/0.5063, allocations: 4 kB / 0.6683 GB, free: 3.801 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.652e-05/0.5063, allocations: 15.92 kB / 0.6683 GB, free: 3.785 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.618e-06/0.5063, allocations: 7.938 kB / 0.6683 GB, free: 3.777 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.519e-06/0.5064, allocations: 4.188 kB / 0.6683 GB, free: 3.773 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008052/0.5072, allocations: 0.6472 MB / 0.669 GB, free: 3.09 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001533/0.5073, allocations: 144.5 kB / 0.6691 GB, free: 2.93 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.397e-05/0.5074, allocations: 11.94 kB / 0.6691 GB, free: 2.918 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004196/0.5078, allocations: 27.98 kB / 0.6692 GB, free: 2.891 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.404e-05/0.5079, allocations: 19.97 kB / 0.6692 GB, free: 2.871 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.938e-05/0.508, allocations: 23.98 kB / 0.6692 GB, free: 2.848 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0003913/0.5083, allocations: 359 kB / 0.6695 GB, free: 2.5 MB / 490.7 MB Notification: Performance of sort global known variables: time 1e-07/0.5084, allocations: 0 / 0.6695 GB, free: 2.5 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001049/0.5094, allocations: 375.7 kB / 0.6699 GB, free: 2.133 MB / 490.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001437/0.5109, allocations: 0.5692 MB / 0.6705 GB, free: 1.562 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0008039/0.5117, allocations: 471.1 kB / 0.6709 GB, free: 1.078 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.5117, allocations: 4.062 kB / 0.6709 GB, free: 1.074 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003196/0.512, allocations: 171.7 kB / 0.6711 GB, free: 0.9062 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0014/0.5134, allocations: 267 kB / 0.6713 GB, free: 0.6562 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1701/0.6835, allocations: 0.9627 MB / 0.6723 GB, free: 150.3 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003366/0.6839, allocations: 0.8362 MB / 0.6731 GB, free: 149.6 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002163/0.6841, allocations: 50.33 kB / 0.6731 GB, free: 149.6 MB / 490.7 MB Notification: Performance of SimCode: time 8.11e-07/0.6842, allocations: 2.125 kB / 0.6731 GB, free: 149.6 MB / 490.7 MB Notification: Performance of Templates: time 0.01497/0.6991, allocations: 11.8 MB / 0.6846 GB, free: 148.5 MB / 490.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Sensors/TestTraceSubstances/TestTraceSubstances.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches