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.001356/0.001356, allocations: 196.6 kB / 16.1 MB, free: 5.488 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.31/1.31, allocations: 226.6 MB / 243.4 MB, free: 13.95 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008122/0.0008122, allocations: 102.6 kB / 295.5 MB, free: 9.906 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1737/0.1737, allocations: 44.83 MB / 392.3 MB, free: 9.18 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002592/0.0002592, allocations: 8 kB / 465.3 MB, free: 49.43 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09394/0.09421, allocations: 62.96 MB / 0.5159 GB, free: 2.438 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances): time 0.4265/0.5207, allocations: 165.2 MB / 0.6772 GB, free: 7.898 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.0017/0.5225, allocations: 0.8816 MB / 0.6781 GB, free: 7.016 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002339/0.5227, allocations: 11.94 kB / 0.6781 GB, free: 7.004 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000572/0.5233, allocations: 163 kB / 0.6782 GB, free: 6.844 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.0005183/0.5239, allocations: 282.4 kB / 0.6785 GB, free: 6.566 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004295/0.5282, allocations: 1.553 MB / 0.68 GB, free: 5.02 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.001128/0.5293, allocations: 1.115 MB / 0.6811 GB, free: 3.902 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000385/0.5297, allocations: 272.4 kB / 0.6814 GB, free: 3.641 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002934/0.5326, allocations: 1.429 MB / 0.6828 GB, free: 2.207 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004327/0.5331, allocations: 310.9 kB / 0.683 GB, free: 1.902 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 6.422e-05/0.5332, allocations: 20 kB / 0.6831 GB, free: 1.883 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0045/0.5377, allocations: 2.825 MB / 0.6858 GB, free: 15.05 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.000238/0.5379, allocations: 175.5 kB / 0.686 GB, free: 14.88 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0002973/0.5382, allocations: 256.7 kB / 0.6862 GB, free: 14.62 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.002014/0.5403, allocations: 1.427 MB / 0.6876 GB, free: 13.2 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.5403, allocations: 0 / 0.6876 GB, free: 13.2 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.633e-06/0.5403, allocations: 4 kB / 0.6876 GB, free: 13.19 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 1.102e-05/0.5403, allocations: 0 / 0.6876 GB, free: 13.19 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.001554/0.5419, allocations: 0.9546 MB / 0.6886 GB, free: 12.18 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.536e-05/0.5419, allocations: 12.03 kB / 0.6886 GB, free: 12.16 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002283/0.5422, allocations: 55.44 kB / 0.6886 GB, free: 12.11 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004527/0.5426, allocations: 377.8 kB / 0.689 GB, free: 11.7 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.835e-05/0.5427, allocations: 32.94 kB / 0.689 GB, free: 11.66 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.353e-05/0.5427, allocations: 39.94 kB / 0.6891 GB, free: 11.62 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008207/0.5435, allocations: 0.5199 MB / 0.6896 GB, free: 11.07 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.398e-05/0.5436, allocations: 3.938 kB / 0.6896 GB, free: 11.07 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.703e-05/0.5436, allocations: 16 kB / 0.6896 GB, free: 11.05 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.177e-06/0.5436, allocations: 8 kB / 0.6896 GB, free: 11.05 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008095/0.5444, allocations: 0.4955 MB / 0.6901 GB, free: 10.55 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002418/0.5469, allocations: 1.982 MB / 0.692 GB, free: 8.426 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006587/0.5476, allocations: 460.7 kB / 0.6925 GB, free: 7.926 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003015/0.5479, allocations: 178.5 kB / 0.6926 GB, free: 7.742 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007252/0.5486, allocations: 0.9533 MB / 0.6936 GB, free: 6.586 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.281e-05/0.5486, allocations: 42.55 kB / 0.6936 GB, free: 6.535 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=30): time 2.134e-06/0.5487, allocations: 4 kB / 0.6936 GB, free: 6.531 MB / 0.4948 GB Notification: Performance of matching and sorting (n=30): time 0.001067/0.5497, allocations: 0.5079 MB / 0.6941 GB, free: 6.02 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.929e-05/0.5498, allocations: 106.8 kB / 0.6942 GB, free: 5.891 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004014/0.5502, allocations: 393.7 kB / 0.6946 GB, free: 5.5 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 4.323e-05/0.5503, allocations: 29.7 kB / 0.6946 GB, free: 5.465 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001332/0.5504, allocations: 220.1 kB / 0.6948 GB, free: 5.246 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 7.161e-05/0.5505, allocations: 106.4 kB / 0.6949 GB, free: 5.141 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.59e-05/0.5505, allocations: 16 kB / 0.6949 GB, free: 5.125 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001153/0.5506, allocations: 350.7 kB / 0.6953 GB, free: 4.773 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003051/0.551, allocations: 152.6 kB / 0.6954 GB, free: 4.625 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003573/0.5513, allocations: 266.2 kB / 0.6957 GB, free: 4.32 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006736/0.552, allocations: 491.9 kB / 0.6961 GB, free: 3.781 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.552, allocations: 0 / 0.6961 GB, free: 3.781 MB / 0.4948 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009246/0.553, allocations: 0.5619 MB / 0.6967 GB, free: 3.203 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 4.95e-05/0.553, allocations: 67.45 kB / 0.6967 GB, free: 3.125 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.553, allocations: 4 kB / 0.6967 GB, free: 3.121 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.553, allocations: 4 kB / 0.6968 GB, free: 3.117 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003764/0.5534, allocations: 87.83 kB / 0.6968 GB, free: 3.031 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.527e-05/0.5535, allocations: 11.94 kB / 0.6968 GB, free: 3.02 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003646/0.5538, allocations: 55.52 kB / 0.6969 GB, free: 2.965 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.482e-05/0.5539, allocations: 23.98 kB / 0.6969 GB, free: 2.941 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.0002013/0.5541, allocations: 185.7 kB / 0.6971 GB, free: 2.75 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001029/0.5542, allocations: 39.53 kB / 0.6971 GB, free: 2.711 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009704/0.5552, allocations: 0.4986 MB / 0.6976 GB, free: 2.207 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.962e-06/0.5552, allocations: 4 kB / 0.6976 GB, free: 2.203 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.5552, allocations: 0 / 0.6976 GB, free: 2.203 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.5552, allocations: 240 / 0.6976 GB, free: 2.203 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00267/0.5579, allocations: 2.435 MB / 0.7 GB, free: 15.42 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.444e-06/0.5579, allocations: 8.188 kB / 0.7 GB, free: 15.41 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002869/0.5582, allocations: 63.84 kB / 0.7001 GB, free: 15.35 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.233e-06/0.5582, allocations: 4.062 kB / 0.7001 GB, free: 15.35 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.924e-05/0.5583, allocations: 12 kB / 0.7001 GB, free: 15.34 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.608e-06/0.5583, allocations: 11.92 kB / 0.7001 GB, free: 15.32 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-06/0.5583, allocations: 4 kB / 0.7001 GB, free: 15.32 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008044/0.5591, allocations: 0.6477 MB / 0.7007 GB, free: 14.64 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001413/0.5593, allocations: 156.2 kB / 0.7009 GB, free: 14.46 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.165e-05/0.5593, allocations: 8 kB / 0.7009 GB, free: 14.46 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004102/0.5597, allocations: 19.98 kB / 0.7009 GB, free: 14.44 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.872e-05/0.5598, allocations: 27.97 kB / 0.7009 GB, free: 14.41 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.508e-05/0.5599, allocations: 23.98 kB / 0.701 GB, free: 14.39 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0003872/0.5603, allocations: 355.1 kB / 0.7013 GB, free: 14.04 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5603, allocations: 0 / 0.7013 GB, free: 14.04 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.001114/0.5614, allocations: 351.5 kB / 0.7016 GB, free: 13.7 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.001179/0.5626, allocations: 0.4997 MB / 0.7021 GB, free: 13.2 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0008031/0.5634, allocations: 479 kB / 0.7026 GB, free: 12.71 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.5634, allocations: 4 kB / 0.7026 GB, free: 12.71 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0002967/0.5637, allocations: 171.7 kB / 0.7028 GB, free: 12.54 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001392/0.5651, allocations: 258.2 kB / 0.703 GB, free: 12.3 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00128/0.5664, allocations: 0.966 MB / 0.7039 GB, free: 11.28 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003775/0.5668, allocations: 0.8432 MB / 0.7048 GB, free: 10.41 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001418/0.567, allocations: 43.42 kB / 0.7048 GB, free: 10.36 MB / 0.5105 GB Notification: Performance of SimCode: time 7.31e-07/0.567, allocations: 4 kB / 0.7048 GB, free: 10.36 MB / 0.5105 GB Notification: Performance of Templates: time 0.2072/0.7741, allocations: 11.25 MB / 0.7158 GB, free: 179.5 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