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.001268/0.001268, allocations: 179.7 kB / 14.15 MB, free: 1.176 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.318/1.318, allocations: 221.3 MB / 236 MB, free: 2.969 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001139/0.001139, allocations: 94.02 kB / 287 MB, free: 260 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2318/0.2318, allocations: 44.15 MB / 382 MB, free: 14.7 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.437e-05/4.44e-05, allocations: 4 kB / 451.8 MB, free: 9.441 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1395/0.1395, allocations: 61.91 MB / 0.5017 GB, free: 11.47 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.176/6.316, allocations: 2.777 GB / 3.279 GB, free: 153.5 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002872/6.316, allocations: 87.92 kB / 3.279 GB, free: 153.4 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 1.686/8.003, allocations: 0.5073 GB / 3.786 GB, free: 36.39 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.583e-06/8.003, allocations: 0 / 3.786 GB, free: 36.39 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001163/8.003, allocations: 35.66 kB / 3.786 GB, free: 36.38 MB / 0.5261 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.007854/8.011, allocations: 2.055 MB / 3.788 GB, free: 35 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.331e-05/8.011, allocations: 11.69 kB / 3.788 GB, free: 35 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005776/8.016, allocations: 0.7204 MB / 3.789 GB, free: 34.71 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001933/8.018, allocations: 0.8079 MB / 3.79 GB, free: 34.09 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001227/8.018, allocations: 83.09 kB / 3.79 GB, free: 34.05 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002989/8.019, allocations: 83.94 kB / 3.79 GB, free: 34.02 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004035/8.023, allocations: 1.71 MB / 3.792 GB, free: 32.93 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.998e-05/8.023, allocations: 7.75 kB / 3.792 GB, free: 32.93 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001698/8.023, allocations: 43.62 kB / 3.792 GB, free: 32.9 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.345e-05/8.023, allocations: 30.48 kB / 3.792 GB, free: 32.89 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003272/8.026, allocations: 1.49 MB / 3.793 GB, free: 32.21 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008714/8.035, allocations: 7.557 MB / 3.801 GB, free: 25.46 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00284/8.038, allocations: 1.171 MB / 3.802 GB, free: 24.63 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004401/8.038, allocations: 342.5 kB / 3.802 GB, free: 24.29 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0399/8.078, allocations: 24.26 MB / 3.826 GB, free: 13.21 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.166e-05/8.078, allocations: 39.12 kB / 3.826 GB, free: 13.17 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=67): time 2.234e-06/8.078, allocations: 3.938 kB / 3.826 GB, free: 13.16 MB / 0.5417 GB Notification: Performance of matching and sorting (n=67): time 0.005867/8.084, allocations: 1.793 MB / 3.828 GB, free: 11.36 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001347/8.085, allocations: 214.2 kB / 3.828 GB, free: 11.1 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001344/8.086, allocations: 0.7212 MB / 3.828 GB, free: 10.36 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001394/8.086, allocations: 37.7 kB / 3.828 GB, free: 10.31 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004633/8.086, allocations: 480.9 kB / 3.829 GB, free: 9.84 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003289/8.087, allocations: 227.7 kB / 3.829 GB, free: 9.621 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.049e-05/8.087, allocations: 24 kB / 3.829 GB, free: 9.598 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001655/8.087, allocations: 334 kB / 3.829 GB, free: 9.266 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005475/8.088, allocations: 265.9 kB / 3.83 GB, free: 9.008 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007974/8.088, allocations: 0.5543 MB / 3.83 GB, free: 8.324 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006247/8.089, allocations: 329.4 kB / 3.831 GB, free: 8.004 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.235e-06/8.089, allocations: 4 kB / 3.831 GB, free: 8 MB / 0.5417 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.001835/8.091, allocations: 0.9363 MB / 3.832 GB, free: 7.055 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001402/8.092, allocations: 3.227 MB / 3.835 GB, free: 3.578 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.94e-05/8.092, allocations: 12 kB / 3.835 GB, free: 3.566 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.394e-05/8.092, allocations: 16 kB / 3.835 GB, free: 3.551 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009863/8.093, allocations: 271.6 kB / 3.835 GB, free: 3.285 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.987e-05/8.093, allocations: 19.92 kB / 3.835 GB, free: 3.266 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001304/8.095, allocations: 186.7 kB / 3.835 GB, free: 3.082 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001086/8.095, allocations: 55.97 kB / 3.835 GB, free: 3.027 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.084e-05/8.095, allocations: 4 kB / 3.835 GB, free: 3.023 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001429/8.096, allocations: 0.7947 MB / 3.836 GB, free: 2.227 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.251e-05/8.096, allocations: 9 kB / 3.836 GB, free: 2.219 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.623e-05/8.096, allocations: 12 kB / 3.836 GB, free: 2.207 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009128/8.097, allocations: 279.5 kB / 3.836 GB, free: 1.934 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.522e-05/8.097, allocations: 27.92 kB / 3.836 GB, free: 1.906 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001181/8.099, allocations: 163 kB / 3.836 GB, free: 1.746 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.817e-05/8.099, allocations: 47.98 kB / 3.837 GB, free: 1.699 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 () * 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.0002751/8.099, allocations: 173.7 kB / 3.837 GB, free: 1.523 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002869/8.099, allocations: 106.7 kB / 3.837 GB, free: 1.418 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3958/8.495, allocations: 4.867 MB / 3.842 GB, free: 63.62 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.026e-05/8.495, allocations: 63.53 kB / 3.842 GB, free: 63.62 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.095e-05/8.495, allocations: 2.953 kB / 3.842 GB, free: 63.62 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.4e-05/8.495, allocations: 5.047 kB / 3.842 GB, free: 63.62 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003506/8.499, allocations: 2.497 MB / 3.844 GB, free: 63.39 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.653e-06/8.499, allocations: 2.078 kB / 3.844 GB, free: 63.39 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009578/8.5, allocations: 239.2 kB / 3.844 GB, free: 63.39 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.312e-05/8.5, allocations: 4.125 kB / 3.844 GB, free: 63.39 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.143e-05/8.5, allocations: 20.55 kB / 3.844 GB, free: 63.39 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.937e-06/8.5, allocations: 4.656 kB / 3.844 GB, free: 63.39 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/8.5, allocations: 0 / 3.844 GB, free: 63.39 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002477/8.502, allocations: 2.139 MB / 3.846 GB, free: 63.1 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009056/8.503, allocations: 0.6929 MB / 3.847 GB, free: 62.87 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001799/8.503, allocations: 14.28 kB / 3.847 GB, free: 62.87 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008823/8.504, allocations: 111.7 kB / 3.847 GB, free: 62.86 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000177/8.504, allocations: 85.83 kB / 3.847 GB, free: 62.86 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.1e-05/8.505, allocations: 34.09 kB / 3.847 GB, free: 62.86 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001707/8.506, allocations: 1.166 MB / 3.848 GB, free: 62.7 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.61e-07/8.506, allocations: 0 / 3.848 GB, free: 62.7 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.007688/8.514, allocations: 1.626 MB / 3.85 GB, free: 62.68 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 () * 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.009292/8.523, allocations: 1.782 MB / 3.852 GB, free: 62.55 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.003038/8.526, allocations: 1.686 MB / 3.853 GB, free: 62.5 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.733e-06/8.526, allocations: 3.406 kB / 3.853 GB, free: 62.5 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.00113/8.528, allocations: 1.036 MB / 3.854 GB, free: 62.49 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003664/8.531, allocations: 0.595 MB / 3.855 GB, free: 62.48 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005264/8.537, allocations: 3.083 MB / 3.858 GB, free: 61.77 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001049/8.538, allocations: 1.57 MB / 3.86 GB, free: 61.03 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.00398/8.542, allocations: 1.637 MB / 3.861 GB, free: 61.02 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003238/8.542, allocations: 94.64 kB / 3.861 GB, free: 61.01 MB / 0.5417 GB Notification: Performance of SimCode: time 3.657e-06/8.542, allocations: 3.469 kB / 3.861 GB, free: 61.01 MB / 0.5417 GB Notification: Performance of Templates: time 0.07498/8.617, allocations: 55.96 MB / 3.916 GB, free: 58.69 MB / 0.5417 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