Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.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.TestValveDiscrete,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.TestValveDiscrete") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,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.TestValveDiscrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001388/0.001388, allocations: 176.8 kB / 16.41 MB, free: 5.727 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.493/1.493, allocations: 205.4 MB / 222.5 MB, free: 9.105 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.0009491/0.0009491, allocations: 92.42 kB / 270.9 MB, free: 8.352 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.3666/0.3666, allocations: 43.56 MB / 362.7 MB, free: 51.84 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003769/0.0003769, allocations: 16 kB / 431.4 MB, free: 5.906 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1343/0.1347, allocations: 58.85 MB / 490.2 MB, free: 10.97 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.2852/0.4199, allocations: 26.15 MB / 0.5043 GB, free: 32.01 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01446/0.4344, allocations: 12.38 MB / 0.5164 GB, free: 23.27 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005105/0.435, allocations: 9.312 kB / 0.5164 GB, free: 23.27 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007659/0.4358, allocations: 203.6 kB / 0.5166 GB, free: 23.15 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.009433/0.4452, allocations: 2.844 MB / 0.5194 GB, free: 21.92 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006656/0.4519, allocations: 1.829 MB / 0.5211 GB, free: 20.98 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001341/0.4532, allocations: 0.9845 MB / 0.5221 GB, free: 20.57 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003521/0.4536, allocations: 200.2 kB / 0.5223 GB, free: 20.5 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007502/0.4544, allocations: 384.6 kB / 0.5227 GB, free: 20.34 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00034/0.4547, allocations: 257.8 kB / 0.5229 GB, free: 20.24 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.812e-05/0.4548, allocations: 12.94 kB / 0.5229 GB, free: 20.24 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01448/0.4692, allocations: 6.822 MB / 0.5296 GB, free: 18.67 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001808/0.4695, allocations: 75.81 kB / 0.5297 GB, free: 18.64 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002322/0.4697, allocations: 108 kB / 0.5298 GB, free: 18.57 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008318/0.4781, allocations: 2.953 MB / 0.5326 GB, free: 18 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.897e-06/0.4781, allocations: 3.938 kB / 0.5326 GB, free: 17.99 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.496e-06/0.4781, allocations: 0 / 0.5326 GB, free: 17.99 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.879e-06/0.4781, allocations: 0 / 0.5326 GB, free: 17.99 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.005517/0.4837, allocations: 1.157 MB / 0.5338 GB, free: 17.24 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.981e-05/0.4837, allocations: 9.188 kB / 0.5338 GB, free: 17.24 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001686/0.4854, allocations: 222.8 kB / 0.534 GB, free: 17.2 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006047/0.486, allocations: 350.8 kB / 0.5343 GB, free: 16.92 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.377e-05/0.4861, allocations: 28.5 kB / 0.5344 GB, free: 16.91 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.128e-05/0.4861, allocations: 26.09 kB / 0.5344 GB, free: 16.9 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001623/0.4878, allocations: 0.6013 MB / 0.535 GB, free: 16.64 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.434e-05/0.4878, allocations: 6.734 kB / 0.535 GB, free: 16.63 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.29e-05/0.4878, allocations: 15.83 kB / 0.535 GB, free: 16.62 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.142e-05/0.4879, allocations: 10.25 kB / 0.535 GB, free: 16.62 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00156/0.4894, allocations: 0.5612 MB / 0.5356 GB, free: 16.49 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.00297/0.4924, allocations: 2.646 MB / 0.5381 GB, free: 14.25 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001617/0.494, allocations: 500 kB / 0.5386 GB, free: 14.12 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004864/0.4945, allocations: 205.6 kB / 0.5388 GB, free: 14.05 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04805/0.5426, allocations: 24.42 MB / 0.5627 GB, free: 11.27 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.76e-05/0.5427, allocations: 36.02 kB / 0.5627 GB, free: 11.23 MB / 394.7 MB Notification: Performance of pre-optimization done (n=25): time 2.374e-06/0.5427, allocations: 0.5938 kB / 0.5627 GB, free: 11.23 MB / 394.7 MB Notification: Performance of matching and sorting (n=25): time 0.002942/0.5457, allocations: 0.8501 MB / 0.5635 GB, free: 10.83 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.693e-05/0.5458, allocations: 109 kB / 0.5636 GB, free: 10.7 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003921/0.5462, allocations: 304.2 kB / 0.5639 GB, free: 10.5 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.764e-05/0.5462, allocations: 32.2 kB / 0.5639 GB, free: 10.47 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001645/0.5464, allocations: 212 kB / 0.5642 GB, free: 10.28 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.603e-05/0.5465, allocations: 83.27 kB / 0.5642 GB, free: 10.2 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.794e-05/0.5465, allocations: 5.938 kB / 0.5642 GB, free: 10.2 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.5466, allocations: 342.7 kB / 0.5646 GB, free: 9.863 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003966/0.547, allocations: 155 kB / 0.5647 GB, free: 9.793 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004659/0.5475, allocations: 244.8 kB / 0.5649 GB, free: 9.609 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004142/0.5479, allocations: 172.3 kB / 0.5651 GB, free: 9.527 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.548, allocations: 0 / 0.5651 GB, free: 9.527 MB / 394.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009815/0.5489, allocations: 446.6 kB / 0.5655 GB, free: 9.312 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.163e-05/0.549, allocations: 7.5 kB / 0.5655 GB, free: 9.312 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.165e-06/0.549, allocations: 0 / 0.5655 GB, free: 9.312 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.981e-05/0.549, allocations: 6.156 kB / 0.5655 GB, free: 9.312 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003386/0.5494, allocations: 95.28 kB / 0.5656 GB, free: 9.281 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.538e-05/0.5494, allocations: 9.547 kB / 0.5656 GB, free: 9.277 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003946/0.5498, allocations: 66 kB / 0.5657 GB, free: 9.242 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.136e-05/0.5498, allocations: 12.89 kB / 0.5657 GB, free: 9.238 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: 5 (SourceP1.medium.phase,SinkP1.medium.phase,Opening.y,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.0002678/0.5501, allocations: 162.1 kB / 0.5659 GB, free: 9.09 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.613e-05/0.5502, allocations: 39.89 kB / 0.5659 GB, free: 9.066 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003194/0.5534, allocations: 1.941 MB / 0.5678 GB, free: 7.863 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.551e-05/0.5535, allocations: 27.95 kB / 0.5678 GB, free: 7.836 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.341e-06/0.5535, allocations: 0 / 0.5678 GB, free: 7.836 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.216e-05/0.5535, allocations: 11.62 kB / 0.5678 GB, free: 7.828 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001271/0.5548, allocations: 1.015 MB / 0.5688 GB, free: 6.766 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.48e-06/0.5548, allocations: 0 / 0.5688 GB, free: 6.766 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003159/0.5551, allocations: 75.94 kB / 0.5689 GB, free: 6.691 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.822e-06/0.5551, allocations: 7.938 kB / 0.5689 GB, free: 6.684 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.25e-05/0.5552, allocations: 4 kB / 0.5689 GB, free: 6.68 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.039e-06/0.5552, allocations: 8 kB / 0.5689 GB, free: 6.672 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.5552, allocations: 0 / 0.5689 GB, free: 6.672 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001552/0.5567, allocations: 1.101 MB / 0.57 GB, free: 5.551 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002236/0.557, allocations: 219.6 kB / 0.5702 GB, free: 5.316 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.53e-05/0.557, allocations: 8 kB / 0.5702 GB, free: 5.309 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003089/0.5573, allocations: 43.81 kB / 0.5703 GB, free: 5.266 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001073/0.5575, allocations: 35.95 kB / 0.5703 GB, free: 5.23 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.579e-05/0.5575, allocations: 11.98 kB / 0.5703 GB, free: 5.219 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003849/0.5579, allocations: 319.1 kB / 0.5706 GB, free: 4.906 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5579, allocations: 0 / 0.5706 GB, free: 4.906 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005136/0.563, allocations: 0.9993 MB / 0.5716 GB, free: 3.906 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: 19 ($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,Opening.y) * 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.006026/0.5691, allocations: 1.177 MB / 0.5727 GB, free: 2.727 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001493/0.5706, allocations: 0.613 MB / 0.5733 GB, free: 2.117 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/0.5706, allocations: 7.922 kB / 0.5733 GB, free: 2.109 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007182/0.5713, allocations: 0.5244 MB / 0.5739 GB, free: 1.586 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001326/0.5727, allocations: 206.5 kB / 0.5741 GB, free: 1.387 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002644/0.5753, allocations: 1.902 MB / 0.5759 GB, free: 15.45 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005458/0.5759, allocations: 0.9641 MB / 0.5769 GB, free: 14.45 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001205/0.576, allocations: 47.42 kB / 0.5769 GB, free: 14.41 MB / 410.7 MB Notification: Performance of SimCode: time 4.81e-07/0.576, allocations: 0 / 0.5769 GB, free: 14.41 MB / 410.7 MB Notification: Performance of Templates: time 0.0422/0.6182, allocations: 23.9 MB / 0.6002 GB, free: 6.504 MB / 426.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches