Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.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.Valves.TestValveLinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008805/0.0008806, allocations: 177.2 kB / 16.41 MB, free: 5.703 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.556/1.556, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.0008271/0.0008272, allocations: 100.9 kB / 270.9 MB, free: 8.355 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.3802/0.3802, allocations: 43.56 MB / 362.7 MB, free: 52.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005325/0.0005326, allocations: 8 kB / 431.4 MB, free: 6.16 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1549/0.1555, allocations: 58.84 MB / 490.2 MB, free: 11.23 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.2577/0.4132, allocations: 26.16 MB / 0.5043 GB, free: 32.14 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01384/0.4271, allocations: 12.4 MB / 0.5164 GB, free: 23.38 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005837/0.4278, allocations: 12.94 kB / 0.5164 GB, free: 23.38 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007928/0.4286, allocations: 204.3 kB / 0.5166 GB, free: 23.27 MB / 378.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.00997/0.4385, allocations: 2.852 MB / 0.5194 GB, free: 22.03 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006243/0.4448, allocations: 1.824 MB / 0.5212 GB, free: 21.09 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001275/0.4461, allocations: 0.9837 MB / 0.5221 GB, free: 20.68 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003313/0.4464, allocations: 213.2 kB / 0.5223 GB, free: 20.6 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006235/0.4471, allocations: 382.4 kB / 0.5227 GB, free: 20.45 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002565/0.4473, allocations: 254.3 kB / 0.5229 GB, free: 20.35 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.29e-05/0.4474, allocations: 16.28 kB / 0.523 GB, free: 20.35 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01288/0.4603, allocations: 6.823 MB / 0.5296 GB, free: 18.78 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001704/0.4605, allocations: 80.88 kB / 0.5297 GB, free: 18.74 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001994/0.4607, allocations: 101.4 kB / 0.5298 GB, free: 18.68 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007111/0.4678, allocations: 2.963 MB / 0.5327 GB, free: 18.09 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.967e-06/0.4679, allocations: 2.906 kB / 0.5327 GB, free: 18.09 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.636e-06/0.4679, allocations: 0.6094 kB / 0.5327 GB, free: 18.09 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.001e-05/0.4679, allocations: 0 / 0.5327 GB, free: 18.09 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.005159/0.4731, allocations: 1.168 MB / 0.5338 GB, free: 17.34 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.4731, allocations: 9.641 kB / 0.5338 GB, free: 17.34 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001618/0.4747, allocations: 222.8 kB / 0.5341 GB, free: 17.31 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000515/0.4753, allocations: 356.4 kB / 0.5344 GB, free: 17.02 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.186e-05/0.4753, allocations: 28.5 kB / 0.5344 GB, free: 17.01 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.171e-05/0.4754, allocations: 32.91 kB / 0.5345 GB, free: 17 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001649/0.477, allocations: 0.6143 MB / 0.5351 GB, free: 16.73 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.4771, allocations: 0 / 0.5351 GB, free: 16.73 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.504e-05/0.4771, allocations: 12 kB / 0.5351 GB, free: 16.72 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.133e-05/0.4771, allocations: 9.469 kB / 0.5351 GB, free: 16.72 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001779/0.4789, allocations: 0.5874 MB / 0.5356 GB, free: 16.59 MB / 378.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00315/0.4821, allocations: 2.654 MB / 0.5382 GB, free: 14.35 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001662/0.4838, allocations: 0.4928 MB / 0.5387 GB, free: 14.22 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005015/0.4843, allocations: 225.1 kB / 0.5389 GB, free: 14.15 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04864/0.5329, allocations: 24.42 MB / 0.5628 GB, free: 11.38 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.835e-05/0.533, allocations: 36.75 kB / 0.5628 GB, free: 11.34 MB / 394.7 MB Notification: Performance of pre-optimization done (n=25): time 2.886e-06/0.5331, allocations: 0 / 0.5628 GB, free: 11.34 MB / 394.7 MB Notification: Performance of matching and sorting (n=25): time 0.003134/0.5362, allocations: 0.8845 MB / 0.5637 GB, free: 10.93 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.863e-05/0.5363, allocations: 118 kB / 0.5638 GB, free: 10.79 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004347/0.5367, allocations: 308.8 kB / 0.5641 GB, free: 10.59 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.198e-05/0.5368, allocations: 32.58 kB / 0.5641 GB, free: 10.56 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001836/0.537, allocations: 202.2 kB / 0.5643 GB, free: 10.38 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.24e-05/0.5371, allocations: 90.55 kB / 0.5644 GB, free: 10.3 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.693e-05/0.5371, allocations: 4 kB / 0.5644 GB, free: 10.29 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000183/0.5373, allocations: 337.8 kB / 0.5647 GB, free: 9.961 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004589/0.5378, allocations: 173.6 kB / 0.5649 GB, free: 9.883 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000546/0.5383, allocations: 260.7 kB / 0.5651 GB, free: 9.691 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004755/0.5388, allocations: 189.9 kB / 0.5653 GB, free: 9.602 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.5388, allocations: 0 / 0.5653 GB, free: 9.602 MB / 394.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001051/0.5399, allocations: 481.9 kB / 0.5658 GB, free: 9.371 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.071e-05/0.5399, allocations: 5.812 kB / 0.5658 GB, free: 9.371 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/0.5399, allocations: 1.844 kB / 0.5658 GB, free: 9.371 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.365e-05/0.54, allocations: 8.766 kB / 0.5658 GB, free: 9.367 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003578/0.5403, allocations: 103 kB / 0.5659 GB, free: 9.336 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.512e-05/0.5403, allocations: 11.31 kB / 0.5659 GB, free: 9.328 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003789/0.5407, allocations: 65.81 kB / 0.566 GB, free: 9.297 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.823e-05/0.5408, allocations: 21.52 kB / 0.566 GB, free: 9.289 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 4 (SourceP1.medium.phase,SinkP1.medium.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * 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 prepare postOptimizeDAE: time 0.0002296/0.541, allocations: 162.3 kB / 0.5661 GB, free: 9.141 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.314e-05/0.5411, allocations: 33.38 kB / 0.5662 GB, free: 9.125 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002775/0.5439, allocations: 1.968 MB / 0.5681 GB, free: 7.773 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.807e-05/0.5439, allocations: 27.95 kB / 0.5681 GB, free: 7.746 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.593e-06/0.5439, allocations: 0 / 0.5681 GB, free: 7.746 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.166e-05/0.5439, allocations: 11.94 kB / 0.5681 GB, free: 7.734 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001183/0.5451, allocations: 1.012 MB / 0.5691 GB, free: 6.672 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.5452, allocations: 0 / 0.5691 GB, free: 6.672 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003514/0.5455, allocations: 91.88 kB / 0.5692 GB, free: 6.582 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.037e-06/0.5455, allocations: 7.922 kB / 0.5692 GB, free: 6.574 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.411e-05/0.5456, allocations: 8 kB / 0.5692 GB, free: 6.566 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.374e-06/0.5456, allocations: 7.125 kB / 0.5692 GB, free: 6.562 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.5456, allocations: 0 / 0.5692 GB, free: 6.562 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00169/0.5473, allocations: 1.128 MB / 0.5703 GB, free: 5.414 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002832/0.5476, allocations: 223.4 kB / 0.5705 GB, free: 5.176 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.212e-05/0.5476, allocations: 8 kB / 0.5706 GB, free: 5.168 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000342/0.548, allocations: 47.95 kB / 0.5706 GB, free: 5.121 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001325/0.5481, allocations: 31.95 kB / 0.5706 GB, free: 5.09 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.813e-05/0.5482, allocations: 15.98 kB / 0.5706 GB, free: 5.074 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003896/0.5486, allocations: 319.1 kB / 0.5709 GB, free: 4.762 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5486, allocations: 0 / 0.5709 GB, free: 4.762 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005189/0.5538, allocations: 0.9916 MB / 0.5719 GB, free: 3.77 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 18 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * 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.007464/0.5613, allocations: 1.173 MB / 0.5731 GB, free: 2.594 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001519/0.5628, allocations: 0.6508 MB / 0.5737 GB, free: 1.945 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.342e-06/0.5628, allocations: 7.938 kB / 0.5737 GB, free: 1.938 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007426/0.5636, allocations: 0.5334 MB / 0.5742 GB, free: 1.406 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001235/0.5648, allocations: 206.2 kB / 0.5744 GB, free: 1.211 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002338/0.5672, allocations: 1.917 MB / 0.5763 GB, free: 15.25 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004564/0.5676, allocations: 0.9602 MB / 0.5772 GB, free: 14.27 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001149/0.5678, allocations: 47.38 kB / 0.5773 GB, free: 14.22 MB / 410.7 MB Notification: Performance of SimCode: time 6.31e-07/0.5678, allocations: 0 / 0.5773 GB, free: 14.22 MB / 410.7 MB Notification: Performance of Templates: time 0.03821/0.606, allocations: 23.96 MB / 0.6007 GB, free: 6.258 MB / 426.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveLinear/TestValveLinear.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches