Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.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.TestCheckValve,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|downstreamPressure.y|const.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve,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|downstreamPressure.y|const.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001091/0.001091, allocations: 188.8 kB / 7.804 MB, free: 2.445 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.011/1.011, allocations: 205.2 MB / 213.4 MB, free: 13.85 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.0008668/0.0008668, allocations: 97.38 kB / 261.4 MB, free: 13.52 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.1484/0.1484, allocations: 43.49 MB / 352.8 MB, free: 1.949 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.502e-06/6.522e-06, allocations: 4 kB / 417.7 MB, free: 40.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2173/0.2173, allocations: 58.84 MB / 476.6 MB, free: 5.23 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.867/4.084, allocations: 2.77 GB / 3.236 GB, free: 97.45 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002322/4.085, allocations: 83.95 kB / 3.236 GB, free: 97.37 MB / 0.4948 GB Notification: Performance of FrontEnd: time 0.6128/4.698, allocations: 230.5 MB / 3.461 GB, free: 61.66 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 3.457e-05/4.698, allocations: 8 kB / 3.461 GB, free: 61.65 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.004964/4.703, allocations: 1.286 MB / 3.462 GB, free: 60.32 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.606e-05/4.703, allocations: 8.031 kB / 3.462 GB, free: 60.32 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002059/4.705, allocations: 263.2 kB / 3.462 GB, free: 60.06 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007248/4.705, allocations: 418.9 kB / 3.463 GB, free: 59.62 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.789e-05/4.706, allocations: 20 kB / 3.463 GB, free: 59.6 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.067e-05/4.706, allocations: 16 kB / 3.463 GB, free: 59.58 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005036/4.706, allocations: 345.1 kB / 3.463 GB, free: 59.24 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005032/4.707, allocations: 398.5 kB / 3.463 GB, free: 58.82 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/4.707, allocations: 0 / 3.463 GB, free: 58.82 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.046e-05/4.707, allocations: 7.906 kB / 3.463 GB, free: 58.81 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-06/4.707, allocations: 8 kB / 3.463 GB, free: 58.8 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01567/4.722, allocations: 10.09 MB / 3.473 GB, free: 47.61 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002883/4.723, allocations: 218.6 kB / 3.473 GB, free: 47.39 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001543/4.723, allocations: 133.3 kB / 3.474 GB, free: 47.26 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03923/4.762, allocations: 24.09 MB / 3.497 GB, free: 20.29 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.565e-05/4.762, allocations: 38.56 kB / 3.497 GB, free: 20.24 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=24): time 1.754e-06/4.762, allocations: 0 / 3.497 GB, free: 20.24 MB / 0.4948 GB Notification: Performance of matching and sorting (n=24): time 0.00171/4.764, allocations: 0.5398 MB / 3.498 GB, free: 19.69 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.99e-05/4.764, allocations: 110.8 kB / 3.498 GB, free: 19.56 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002458/4.764, allocations: 270.1 kB / 3.498 GB, free: 19.29 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.833e-05/4.764, allocations: 25.7 kB / 3.498 GB, free: 19.26 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 6.902e-05/4.764, allocations: 191.8 kB / 3.498 GB, free: 19.07 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 4.824e-05/4.764, allocations: 90.72 kB / 3.498 GB, free: 18.98 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.928e-05/4.764, allocations: 0 / 3.498 GB, free: 18.98 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 5.523e-05/4.764, allocations: 334.8 kB / 3.499 GB, free: 18.64 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001619/4.765, allocations: 124 kB / 3.499 GB, free: 18.52 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001957/4.765, allocations: 227.5 kB / 3.499 GB, free: 18.25 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008913/4.766, allocations: 243.7 kB / 3.499 GB, free: 18.02 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/4.766, allocations: 7.938 kB / 3.499 GB, free: 18.01 MB / 0.4948 GB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001718/4.767, allocations: 0.6548 MB / 3.5 GB, free: 17.35 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.000161/4.768, allocations: 1.035 MB / 3.501 GB, free: 16.23 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.635e-06/4.768, allocations: 4 kB / 3.501 GB, free: 16.23 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.503e-05/4.768, allocations: 4 kB / 3.501 GB, free: 16.22 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004441/4.768, allocations: 119.8 kB / 3.501 GB, free: 16.11 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.111e-05/4.768, allocations: 7.938 kB / 3.501 GB, free: 16.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004421/4.769, allocations: 71.64 kB / 3.501 GB, free: 16.03 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.599e-05/4.769, allocations: 23.98 kB / 3.501 GB, free: 16 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 6.553e-06/4.769, allocations: 4 kB / 3.501 GB, free: 16 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001021/4.77, allocations: 391.9 kB / 3.502 GB, free: 15.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/4.77, allocations: 8.031 kB / 3.502 GB, free: 15.61 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.36e-06/4.77, allocations: 4 kB / 3.502 GB, free: 15.61 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003959/4.77, allocations: 111.8 kB / 3.502 GB, free: 15.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.689e-06/4.77, allocations: 8 kB / 3.502 GB, free: 15.49 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003661/4.77, allocations: 63.7 kB / 3.502 GB, free: 15.43 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.036e-05/4.77, allocations: 15.98 kB / 3.502 GB, free: 15.41 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 4 (V1.state_b.phase,V1.state_a.phase,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 38 * 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 9.23e-05/4.771, allocations: 112.9 kB / 3.502 GB, free: 15.29 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005054/4.771, allocations: 191.3 kB / 3.502 GB, free: 15.11 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001844/4.773, allocations: 1.778 MB / 3.504 GB, free: 13.31 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.748e-05/4.773, allocations: 23.95 kB / 3.504 GB, free: 13.29 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/4.773, allocations: 0 / 3.504 GB, free: 13.29 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/4.773, allocations: 3.938 kB / 3.504 GB, free: 13.28 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002496/4.775, allocations: 2.518 MB / 3.506 GB, free: 10.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/4.775, allocations: 4.094 kB / 3.506 GB, free: 10.7 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003108/4.776, allocations: 79.88 kB / 3.506 GB, free: 10.62 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.362e-06/4.776, allocations: 4 kB / 3.506 GB, free: 10.61 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.696e-05/4.776, allocations: 7.984 kB / 3.506 GB, free: 10.61 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.907e-06/4.776, allocations: 8 kB / 3.506 GB, free: 10.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/4.776, allocations: 3.906 kB / 3.506 GB, free: 10.59 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001872/4.778, allocations: 1.466 MB / 3.508 GB, free: 9.078 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000285/4.778, allocations: 216 kB / 3.508 GB, free: 8.848 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.934e-05/4.778, allocations: 4 kB / 3.508 GB, free: 8.844 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000411/4.779, allocations: 39.97 kB / 3.508 GB, free: 8.805 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001213/4.779, allocations: 43.84 kB / 3.508 GB, free: 8.762 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.174e-05/4.779, allocations: 15.98 kB / 3.508 GB, free: 8.746 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.0002646/4.779, allocations: 263.2 kB / 3.508 GB, free: 8.488 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004958/4.784, allocations: 1.19 MB / 3.509 GB, free: 7.301 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 14 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse14.phase,$cse14.region,SinkP1.medium.phase,SourceP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 29 * 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.006104/4.79, allocations: 1.615 MB / 3.511 GB, free: 5.77 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0008844/4.791, allocations: 0.9398 MB / 3.512 GB, free: 4.836 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/4.791, allocations: 0 / 3.512 GB, free: 4.836 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0004609/4.791, allocations: 0.696 MB / 3.513 GB, free: 4.137 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008534/4.792, allocations: 162.4 kB / 3.513 GB, free: 3.98 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001444/4.794, allocations: 1.161 MB / 3.514 GB, free: 2.785 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003802/4.794, allocations: 0.9978 MB / 3.515 GB, free: 1.762 MB / 0.4948 GB Notification: Performance of SimCode: time 3.31e-07/4.794, allocations: 0 / 3.515 GB, free: 1.762 MB / 0.4948 GB Notification: Performance of Templates: time 0.1791/4.973, allocations: 35.35 MB / 3.549 GB, free: 123.8 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestCheckValve/TestCheckValve.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches