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.001806/0.001806, allocations: 187.4 kB / 18.09 MB, free: 3.723 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.354/1.354, allocations: 223.3 MB / 242.1 MB, free: 10 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.0007867/0.0007868, allocations: 106.2 kB / 293.3 MB, free: 10.58 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.3718/0.3718, allocations: 44.15 MB / 388.5 MB, free: 38.5 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004257/0.0004259, allocations: 12 kB / 461.1 MB, free: 1.332 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3503/0.3508, allocations: 61.87 MB / 0.5107 GB, free: 38.13 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.922/6.272, allocations: 2.778 GB / 3.288 GB, free: 78.17 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002341/6.273, allocations: 91.88 kB / 3.288 GB, free: 78.08 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 1.833/8.106, allocations: 0.5052 GB / 3.794 GB, free: 49.6 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.004e-06/8.106, allocations: 0 / 3.794 GB, free: 49.6 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.000129/8.106, allocations: 34.78 kB / 3.794 GB, free: 49.6 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.008058/8.114, allocations: 2.156 MB / 3.796 GB, free: 48.79 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.382e-05/8.114, allocations: 10.97 kB / 3.796 GB, free: 48.79 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005962/8.12, allocations: 0.7199 MB / 3.797 GB, free: 48.73 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002215/8.122, allocations: 0.83 MB / 3.797 GB, free: 48.43 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001498/8.123, allocations: 80.19 kB / 3.797 GB, free: 48.43 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002932/8.123, allocations: 84.19 kB / 3.797 GB, free: 48.43 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004746/8.128, allocations: 1.76 MB / 3.799 GB, free: 48.1 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.578e-05/8.128, allocations: 8.266 kB / 3.799 GB, free: 48.1 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001991/8.128, allocations: 45.16 kB / 3.799 GB, free: 48.1 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.289e-05/8.128, allocations: 23.69 kB / 3.799 GB, free: 48.1 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004276/8.132, allocations: 1.652 MB / 3.801 GB, free: 48.09 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008707/8.141, allocations: 7.552 MB / 3.808 GB, free: 43.11 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003669/8.145, allocations: 1.301 MB / 3.81 GB, free: 43.08 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009304/8.146, allocations: 472.2 kB / 3.81 GB, free: 43.07 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0408/8.186, allocations: 24.18 MB / 3.834 GB, free: 28.23 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.113e-05/8.187, allocations: 42.72 kB / 3.834 GB, free: 28.19 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=67): time 5.51e-06/8.187, allocations: 0 / 3.834 GB, free: 28.19 MB / 0.5417 GB Notification: Performance of matching and sorting (n=67): time 0.008166/8.195, allocations: 2.22 MB / 3.836 GB, free: 28.11 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001028/8.195, allocations: 218.8 kB / 3.836 GB, free: 27.86 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001779/8.197, allocations: 0.8381 MB / 3.837 GB, free: 27.7 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001664/8.197, allocations: 36.8 kB / 3.837 GB, free: 27.66 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004077/8.197, allocations: 479 kB / 3.837 GB, free: 27.46 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002845/8.198, allocations: 230.5 kB / 3.838 GB, free: 27.31 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.454e-05/8.198, allocations: 16.78 kB / 3.838 GB, free: 27.31 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001073/8.198, allocations: 336.7 kB / 3.838 GB, free: 27.01 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001129/8.199, allocations: 397.8 kB / 3.838 GB, free: 27.01 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001367/8.2, allocations: 0.6837 MB / 3.839 GB, free: 26.66 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002391/8.203, allocations: 1.048 MB / 3.84 GB, free: 26.36 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.792e-05/8.203, allocations: 1.406 kB / 3.84 GB, free: 26.36 MB / 0.5417 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.003649/8.206, allocations: 1.191 MB / 3.841 GB, free: 26.26 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002612/8.207, allocations: 333.2 kB / 3.841 GB, free: 25.88 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.759e-05/8.207, allocations: 10.72 kB / 3.841 GB, free: 25.88 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.082e-05/8.207, allocations: 12 kB / 3.841 GB, free: 25.88 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001112/8.208, allocations: 274.9 kB / 3.842 GB, free: 25.88 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.333e-05/8.208, allocations: 17.34 kB / 3.842 GB, free: 25.88 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001892/8.21, allocations: 192.7 kB / 3.842 GB, free: 25.82 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001829/8.21, allocations: 51.53 kB / 3.842 GB, free: 25.82 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/8.21, allocations: 3.562 kB / 3.842 GB, free: 25.82 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003146/8.213, allocations: 1.054 MB / 3.843 GB, free: 25.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.544e-05/8.213, allocations: 8.219 kB / 3.843 GB, free: 25.8 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.663e-05/8.213, allocations: 18.08 kB / 3.843 GB, free: 25.8 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000921/8.214, allocations: 274.3 kB / 3.843 GB, free: 25.8 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.11e-05/8.214, allocations: 17.47 kB / 3.843 GB, free: 25.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001195/8.216, allocations: 170.5 kB / 3.843 GB, free: 25.75 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001272/8.216, allocations: 51.34 kB / 3.844 GB, free: 25.75 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.0006949/8.216, allocations: 342.8 kB / 3.844 GB, free: 25.56 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003381/8.217, allocations: 107.3 kB / 3.844 GB, free: 25.5 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006899/8.224, allocations: 5.131 MB / 3.849 GB, free: 24.86 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.367e-05/8.224, allocations: 59.81 kB / 3.849 GB, free: 24.86 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.434e-05/8.224, allocations: 3.344 kB / 3.849 GB, free: 24.86 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.686e-05/8.224, allocations: 4.594 kB / 3.849 GB, free: 24.86 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003785/8.228, allocations: 2.499 MB / 3.851 GB, free: 24.45 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.54e-05/8.228, allocations: 3.703 kB / 3.851 GB, free: 24.45 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007843/8.228, allocations: 236.8 kB / 3.852 GB, free: 24.45 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.572e-05/8.228, allocations: 10.59 kB / 3.852 GB, free: 24.45 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.211e-05/8.229, allocations: 20.88 kB / 3.852 GB, free: 24.45 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.643e-06/8.229, allocations: 3.969 kB / 3.852 GB, free: 24.45 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/8.229, allocations: 0 / 3.852 GB, free: 24.45 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003445/8.232, allocations: 2.379 MB / 3.854 GB, free: 24.04 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001164/8.233, allocations: 0.6995 MB / 3.855 GB, free: 23.73 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004499/8.234, allocations: 21.25 kB / 3.855 GB, free: 23.72 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001173/8.235, allocations: 114.8 kB / 3.855 GB, free: 23.71 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002602/8.235, allocations: 81.78 kB / 3.855 GB, free: 23.71 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.106e-05/8.235, allocations: 33.59 kB / 3.855 GB, free: 23.71 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001875/8.237, allocations: 1.189 MB / 3.856 GB, free: 23.57 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.272e-06/8.237, allocations: 0 / 3.856 GB, free: 23.57 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.007405/8.245, allocations: 1.621 MB / 3.858 GB, free: 23.38 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.008323/8.253, allocations: 1.781 MB / 3.859 GB, free: 22.98 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.004468/8.257, allocations: 2.043 MB / 3.861 GB, free: 22.91 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.614e-06/8.257, allocations: 4.656 kB / 3.861 GB, free: 22.91 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001616/8.259, allocations: 1.165 MB / 3.863 GB, free: 22.89 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003529/8.263, allocations: 0.6054 MB / 3.863 GB, free: 22.84 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006215/8.269, allocations: 4.926 MB / 3.868 GB, free: 20.56 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001064/8.27, allocations: 1.527 MB / 3.869 GB, free: 19.79 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.002513/8.272, allocations: 1.586 MB / 3.871 GB, free: 19.75 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000388/8.273, allocations: 110.9 kB / 3.871 GB, free: 19.74 MB / 0.5417 GB Notification: Performance of SimCode: time 1.052e-06/8.273, allocations: 0 / 3.871 GB, free: 19.74 MB / 0.5417 GB Notification: Performance of Templates: time 0.07275/8.346, allocations: 55.37 MB / 3.925 GB, free: 16.67 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/jenkins1/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