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.0009554/0.0009546, allocations: 95.02 kB / 17 MB, free: 6.418 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.001158/0.001158, allocations: 188.6 kB / 17.89 MB, free: 5.945 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.495/1.495, allocations: 223.3 MB / 241.9 MB, free: 14.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.2498/0.2498, allocations: 44.25 MB / 337.3 MB, free: 2.531 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000347/0.0003471, allocations: 12 kB / 409.7 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.168/0.1683, allocations: 61.92 MB / 471.6 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances): time 0.5229/0.6912, allocations: 165 MB / 0.6217 GB, free: 14.04 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.001975/0.6933, allocations: 0.8931 MB / 0.6226 GB, free: 13.14 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000218/0.6935, allocations: 11.94 kB / 0.6226 GB, free: 13.13 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005583/0.6941, allocations: 143 kB / 0.6227 GB, free: 12.99 MB / 462.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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 4.0.0+maint.om/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 4.0.0+maint.om/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 4.0.0+maint.om/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.000556/0.6946, allocations: 282.4 kB / 0.623 GB, free: 12.71 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004234/0.6989, allocations: 1.394 MB / 0.6244 GB, free: 11.32 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001219/0.7001, allocations: 1.104 MB / 0.6254 GB, free: 10.21 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003999/0.7005, allocations: 257.3 kB / 0.6257 GB, free: 9.965 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002973/0.7035, allocations: 1.324 MB / 0.627 GB, free: 8.637 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004782/0.704, allocations: 310.9 kB / 0.6273 GB, free: 8.332 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 6.08e-05/0.7041, allocations: 20 kB / 0.6273 GB, free: 8.312 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004155/0.7082, allocations: 2.258 MB / 0.6295 GB, free: 6.051 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002077/0.7084, allocations: 171.5 kB / 0.6297 GB, free: 5.883 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001452/0.7086, allocations: 117.5 kB / 0.6298 GB, free: 5.762 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001903/0.7105, allocations: 1.298 MB / 0.6311 GB, free: 4.461 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.7105, allocations: 0 / 0.6311 GB, free: 4.461 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.7105, allocations: 0 / 0.6311 GB, free: 4.461 MB / 462.1 MB Notification: Performance of Transformations before backend: time 9.358e-06/0.7105, allocations: 4 kB / 0.6311 GB, free: 4.457 MB / 462.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.001589/0.7121, allocations: 0.9507 MB / 0.632 GB, free: 3.445 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.7122, allocations: 8.031 kB / 0.632 GB, free: 3.438 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002373/0.7124, allocations: 59.42 kB / 0.632 GB, free: 3.379 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000488/0.7129, allocations: 362.1 kB / 0.6324 GB, free: 2.984 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.895e-05/0.713, allocations: 29 kB / 0.6324 GB, free: 2.957 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.968e-05/0.713, allocations: 40 kB / 0.6325 GB, free: 2.918 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008707/0.7139, allocations: 0.5234 MB / 0.633 GB, free: 2.363 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.7139, allocations: 0 / 0.633 GB, free: 2.363 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.072e-05/0.714, allocations: 31.94 kB / 0.633 GB, free: 2.332 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.08e-05/0.714, allocations: 8 kB / 0.633 GB, free: 2.324 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008387/0.7149, allocations: 0.4892 MB / 0.6335 GB, free: 1.836 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002563/0.7174, allocations: 1.982 MB / 0.6354 GB, free: 15.71 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006998/0.7181, allocations: 460.8 kB / 0.6359 GB, free: 15.21 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003166/0.7185, allocations: 186.4 kB / 0.636 GB, free: 15.02 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008152/0.7193, allocations: 0.9454 MB / 0.637 GB, free: 13.88 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.973e-05/0.7193, allocations: 42.56 kB / 0.637 GB, free: 13.82 MB / 478.1 MB Notification: Performance of pre-optimization done (n=30): time 1.553e-06/0.7194, allocations: 0 / 0.637 GB, free: 13.82 MB / 478.1 MB Notification: Performance of matching and sorting (n=30): time 0.001099/0.7205, allocations: 0.5123 MB / 0.6375 GB, free: 13.31 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.26e-05/0.7205, allocations: 106.8 kB / 0.6376 GB, free: 13.18 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004309/0.721, allocations: 397.5 kB / 0.638 GB, free: 12.79 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 5.169e-05/0.721, allocations: 37.64 kB / 0.638 GB, free: 12.74 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001627/0.7212, allocations: 220.2 kB / 0.6382 GB, free: 12.52 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.49e-05/0.7213, allocations: 98.56 kB / 0.6383 GB, free: 12.43 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.602e-05/0.7213, allocations: 8 kB / 0.6383 GB, free: 12.42 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000166/0.7215, allocations: 358.8 kB / 0.6387 GB, free: 12.06 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003307/0.7218, allocations: 148.7 kB / 0.6388 GB, free: 11.91 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004185/0.7223, allocations: 266.2 kB / 0.6391 GB, free: 11.61 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003965/0.7227, allocations: 235.3 kB / 0.6393 GB, free: 11.37 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.7227, allocations: 0 / 0.6393 GB, free: 11.37 MB / 478.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009838/0.7237, allocations: 0.5696 MB / 0.6398 GB, free: 10.78 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.464e-05/0.7238, allocations: 61.75 kB / 0.6399 GB, free: 10.71 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/0.7238, allocations: 8.312 kB / 0.6399 GB, free: 10.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.7238, allocations: 11.94 kB / 0.6399 GB, free: 10.69 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003912/0.7242, allocations: 87.89 kB / 0.64 GB, free: 10.61 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.308e-05/0.7242, allocations: 7.984 kB / 0.64 GB, free: 10.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003471/0.7246, allocations: 59.42 kB / 0.6401 GB, free: 10.54 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.969e-05/0.7247, allocations: 23.98 kB / 0.6401 GB, free: 10.52 MB / 478.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002162/0.7249, allocations: 189.6 kB / 0.6403 GB, free: 10.32 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001224/0.725, allocations: 47.48 kB / 0.6403 GB, free: 10.27 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001008/0.726, allocations: 0.4892 MB / 0.6408 GB, free: 9.781 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.7261, allocations: 4 kB / 0.6408 GB, free: 9.777 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.7261, allocations: 4 kB / 0.6408 GB, free: 9.773 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.7261, allocations: 0 / 0.6408 GB, free: 9.773 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002789/0.7289, allocations: 2.449 MB / 0.6432 GB, free: 6.977 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.7289, allocations: 0 / 0.6432 GB, free: 6.977 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003066/0.7292, allocations: 76.08 kB / 0.6433 GB, free: 6.902 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.642e-06/0.7292, allocations: 4 kB / 0.6433 GB, free: 6.898 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.401e-05/0.7293, allocations: 8 kB / 0.6433 GB, free: 6.891 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.859e-06/0.7293, allocations: 4 kB / 0.6433 GB, free: 6.887 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/0.7293, allocations: 0.8594 kB / 0.6433 GB, free: 6.887 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007728/0.7301, allocations: 0.6472 MB / 0.6439 GB, free: 6.203 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001378/0.7302, allocations: 144.5 kB / 0.6441 GB, free: 6.043 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.276e-05/0.7303, allocations: 8 kB / 0.6441 GB, free: 6.035 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004127/0.7307, allocations: 31.91 kB / 0.6441 GB, free: 6.004 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.929e-05/0.7308, allocations: 31.86 kB / 0.6441 GB, free: 5.973 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.195e-05/0.7308, allocations: 27.92 kB / 0.6442 GB, free: 5.945 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0003987/0.7312, allocations: 351.1 kB / 0.6445 GB, free: 5.602 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.7312, allocations: 0 / 0.6445 GB, free: 5.602 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001071/0.7323, allocations: 339.7 kB / 0.6448 GB, free: 5.27 MB / 478.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 (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.001153/0.7335, allocations: 486.9 kB / 0.6453 GB, free: 4.797 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0008795/0.7344, allocations: 475 kB / 0.6457 GB, free: 4.309 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.7344, allocations: 0 / 0.6457 GB, free: 4.309 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003166/0.7347, allocations: 171.8 kB / 0.6459 GB, free: 4.141 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001355/0.7361, allocations: 246.7 kB / 0.6461 GB, free: 3.91 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001359/0.7374, allocations: 0.9248 MB / 0.647 GB, free: 2.934 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004484/0.7379, allocations: 0.8393 MB / 0.6479 GB, free: 2.07 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.000428/0.7383, allocations: 115.2 kB / 0.648 GB, free: 1.961 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001214/0.7385, allocations: 43.42 kB / 0.648 GB, free: 1.922 MB / 478.1 MB Notification: Performance of SimCode: time 9.62e-07/0.7385, allocations: 0 / 0.648 GB, free: 1.922 MB / 478.1 MB Notification: Performance of Templates: time 0.02571/0.7642, allocations: 13.81 MB / 0.6615 GB, free: 4.246 MB / 494.1 MB 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