Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.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.TestValveIncompressible,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|V1.minLimiter.y|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|SourceP2.ports.1..m_flow|SourceP2.ports.1..p|SourceP2.ports.1..h_outflow|V2.port_b.m_flow|V2.port_b.p|V2.port_b.h_outflow|V2.minLimiter.y|SinkP2.ports.1..m_flow|SinkP2.ports.1..p|SinkP2.ports.1..h_outflow|SourceP3.ports.1..m_flow|SourceP3.ports.1..p|SourceP3.ports.1..h_outflow|V3.port_b.m_flow|V3.port_b.p|V3.port_b.h_outflow|V3.minLimiter.y|SinkP3.ports.1..m_flow|SinkP3.ports.1..p|SinkP3.ports.1..h_outflow",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible,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|V1.minLimiter.y|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|SourceP2.ports.1..m_flow|SourceP2.ports.1..p|SourceP2.ports.1..h_outflow|V2.port_b.m_flow|V2.port_b.p|V2.port_b.h_outflow|V2.minLimiter.y|SinkP2.ports.1..m_flow|SinkP2.ports.1..p|SinkP2.ports.1..h_outflow|SourceP3.ports.1..m_flow|SourceP3.ports.1..p|SourceP3.ports.1..h_outflow|V3.port_b.m_flow|V3.port_b.p|V3.port_b.h_outflow|V3.minLimiter.y|SinkP3.ports.1..m_flow|SinkP3.ports.1..p|SinkP3.ports.1..h_outflow",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001812/0.001812, allocations: 182.8 kB / 15.76 MB, free: 6.367 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.632/1.632, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.0008427/0.0008427, allocations: 98.84 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1984/0.1984, allocations: 43.55 MB / 362 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003082/0.0003082, allocations: 12 kB / 431.4 MB, free: 19.58 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.1213, allocations: 58.86 MB / 490.3 MB, free: 8.656 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.586/6.707, allocations: 2.772 GB / 3.251 GB, free: 138.1 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002467/6.707, allocations: 84.33 kB / 3.251 GB, free: 138.1 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 1.615/8.322, allocations: 0.5035 GB / 3.754 GB, free: 24.91 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.984e-06/8.322, allocations: 3.219 kB / 3.754 GB, free: 24.91 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 7.998e-05/8.323, allocations: 31.52 kB / 3.754 GB, free: 24.88 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.007532/8.33, allocations: 2.166 MB / 3.757 GB, free: 22.71 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/8.33, allocations: 8.031 kB / 3.757 GB, free: 22.71 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005676/8.336, allocations: 0.7144 MB / 3.757 GB, free: 22 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001689/8.338, allocations: 0.8093 MB / 3.758 GB, free: 21.17 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.201e-05/8.338, allocations: 82 kB / 3.758 GB, free: 21.09 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001298/8.338, allocations: 84 kB / 3.758 GB, free: 21.01 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00411/8.342, allocations: 1.755 MB / 3.76 GB, free: 19.16 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.409e-05/8.342, allocations: 4 kB / 3.76 GB, free: 19.16 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001383/8.342, allocations: 44 kB / 3.76 GB, free: 19.11 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.763e-05/8.342, allocations: 26.22 kB / 3.76 GB, free: 19.09 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004093/8.346, allocations: 1.65 MB / 3.762 GB, free: 17.46 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008747/8.355, allocations: 7.56 MB / 3.769 GB, free: 9.41 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003651/8.359, allocations: 1.309 MB / 3.77 GB, free: 8.094 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3246/8.683, allocations: 24.17 MB / 3.794 GB, free: 58.29 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.271e-05/8.683, allocations: 44.36 kB / 3.794 GB, free: 58.25 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=67): time 2.835e-06/8.683, allocations: 0 / 3.794 GB, free: 58.25 MB / 0.5261 GB Notification: Performance of matching and sorting (n=67): time 0.007442/8.691, allocations: 2.226 MB / 3.796 GB, free: 58.22 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.172e-05/8.691, allocations: 213.7 kB / 3.796 GB, free: 57.97 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000942/8.692, allocations: 0.7295 MB / 3.797 GB, free: 57.83 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 7.977e-05/8.692, allocations: 44.2 kB / 3.797 GB, free: 57.8 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002868/8.692, allocations: 481.3 kB / 3.798 GB, free: 57.66 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001641/8.693, allocations: 233.2 kB / 3.798 GB, free: 57.55 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.471e-05/8.693, allocations: 16 kB / 3.798 GB, free: 57.55 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 6.879e-05/8.693, allocations: 340.9 kB / 3.798 GB, free: 57.24 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008591/8.694, allocations: 396.7 kB / 3.798 GB, free: 57.24 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009623/8.695, allocations: 0.6811 MB / 3.799 GB, free: 56.89 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009225/8.695, allocations: 458.4 kB / 3.8 GB, free: 56.89 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.582e-06/8.695, allocations: 6.266 kB / 3.8 GB, free: 56.89 MB / 0.5261 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.0027/8.698, allocations: 1.188 MB / 3.801 GB, free: 56.79 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005366/8.699, allocations: 3.224 MB / 3.804 GB, free: 53.44 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.272e-05/8.699, allocations: 9.031 kB / 3.804 GB, free: 53.44 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.43e-05/8.699, allocations: 15.69 kB / 3.804 GB, free: 53.44 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008654/8.7, allocations: 272.2 kB / 3.804 GB, free: 53.44 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.114e-05/8.7, allocations: 19.84 kB / 3.804 GB, free: 53.44 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001169/8.701, allocations: 194.1 kB / 3.804 GB, free: 53.41 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.073e-05/8.701, allocations: 57.47 kB / 3.804 GB, free: 53.4 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 9.457e-06/8.701, allocations: 2.938 kB / 3.804 GB, free: 53.4 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002288/8.703, allocations: 1.052 MB / 3.805 GB, free: 53.39 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-05/8.703, allocations: 10.44 kB / 3.805 GB, free: 53.39 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.808e-05/8.703, allocations: 14.72 kB / 3.805 GB, free: 53.39 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008848/8.704, allocations: 274.1 kB / 3.806 GB, free: 53.39 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.896e-05/8.704, allocations: 16.09 kB / 3.806 GB, free: 53.39 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009741/8.705, allocations: 167.4 kB / 3.806 GB, free: 53.36 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.004e-05/8.705, allocations: 50.61 kB / 3.806 GB, free: 53.36 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 12 (SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,V3.state_b.phase,V3.state_a.phase,V2.state_b.phase,V2.state_a.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 (109): * Single equations (assignments): 109 * 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.0005605/8.706, allocations: 340.9 kB / 3.806 GB, free: 53.18 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001817/8.706, allocations: 112 kB / 3.806 GB, free: 53.12 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006138/8.712, allocations: 5.129 MB / 3.811 GB, free: 52.59 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.69e-05/8.712, allocations: 63.7 kB / 3.811 GB, free: 52.59 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.276e-06/8.712, allocations: 1.312 kB / 3.811 GB, free: 52.59 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.042e-05/8.712, allocations: 3.609 kB / 3.811 GB, free: 52.59 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003358/8.716, allocations: 2.497 MB / 3.814 GB, free: 52.24 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.051e-06/8.716, allocations: 0 / 3.814 GB, free: 52.24 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008808/8.717, allocations: 240 kB / 3.814 GB, free: 52.24 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.005e-05/8.717, allocations: 10.36 kB / 3.814 GB, free: 52.23 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.017e-05/8.717, allocations: 21.58 kB / 3.814 GB, free: 52.23 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.37e-06/8.717, allocations: 2.219 kB / 3.814 GB, free: 52.23 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/8.717, allocations: 1.453 kB / 3.814 GB, free: 52.23 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003607/8.72, allocations: 2.385 MB / 3.817 GB, free: 51.83 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001127/8.721, allocations: 0.6986 MB / 3.817 GB, free: 51.52 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001947/8.722, allocations: 21.72 kB / 3.817 GB, free: 51.51 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008477/8.722, allocations: 105.8 kB / 3.817 GB, free: 51.51 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001876/8.723, allocations: 81.72 kB / 3.817 GB, free: 51.51 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.573e-05/8.723, allocations: 39.03 kB / 3.817 GB, free: 51.51 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001518/8.724, allocations: 1.191 MB / 3.819 GB, free: 51.36 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.7e-07/8.724, allocations: 0 / 3.819 GB, free: 51.36 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006244/8.731, allocations: 1.618 MB / 3.82 GB, free: 51.28 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 42 ($cse2.phase,$cse2.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse12.phase,$cse12.region,$cse16.phase,$cse16.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse26.phase,$cse26.region,$cse30.phase,$cse30.region,$cse33.phase,$cse33.region,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.phase,$cse37.region,$cse40.phase,$cse40.region,SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (91): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * 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.008939/8.74, allocations: 1.764 MB / 3.822 GB, free: 51.09 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.004092/8.744, allocations: 2.053 MB / 3.824 GB, free: 51.05 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.202e-06/8.744, allocations: 0 / 3.824 GB, free: 51.05 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001459/8.745, allocations: 1.159 MB / 3.825 GB, free: 51.05 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003249/8.748, allocations: 0.6009 MB / 3.826 GB, free: 51.02 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005257/8.754, allocations: 4.932 MB / 3.83 GB, free: 48.81 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007186/8.754, allocations: 1.567 MB / 3.832 GB, free: 48.08 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.002153/8.757, allocations: 1.59 MB / 3.834 GB, free: 48.05 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002445/8.757, allocations: 108.3 kB / 3.834 GB, free: 48.04 MB / 0.5261 GB Notification: Performance of SimCode: time 6.91e-07/8.757, allocations: 0 / 3.834 GB, free: 48.04 MB / 0.5261 GB Notification: Performance of Templates: time 0.06911/8.826, allocations: 52.84 MB / 3.885 GB, free: 45.22 MB / 0.5261 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveIncompressible/TestValveIncompressible.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches