Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_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_cpp_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.002241/0.002241, allocations: 180.1 kB / 8.365 MB, free: 0.7109 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.08/2.08, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001112/0.001112, allocations: 84.69 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3057/0.3057, allocations: 43.48 MB / 353.6 MB, free: 2.27 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.418e-05/2.417e-05, allocations: 0 / 418.2 MB, free: 41.03 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4268/0.4269, allocations: 58.85 MB / 477.1 MB, free: 5.27 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.828/8.255, allocations: 2.771 GB / 3.237 GB, free: 16.03 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002929/8.255, allocations: 90.75 kB / 3.237 GB, free: 15.98 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 2.718/10.97, allocations: 0.4969 GB / 3.734 GB, free: 54.55 MB / 0.5108 GB Notification: Performance of FrontEnd: time 3.396e-06/10.97, allocations: 0 / 3.734 GB, free: 54.55 MB / 0.5108 GB Notification: Performance of Transformations before backend: time 0.00011/10.97, allocations: 38.17 kB / 3.734 GB, free: 54.54 MB / 0.5108 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.009491/10.98, allocations: 2.052 MB / 3.736 GB, free: 53.59 MB / 0.5108 GB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/10.98, allocations: 7.656 kB / 3.736 GB, free: 53.59 MB / 0.5108 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008361/10.99, allocations: 0.7194 MB / 3.737 GB, free: 53.53 MB / 0.5108 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00249/10.99, allocations: 0.8029 MB / 3.738 GB, free: 53.23 MB / 0.5108 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001099/10.99, allocations: 40.34 kB / 3.738 GB, free: 53.23 MB / 0.5108 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000241/10.99, allocations: 53.38 kB / 3.738 GB, free: 53.23 MB / 0.5108 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002615/11, allocations: 0.9146 MB / 3.739 GB, free: 53.23 MB / 0.5108 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002746/11, allocations: 1.089 MB / 3.74 GB, free: 52.9 MB / 0.5108 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.914e-05/11, allocations: 8.031 kB / 3.74 GB, free: 52.9 MB / 0.5108 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001926/11, allocations: 7.188 kB / 3.74 GB, free: 52.9 MB / 0.5108 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.423e-05/11, allocations: 22.59 kB / 3.74 GB, free: 52.9 MB / 0.5108 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1655/11.17, allocations: 52.96 MB / 3.792 GB, free: 20.13 MB / 0.5108 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001373/11.17, allocations: 0.5992 MB / 3.792 GB, free: 20.11 MB / 0.5108 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006677/11.17, allocations: 302.8 kB / 3.792 GB, free: 20.09 MB / 0.5108 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05207/11.22, allocations: 16.64 MB / 3.809 GB, free: 25.2 MB / 0.5265 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.355e-05/11.22, allocations: 54.77 kB / 3.809 GB, free: 25.16 MB / 0.5265 GB Notification: Performance of pre-optimization done (n=61): time 3.387e-06/11.22, allocations: 0 / 3.809 GB, free: 25.16 MB / 0.5265 GB Notification: Performance of matching and sorting (n=61): time 0.007811/11.23, allocations: 1.479 MB / 3.81 GB, free: 25.07 MB / 0.5265 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000135/11.23, allocations: 216.1 kB / 3.81 GB, free: 24.82 MB / 0.5265 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009855/11.23, allocations: 0.5571 MB / 3.811 GB, free: 24.68 MB / 0.5265 GB Notification: Performance of collectPreVariables (initialization): time 0.0001768/11.23, allocations: 29.7 kB / 3.811 GB, free: 24.64 MB / 0.5265 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003596/11.23, allocations: 0.5314 MB / 3.811 GB, free: 24.3 MB / 0.5265 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002233/11.23, allocations: 200.2 kB / 3.812 GB, free: 24.18 MB / 0.5265 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.68e-05/11.23, allocations: 0 / 3.812 GB, free: 24.18 MB / 0.5265 GB Notification: Performance of setup shared object (initialization): time 0.0001553/11.23, allocations: 346.3 kB / 3.812 GB, free: 23.86 MB / 0.5265 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006063/11.23, allocations: 247.2 kB / 3.812 GB, free: 23.86 MB / 0.5265 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008011/11.23, allocations: 0.5403 MB / 3.813 GB, free: 23.51 MB / 0.5265 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00366/11.24, allocations: 0.5745 MB / 3.813 GB, free: 23.48 MB / 0.5265 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.641e-05/11.24, allocations: 3.938 kB / 3.813 GB, free: 23.48 MB / 0.5265 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.005192/11.24, allocations: 1.059 MB / 3.814 GB, free: 23.41 MB / 0.5265 GB Notification: Performance of prepare postOptimizeDAE: time 0.001327/11.24, allocations: 3.224 MB / 3.817 GB, free: 20.03 MB / 0.5265 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.473e-05/11.24, allocations: 13.38 kB / 3.817 GB, free: 20.03 MB / 0.5265 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.195e-05/11.24, allocations: 18.09 kB / 3.818 GB, free: 20.03 MB / 0.5265 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00202/11.24, allocations: 281 kB / 3.818 GB, free: 20.02 MB / 0.5265 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.239e-05/11.24, allocations: 18.77 kB / 3.818 GB, free: 20.02 MB / 0.5265 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00197/11.25, allocations: 161.9 kB / 3.818 GB, free: 19.96 MB / 0.5265 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001767/11.25, allocations: 51.09 kB / 3.818 GB, free: 19.96 MB / 0.5265 GB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/11.25, allocations: 2.656 kB / 3.818 GB, free: 19.96 MB / 0.5265 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0043/11.25, allocations: 0.8882 MB / 3.819 GB, free: 19.93 MB / 0.5265 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.901e-05/11.25, allocations: 10.41 kB / 3.819 GB, free: 19.93 MB / 0.5265 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.534e-05/11.25, allocations: 15.38 kB / 3.819 GB, free: 19.93 MB / 0.5265 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001892/11.25, allocations: 269.2 kB / 3.819 GB, free: 19.91 MB / 0.5265 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.114e-05/11.25, allocations: 18.59 kB / 3.819 GB, free: 19.91 MB / 0.5265 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001619/11.25, allocations: 137.2 kB / 3.819 GB, free: 19.86 MB / 0.5265 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001634/11.25, allocations: 54.59 kB / 3.819 GB, free: 19.86 MB / 0.5265 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.0004095/11.26, allocations: 144.2 kB / 3.819 GB, free: 19.73 MB / 0.5265 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003565/11.26, allocations: 90.22 kB / 3.82 GB, free: 19.68 MB / 0.5265 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006513/11.26, allocations: 3.358 MB / 3.823 GB, free: 19.1 MB / 0.5265 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.888e-05/11.26, allocations: 29.39 kB / 3.823 GB, free: 19.09 MB / 0.5265 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.658e-06/11.26, allocations: 0 / 3.823 GB, free: 19.09 MB / 0.5265 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.417e-05/11.26, allocations: 10.19 kB / 3.823 GB, free: 19.09 MB / 0.5265 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003222/11.27, allocations: 1.823 MB / 3.825 GB, free: 18.76 MB / 0.5265 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.311e-05/11.27, allocations: 0 / 3.825 GB, free: 18.76 MB / 0.5265 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001606/11.27, allocations: 218.6 kB / 3.825 GB, free: 18.75 MB / 0.5265 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.482e-05/11.27, allocations: 7.203 kB / 3.825 GB, free: 18.75 MB / 0.5265 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.944e-05/11.27, allocations: 11.73 kB / 3.825 GB, free: 18.75 MB / 0.5265 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.244e-06/11.27, allocations: 3.656 kB / 3.825 GB, free: 18.75 MB / 0.5265 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/11.27, allocations: 0 / 3.825 GB, free: 18.75 MB / 0.5265 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003812/11.27, allocations: 1.323 MB / 3.826 GB, free: 18.4 MB / 0.5265 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001645/11.27, allocations: 0.7478 MB / 3.827 GB, free: 17.94 MB / 0.5265 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004287/11.27, allocations: 7.391 kB / 3.827 GB, free: 17.94 MB / 0.5265 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001622/11.27, allocations: 88.91 kB / 3.827 GB, free: 17.92 MB / 0.5265 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002703/11.28, allocations: 97.7 kB / 3.827 GB, free: 17.9 MB / 0.5265 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.91e-05/11.28, allocations: 26.88 kB / 3.827 GB, free: 17.9 MB / 0.5265 GB Notification: Performance of sorting global known variables: time 0.003087/11.28, allocations: 1.345 MB / 3.828 GB, free: 17.32 MB / 0.5265 GB Notification: Performance of sort global known variables: time 8.21e-07/11.28, allocations: 0 / 3.828 GB, free: 17.32 MB / 0.5265 GB Notification: Performance of remove unused functions: time 0.008731/11.29, allocations: 1.635 MB / 3.83 GB, free: 16.83 MB / 0.5265 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,$cse10.phase,$cse10.region,$cse13.phase,$cse13.region,$cse22.phase,$cse22.region,$cse25.phase,$cse25.region,$cse34.phase,$cse34.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 (73): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.01124/11.3, allocations: 1.902 MB / 3.832 GB, free: 15.3 MB / 0.5265 GB Notification: Performance of simCode: created initialization part: time 0.003064/11.3, allocations: 1.197 MB / 3.833 GB, free: 14.18 MB / 0.5265 GB Notification: Performance of simCode: created event and clocks part: time 9.598e-06/11.3, allocations: 0.75 kB / 3.833 GB, free: 14.18 MB / 0.5265 GB Notification: Performance of simCode: created simulation system equations: time 0.0009422/11.3, allocations: 495.2 kB / 3.834 GB, free: 13.73 MB / 0.5265 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004247/11.31, allocations: 441.1 kB / 3.834 GB, free: 13.4 MB / 0.5265 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005233/11.31, allocations: 2.261 MB / 3.836 GB, free: 11.29 MB / 0.5265 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001123/11.31, allocations: 1.433 MB / 3.838 GB, free: 10.11 MB / 0.5265 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005627/11.31, allocations: 102.8 kB / 3.838 GB, free: 10.01 MB / 0.5265 GB Notification: Performance of SimCode: time 1.292e-06/11.31, allocations: 3.938 kB / 3.838 GB, free: 10.01 MB / 0.5265 GB Notification: Performance of Templates: time 0.4925/11.81, allocations: 40.76 MB / 3.877 GB, free: 61.47 MB / 0.5265 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible_res.mat","/var/lib/jenkins1/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_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches