Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009792/0.0009794, allocations: 202.1 kB / 15.8 MB, free: 6.332 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.273/1.273, allocations: 226.5 MB / 243.1 MB, free: 14.3 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007434/0.0007436, allocations: 94.27 kB / 295.1 MB, free: 10.07 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1914/0.1914, allocations: 44.83 MB / 392 MB, free: 9.348 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002523/0.0002523, allocations: 8 kB / 464.7 MB, free: 49.78 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09573/0.096, allocations: 62.95 MB / 0.5153 GB, free: 2.785 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances): time 0.3519/0.4479, allocations: 165.1 MB / 0.6766 GB, free: 8.25 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.001724/0.4497, allocations: 0.8932 MB / 0.6775 GB, free: 7.359 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003352/0.4501, allocations: 15.88 kB / 0.6775 GB, free: 7.344 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005493/0.4506, allocations: 135 kB / 0.6776 GB, free: 7.211 MB / 490.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.0006649/0.4513, allocations: 282.4 kB / 0.6779 GB, free: 6.934 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004136/0.4554, allocations: 1.405 MB / 0.6792 GB, free: 5.531 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.001188/0.4566, allocations: 1.107 MB / 0.6803 GB, free: 4.422 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004647/0.4571, allocations: 258.1 kB / 0.6806 GB, free: 4.172 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002811/0.4599, allocations: 1.352 MB / 0.6819 GB, free: 2.816 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005051/0.4605, allocations: 310.9 kB / 0.6822 GB, free: 2.512 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 9.836e-05/0.4606, allocations: 24 kB / 0.6822 GB, free: 2.488 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004181/0.4648, allocations: 2.293 MB / 0.6844 GB, free: 196 kB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003074/0.4651, allocations: 171.5 kB / 0.6846 GB, free: 24 kB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003134/0.4654, allocations: 117.5 kB / 0.6847 GB, free: 15.9 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.002713/0.4681, allocations: 1.31 MB / 0.686 GB, free: 14.59 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.4682, allocations: 7.938 kB / 0.686 GB, free: 14.58 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.134e-06/0.4682, allocations: 0 / 0.686 GB, free: 14.58 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 2.556e-05/0.4682, allocations: 0 / 0.686 GB, free: 14.58 MB / 0.4948 GB 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.001943/0.4702, allocations: 0.9546 MB / 0.6869 GB, free: 13.57 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.755e-05/0.4702, allocations: 8.031 kB / 0.6869 GB, free: 13.56 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002868/0.4705, allocations: 63.38 kB / 0.687 GB, free: 13.5 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005175/0.471, allocations: 362 kB / 0.6874 GB, free: 13.1 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.722e-05/0.4711, allocations: 29 kB / 0.6874 GB, free: 13.07 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.317e-05/0.4711, allocations: 40 kB / 0.6874 GB, free: 13.03 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008856/0.472, allocations: 0.5167 MB / 0.6879 GB, free: 12.48 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.472, allocations: 0 / 0.6879 GB, free: 12.48 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.089e-05/0.4721, allocations: 20 kB / 0.6879 GB, free: 12.46 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.082e-05/0.4721, allocations: 12 kB / 0.688 GB, free: 12.45 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000847/0.473, allocations: 0.5032 MB / 0.6884 GB, free: 11.95 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002565/0.4755, allocations: 1.975 MB / 0.6904 GB, free: 9.832 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006822/0.4762, allocations: 472.6 kB / 0.6908 GB, free: 9.324 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000335/0.4766, allocations: 179 kB / 0.691 GB, free: 9.141 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008245/0.4774, allocations: 0.9533 MB / 0.6919 GB, free: 7.984 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.743e-05/0.4775, allocations: 42.56 kB / 0.692 GB, free: 7.934 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=30): time 1.533e-06/0.4775, allocations: 3.938 kB / 0.692 GB, free: 7.93 MB / 0.4948 GB Notification: Performance of matching and sorting (n=30): time 0.00108/0.4786, allocations: 0.5038 MB / 0.6925 GB, free: 7.418 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.508e-05/0.4786, allocations: 106.8 kB / 0.6926 GB, free: 7.289 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003852/0.479, allocations: 393.7 kB / 0.6929 GB, free: 6.898 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 4.733e-05/0.4791, allocations: 33.7 kB / 0.693 GB, free: 6.859 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001381/0.4792, allocations: 216.1 kB / 0.6932 GB, free: 6.645 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 7.088e-05/0.4793, allocations: 102.5 kB / 0.6933 GB, free: 6.543 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.55e-05/0.4793, allocations: 12 kB / 0.6933 GB, free: 6.531 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001183/0.4795, allocations: 354.8 kB / 0.6936 GB, free: 6.176 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003099/0.4798, allocations: 152.7 kB / 0.6938 GB, free: 6.027 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003441/0.4801, allocations: 266.1 kB / 0.694 GB, free: 5.723 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003814/0.4805, allocations: 250.6 kB / 0.6943 GB, free: 5.469 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/0.4805, allocations: 3.938 kB / 0.6943 GB, free: 5.465 MB / 0.4948 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009228/0.4815, allocations: 0.5625 MB / 0.6948 GB, free: 4.883 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 4.417e-05/0.4815, allocations: 59.78 kB / 0.6949 GB, free: 4.812 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.4815, allocations: 8 kB / 0.6949 GB, free: 4.805 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.4815, allocations: 4 kB / 0.6949 GB, free: 4.801 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003674/0.4819, allocations: 91.88 kB / 0.695 GB, free: 4.711 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.869e-06/0.4819, allocations: 4 kB / 0.695 GB, free: 4.707 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003525/0.4823, allocations: 51.52 kB / 0.695 GB, free: 4.656 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.331e-05/0.4824, allocations: 20 kB / 0.695 GB, free: 4.637 MB / 0.4948 GB 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.0002068/0.4826, allocations: 193.6 kB / 0.6952 GB, free: 4.438 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001089/0.4827, allocations: 39.53 kB / 0.6953 GB, free: 4.398 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009543/0.4836, allocations: 0.4948 MB / 0.6958 GB, free: 3.902 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.4837, allocations: 4 kB / 0.6958 GB, free: 3.898 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.4837, allocations: 0 / 0.6958 GB, free: 3.898 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.744e-06/0.4837, allocations: 11.92 kB / 0.6958 GB, free: 3.887 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002643/0.4863, allocations: 2.444 MB / 0.6982 GB, free: 1.098 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.277e-06/0.4864, allocations: 48 / 0.6982 GB, free: 1.098 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000278/0.4866, allocations: 72.06 kB / 0.6982 GB, free: 1.027 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.783e-06/0.4867, allocations: 4 kB / 0.6982 GB, free: 1.023 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.208e-05/0.4867, allocations: 8 kB / 0.6982 GB, free: 1.016 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.4867, allocations: 4 kB / 0.6982 GB, free: 1.012 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.4867, allocations: 7.938 kB / 0.6982 GB, free: 1.004 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007315/0.4874, allocations: 0.6517 MB / 0.6989 GB, free: 324 kB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001268/0.4876, allocations: 144.4 kB / 0.699 GB, free: 160 kB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.009e-05/0.4876, allocations: 8 kB / 0.699 GB, free: 152 kB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004162/0.4881, allocations: 27.97 kB / 0.6991 GB, free: 124 kB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.358e-05/0.4881, allocations: 31.86 kB / 0.6991 GB, free: 92 kB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.019e-05/0.4882, allocations: 23.98 kB / 0.6991 GB, free: 68 kB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0003709/0.4886, allocations: 351.2 kB / 0.6994 GB, free: 15.72 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4886, allocations: 0 / 0.6994 GB, free: 15.72 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.000914/0.4895, allocations: 335.7 kB / 0.6998 GB, free: 15.39 MB / 0.5105 GB 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.001182/0.4907, allocations: 0.4895 MB / 0.7002 GB, free: 14.91 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0007431/0.4914, allocations: 475 kB / 0.7007 GB, free: 14.42 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.414e-06/0.4914, allocations: 4 kB / 0.7007 GB, free: 14.42 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0002949/0.4917, allocations: 171.8 kB / 0.7009 GB, free: 14.25 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001287/0.493, allocations: 251.2 kB / 0.7011 GB, free: 14.02 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001226/0.4943, allocations: 0.966 MB / 0.702 GB, free: 12.99 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003665/0.4947, allocations: 0.8393 MB / 0.7029 GB, free: 12.12 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001367/0.4948, allocations: 55.36 kB / 0.7029 GB, free: 12.07 MB / 0.5105 GB Notification: Performance of SimCode: time 2e-07/0.4948, allocations: 0 / 0.7029 GB, free: 12.07 MB / 0.5105 GB Notification: Performance of Templates: time 0.01723/0.5121, allocations: 11.27 MB / 0.7139 GB, free: 0.875 MB / 0.5105 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches