Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0011/0.0011, allocations: 177 kB / 17.06 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.349/1.349, allocations: 223.2 MB / 241 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009513/0.0009516, allocations: 92.45 kB / 292.1 MB, free: 10.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.4041/0.4041, allocations: 44.21 MB / 387.5 MB, free: 38.78 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003083/0.0003084, allocations: 16 kB / 459.9 MB, free: 1.488 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.375/0.3753, allocations: 61.89 MB / 0.5096 GB, free: 37.89 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.644/7.019, allocations: 2.777 GB / 3.287 GB, free: 77.9 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002401/7.019, allocations: 93.11 kB / 3.287 GB, free: 77.82 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.02/9.039, allocations: 0.5091 GB / 3.796 GB, free: 50.39 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.793e-06/9.039, allocations: 0 / 3.796 GB, free: 50.39 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001031/9.039, allocations: 32.66 kB / 3.796 GB, free: 50.39 MB / 0.5417 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.008288/9.048, allocations: 2.18 MB / 3.798 GB, free: 49.55 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.966e-05/9.048, allocations: 9.703 kB / 3.798 GB, free: 49.55 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006397/9.054, allocations: 0.7099 MB / 3.799 GB, free: 49.48 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001897/9.056, allocations: 0.813 MB / 3.8 GB, free: 49.2 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001002/9.056, allocations: 78 kB / 3.8 GB, free: 49.2 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002009/9.056, allocations: 91.92 kB / 3.8 GB, free: 49.2 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00399/9.06, allocations: 1.746 MB / 3.802 GB, free: 48.87 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.479e-05/9.06, allocations: 7.469 kB / 3.802 GB, free: 48.87 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001319/9.06, allocations: 39.28 kB / 3.802 GB, free: 48.87 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.786e-05/9.06, allocations: 24.41 kB / 3.802 GB, free: 48.87 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003936/9.064, allocations: 1.657 MB / 3.803 GB, free: 48.86 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007753/9.072, allocations: 7.557 MB / 3.811 GB, free: 43.87 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00354/9.076, allocations: 1.299 MB / 3.812 GB, free: 43.85 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03997/9.116, allocations: 24.17 MB / 3.836 GB, free: 29.01 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.18e-05/9.116, allocations: 42.12 kB / 3.836 GB, free: 28.97 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=67): time 2.956e-06/9.116, allocations: 2.5 kB / 3.836 GB, free: 28.97 MB / 0.5417 GB Notification: Performance of matching and sorting (n=67): time 0.007213/9.123, allocations: 2.23 MB / 3.838 GB, free: 28.89 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.505e-05/9.123, allocations: 216.6 kB / 3.838 GB, free: 28.63 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009904/9.124, allocations: 0.7333 MB / 3.839 GB, free: 28.48 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 7.819e-05/9.124, allocations: 40.36 kB / 3.839 GB, free: 28.45 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002975/9.125, allocations: 477.2 kB / 3.839 GB, free: 28.24 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001802/9.125, allocations: 231.4 kB / 3.839 GB, free: 28.1 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.401e-05/9.125, allocations: 16.31 kB / 3.839 GB, free: 28.1 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 7.502e-05/9.125, allocations: 341.8 kB / 3.84 GB, free: 27.79 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009703/9.126, allocations: 394.2 kB / 3.84 GB, free: 27.79 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001162/9.127, allocations: 0.6825 MB / 3.841 GB, free: 27.45 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001069/9.128, allocations: 458.4 kB / 3.841 GB, free: 27.44 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.125e-05/9.128, allocations: 2.094 kB / 3.841 GB, free: 27.44 MB / 0.5417 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.002739/9.131, allocations: 1.184 MB / 3.842 GB, free: 27.35 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006011/9.131, allocations: 3.227 MB / 3.846 GB, free: 23.99 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.365e-05/9.131, allocations: 9.719 kB / 3.846 GB, free: 23.99 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.179e-05/9.132, allocations: 13.75 kB / 3.846 GB, free: 23.99 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000975/9.132, allocations: 271.2 kB / 3.846 GB, free: 23.99 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.672e-05/9.133, allocations: 21.53 kB / 3.846 GB, free: 23.99 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001183/9.134, allocations: 198.1 kB / 3.846 GB, free: 23.93 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001078/9.134, allocations: 53.09 kB / 3.846 GB, free: 23.93 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.002e-05/9.134, allocations: 3.406 kB / 3.846 GB, free: 23.93 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00239/9.136, allocations: 1.054 MB / 3.847 GB, free: 23.91 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.534e-05/9.136, allocations: 6.5 kB / 3.847 GB, free: 23.91 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.737e-05/9.136, allocations: 13.62 kB / 3.847 GB, free: 23.91 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009093/9.137, allocations: 266.9 kB / 3.847 GB, free: 23.91 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.664e-05/9.137, allocations: 22.45 kB / 3.847 GB, free: 23.91 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00108/9.138, allocations: 175.8 kB / 3.848 GB, free: 23.86 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001055/9.138, allocations: 55.52 kB / 3.848 GB, free: 23.86 MB / 0.5417 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.0005447/9.139, allocations: 338.4 kB / 3.848 GB, free: 23.66 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002159/9.139, allocations: 108.2 kB / 3.848 GB, free: 23.61 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005775/9.145, allocations: 5.129 MB / 3.853 GB, free: 22.93 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.749e-05/9.145, allocations: 63.61 kB / 3.853 GB, free: 22.93 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.729e-06/9.145, allocations: 4 kB / 3.853 GB, free: 22.93 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.122e-05/9.145, allocations: 4.594 kB / 3.853 GB, free: 22.93 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002648/9.148, allocations: 2.498 MB / 3.856 GB, free: 22.53 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.234e-05/9.148, allocations: 0 / 3.856 GB, free: 22.53 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007597/9.149, allocations: 237.9 kB / 3.856 GB, free: 22.52 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.3e-05/9.149, allocations: 3.719 kB / 3.856 GB, free: 22.52 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.22e-05/9.149, allocations: 26.56 kB / 3.856 GB, free: 22.52 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.141e-06/9.149, allocations: 3.656 kB / 3.856 GB, free: 22.52 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/9.149, allocations: 0 / 3.856 GB, free: 22.52 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002826/9.152, allocations: 2.39 MB / 3.858 GB, free: 22.09 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008182/9.152, allocations: 0.6925 MB / 3.859 GB, free: 21.78 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002572/9.153, allocations: 19.84 kB / 3.859 GB, free: 21.78 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009043/9.154, allocations: 117.2 kB / 3.859 GB, free: 21.76 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001438/9.154, allocations: 85.5 kB / 3.859 GB, free: 21.76 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.36e-05/9.154, allocations: 30.78 kB / 3.859 GB, free: 21.76 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.00137/9.155, allocations: 1.187 MB / 3.86 GB, free: 21.61 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.6e-07/9.155, allocations: 0 / 3.86 GB, free: 21.61 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006709/9.162, allocations: 1.618 MB / 3.862 GB, free: 21.42 MB / 0.5417 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.008763/9.171, allocations: 1.772 MB / 3.864 GB, free: 37.01 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.004119/9.175, allocations: 2.047 MB / 3.866 GB, free: 36.95 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 7.054e-06/9.175, allocations: 3.906 kB / 3.866 GB, free: 36.94 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001376/9.176, allocations: 1.168 MB / 3.867 GB, free: 36.92 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002893/9.179, allocations: 0.6041 MB / 3.867 GB, free: 36.87 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00493/9.184, allocations: 4.92 MB / 3.872 GB, free: 34.59 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008244/9.185, allocations: 1.567 MB / 3.874 GB, free: 33.82 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.002007/9.187, allocations: 1.589 MB / 3.875 GB, free: 33.77 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002365/9.187, allocations: 109 kB / 3.875 GB, free: 33.77 MB / 0.5573 GB Notification: Performance of SimCode: time 1.422e-06/9.187, allocations: 0 / 3.875 GB, free: 33.77 MB / 0.5573 GB Notification: Performance of Templates: time 0.0682/9.255, allocations: 52.87 MB / 3.927 GB, free: 30.75 MB / 0.5573 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveIncompressible/TestValveIncompressible.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches