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.002243/0.002243, allocations: 186.2 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.918/1.918, allocations: 205.4 MB / 222.5 MB, free: 9.141 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.001125/0.001124, allocations: 91.45 kB / 270.9 MB, free: 8.398 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.5015/0.5015, allocations: 43.55 MB / 362.7 MB, free: 51.91 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004751/0.0004753, allocations: 16 kB / 431.4 MB, free: 5.973 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1262/0.1267, allocations: 58.84 MB / 490.2 MB, free: 11.04 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.285/8.412, allocations: 2.754 GB / 3.233 GB, free: 57.61 MB / 0.4949 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002957/8.412, allocations: 86.58 kB / 3.233 GB, free: 57.56 MB / 0.4949 GB Notification: Performance of FrontEnd - DAE generated: time 1.124/9.536, allocations: 217.4 MB / 3.445 GB, free: 44.14 MB / 0.4949 GB Notification: Performance of FrontEnd: time 1.884e-06/9.536, allocations: 0 / 3.445 GB, free: 44.14 MB / 0.4949 GB Notification: Performance of Transformations before backend: time 2.857e-05/9.536, allocations: 4 kB / 3.445 GB, free: 44.13 MB / 0.4949 GB 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.006094/9.542, allocations: 1.22 MB / 3.446 GB, free: 42.86 MB / 0.4949 GB Notification: Performance of prepare preOptimizeDAE: time 4.757e-05/9.542, allocations: 8.031 kB / 3.446 GB, free: 42.85 MB / 0.4949 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002558/9.545, allocations: 227.2 kB / 3.447 GB, free: 42.63 MB / 0.4949 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008416/9.546, allocations: 362.2 kB / 3.447 GB, free: 42.23 MB / 0.4949 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.484e-05/9.546, allocations: 25.69 kB / 3.447 GB, free: 42.21 MB / 0.4949 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.031e-05/9.546, allocations: 28 kB / 3.447 GB, free: 42.18 MB / 0.4949 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002314/9.548, allocations: 0.6181 MB / 3.448 GB, free: 41.52 MB / 0.4949 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.439e-05/9.548, allocations: 8.516 kB / 3.448 GB, free: 41.52 MB / 0.4949 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.25e-05/9.548, allocations: 12 kB / 3.448 GB, free: 41.5 MB / 0.4949 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.26e-05/9.548, allocations: 8.344 kB / 3.448 GB, free: 41.5 MB / 0.4949 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002632/9.551, allocations: 0.5836 MB / 3.448 GB, free: 40.91 MB / 0.4949 GB 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.003907/9.555, allocations: 2.605 MB / 3.451 GB, free: 38.07 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002446/9.557, allocations: 490.1 kB / 3.451 GB, free: 37.58 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07231/9.63, allocations: 24.07 MB / 3.475 GB, free: 10.61 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.318e-05/9.63, allocations: 30.56 kB / 3.475 GB, free: 10.57 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=25): time 3.196e-06/9.63, allocations: 4 kB / 3.475 GB, free: 10.57 MB / 0.4949 GB Notification: Performance of matching and sorting (n=25): time 0.004522/9.634, allocations: 0.8535 MB / 3.476 GB, free: 9.711 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.066e-05/9.634, allocations: 102.8 kB / 3.476 GB, free: 9.586 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004158/9.635, allocations: 279.6 kB / 3.476 GB, free: 9.309 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 5.122e-05/9.635, allocations: 37.69 kB / 3.476 GB, free: 9.266 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001187/9.635, allocations: 246.7 kB / 3.476 GB, free: 9.023 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 8.552e-05/9.635, allocations: 90.73 kB / 3.476 GB, free: 8.934 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.008e-05/9.635, allocations: 4 kB / 3.476 GB, free: 8.93 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 6.661e-05/9.635, allocations: 326.8 kB / 3.477 GB, free: 8.602 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007325/9.636, allocations: 155.9 kB / 3.477 GB, free: 8.449 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007722/9.637, allocations: 248.4 kB / 3.477 GB, free: 8.168 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007503/9.638, allocations: 171.9 kB / 3.477 GB, free: 8 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.61e-06/9.638, allocations: 0 / 3.477 GB, free: 8 MB / 0.4949 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001752/9.639, allocations: 437.9 kB / 3.478 GB, free: 7.566 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 2.358e-05/9.639, allocations: 7.953 kB / 3.478 GB, free: 7.559 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/9.639, allocations: 4 kB / 3.478 GB, free: 7.555 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.333e-05/9.639, allocations: 4 kB / 3.478 GB, free: 7.551 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00068/9.64, allocations: 112.1 kB / 3.478 GB, free: 7.441 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.184e-05/9.64, allocations: 4 kB / 3.478 GB, free: 7.438 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006434/9.641, allocations: 67.61 kB / 3.478 GB, free: 7.371 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.628e-05/9.641, allocations: 19.98 kB / 3.478 GB, free: 7.352 MB / 0.4949 GB 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.0002713/9.641, allocations: 161.7 kB / 3.478 GB, free: 7.184 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.395e-05/9.641, allocations: 35.62 kB / 3.478 GB, free: 7.148 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003547/9.645, allocations: 1.946 MB / 3.48 GB, free: 5.191 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.863e-05/9.645, allocations: 27.95 kB / 3.48 GB, free: 5.164 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/9.645, allocations: 7.922 kB / 3.48 GB, free: 5.156 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/9.645, allocations: 0 / 3.48 GB, free: 5.156 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001336/9.646, allocations: 1.008 MB / 3.481 GB, free: 4.094 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.705e-06/9.646, allocations: 4 kB / 3.481 GB, free: 4.09 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006773/9.647, allocations: 87.94 kB / 3.481 GB, free: 4.004 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.985e-06/9.647, allocations: 0 / 3.481 GB, free: 4.004 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.31e-05/9.647, allocations: 15.98 kB / 3.481 GB, free: 3.988 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.993e-06/9.647, allocations: 7.891 kB / 3.481 GB, free: 3.98 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/9.647, allocations: 0 / 3.481 GB, free: 3.98 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002241/9.649, allocations: 1.1 MB / 3.482 GB, free: 2.863 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002622/9.65, allocations: 223.6 kB / 3.482 GB, free: 2.625 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001013/9.65, allocations: 4 kB / 3.482 GB, free: 2.621 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006083/9.65, allocations: 63.8 kB / 3.482 GB, free: 2.559 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001159/9.651, allocations: 31.91 kB / 3.482 GB, free: 2.527 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.785e-05/9.651, allocations: 11.98 kB / 3.482 GB, free: 2.516 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.0004982/9.651, allocations: 323.1 kB / 3.483 GB, free: 2.203 MB / 0.4949 GB Notification: Performance of sort global known variables: time 3.41e-07/9.651, allocations: 3.938 kB / 3.483 GB, free: 2.199 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.004885/9.656, allocations: 1.007 MB / 3.484 GB, free: 1.191 MB / 0.4949 GB 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,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.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.3743/10.03, allocations: 1.367 MB / 3.485 GB, free: 71.61 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.002931/10.03, allocations: 0.6268 MB / 3.486 GB, free: 71.6 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/10.03, allocations: 0 / 3.486 GB, free: 71.6 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.00135/10.03, allocations: 0.5272 MB / 3.486 GB, free: 71.6 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001882/10.04, allocations: 205.2 kB / 3.486 GB, free: 71.6 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003312/10.04, allocations: 1.895 MB / 3.488 GB, free: 70.75 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005986/10.04, allocations: 0.9815 MB / 3.489 GB, free: 70.05 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002318/10.04, allocations: 38.09 kB / 3.489 GB, free: 70.04 MB / 0.4949 GB Notification: Performance of SimCode: time 1.152e-06/10.04, allocations: 0.875 kB / 3.489 GB, free: 70.04 MB / 0.4949 GB Notification: Performance of Templates: time 0.05887/10.1, allocations: 26.64 MB / 3.515 GB, free: 68.59 MB / 0.4949 GB 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/jenkins1/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