Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.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.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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001999/0.001999, allocations: 183.8 kB / 8.517 MB, free: 0.4922 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.334/1.334, allocations: 221.4 MB / 230.3 MB, free: 13.64 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009825/0.0009824, allocations: 86.28 kB / 281.2 MB, free: 10.6 MB / 226.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1884/0.1884, allocations: 44.14 MB / 376.1 MB, free: 11.76 MB / 322.8 MB Notification: Performance of FrontEnd - loaded program: time 7.244e-06/7.274e-06, allocations: 0 / 444 MB, free: 54.41 MB / 322.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1158, allocations: 61.91 MB / 0.4941 GB, free: 8.422 MB / 338.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.548/4.664, allocations: 2.775 GB / 3.269 GB, free: 95.11 MB / 0.5183 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000275/4.664, allocations: 83.95 kB / 3.27 GB, free: 95.03 MB / 0.5183 GB Notification: Performance of FrontEnd: time 0.7592/5.424, allocations: 233 MB / 3.497 GB, free: 67.13 MB / 0.5183 GB Notification: Performance of Transformations before backend: time 4.162e-05/5.424, allocations: 19.88 kB / 3.497 GB, free: 67.11 MB / 0.5183 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.005408/5.429, allocations: 1.281 MB / 3.498 GB, free: 65.79 MB / 0.5183 GB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/5.429, allocations: 15.97 kB / 3.498 GB, free: 65.77 MB / 0.5183 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002395/5.432, allocations: 267.2 kB / 3.499 GB, free: 65.51 MB / 0.5183 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008412/5.432, allocations: 411.1 kB / 3.499 GB, free: 65.07 MB / 0.5183 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.787e-05/5.432, allocations: 12 kB / 3.499 GB, free: 65.06 MB / 0.5183 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.565e-05/5.433, allocations: 24 kB / 3.499 GB, free: 65.04 MB / 0.5183 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006039/5.433, allocations: 333.2 kB / 3.499 GB, free: 64.71 MB / 0.5183 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005923/5.434, allocations: 406.5 kB / 3.5 GB, free: 64.28 MB / 0.5183 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.652e-05/5.434, allocations: 7.906 kB / 3.5 GB, free: 64.27 MB / 0.5183 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.157e-05/5.434, allocations: 0 / 3.5 GB, free: 64.27 MB / 0.5183 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.322e-05/5.434, allocations: 8 kB / 3.5 GB, free: 64.27 MB / 0.5183 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01774/5.452, allocations: 10.1 MB / 3.51 GB, free: 53.07 MB / 0.5183 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003465/5.452, allocations: 230.6 kB / 3.51 GB, free: 52.83 MB / 0.5183 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001895/5.452, allocations: 132.8 kB / 3.51 GB, free: 52.7 MB / 0.5183 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04499/5.497, allocations: 24.08 MB / 3.533 GB, free: 25.73 MB / 0.5183 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.869e-05/5.497, allocations: 42.5 kB / 3.534 GB, free: 25.68 MB / 0.5183 GB Notification: Performance of pre-optimization done (n=24): time 2.245e-06/5.497, allocations: 0 / 3.534 GB, free: 25.68 MB / 0.5183 GB Notification: Performance of matching and sorting (n=24): time 0.00208/5.499, allocations: 0.5518 MB / 3.534 GB, free: 25.12 MB / 0.5183 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.644e-05/5.499, allocations: 102.8 kB / 3.534 GB, free: 25 MB / 0.5183 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003393/5.5, allocations: 266.1 kB / 3.534 GB, free: 24.74 MB / 0.5183 GB Notification: Performance of collectPreVariables (initialization): time 4.912e-05/5.5, allocations: 29.7 kB / 3.534 GB, free: 24.7 MB / 0.5183 GB Notification: Performance of collectInitialEqns (initialization): time 8.28e-05/5.5, allocations: 191.8 kB / 3.535 GB, free: 24.51 MB / 0.5183 GB Notification: Performance of collectInitialBindings (initialization): time 6.828e-05/5.5, allocations: 78.84 kB / 3.535 GB, free: 24.43 MB / 0.5183 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.223e-05/5.5, allocations: 0 / 3.535 GB, free: 24.43 MB / 0.5183 GB Notification: Performance of setup shared object (initialization): time 6.637e-05/5.5, allocations: 346.8 kB / 3.535 GB, free: 24.09 MB / 0.5183 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001839/5.5, allocations: 120 kB / 3.535 GB, free: 23.97 MB / 0.5183 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002079/5.501, allocations: 219.9 kB / 3.535 GB, free: 23.71 MB / 0.5183 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009843/5.502, allocations: 237.2 kB / 3.536 GB, free: 23.48 MB / 0.5183 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/5.502, allocations: 4 kB / 3.536 GB, free: 23.48 MB / 0.5183 GB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001914/5.503, allocations: 0.6584 MB / 3.536 GB, free: 22.81 MB / 0.5183 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001965/5.504, allocations: 1.05 MB / 3.537 GB, free: 21.68 MB / 0.5183 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/5.504, allocations: 4 kB / 3.537 GB, free: 21.68 MB / 0.5183 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.202e-05/5.504, allocations: 4 kB / 3.537 GB, free: 21.68 MB / 0.5183 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005023/5.504, allocations: 115.8 kB / 3.537 GB, free: 21.56 MB / 0.5183 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.377e-06/5.504, allocations: 7.938 kB / 3.537 GB, free: 21.55 MB / 0.5183 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005225/5.505, allocations: 75.58 kB / 3.537 GB, free: 21.48 MB / 0.5183 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.311e-05/5.505, allocations: 15.98 kB / 3.537 GB, free: 21.46 MB / 0.5183 GB Notification: Performance of prepare postOptimizeDAE: time 9.208e-06/5.505, allocations: 4 kB / 3.537 GB, free: 21.46 MB / 0.5183 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001136/5.506, allocations: 399.6 kB / 3.538 GB, free: 21.07 MB / 0.5183 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/5.506, allocations: 0 / 3.538 GB, free: 21.07 MB / 0.5183 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.392e-06/5.506, allocations: 4 kB / 3.538 GB, free: 21.07 MB / 0.5183 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004253/5.506, allocations: 116.2 kB / 3.538 GB, free: 20.95 MB / 0.5183 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.231e-06/5.506, allocations: 7.938 kB / 3.538 GB, free: 20.95 MB / 0.5183 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004324/5.507, allocations: 59.7 kB / 3.538 GB, free: 20.89 MB / 0.5183 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.766e-05/5.507, allocations: 23.98 kB / 3.538 GB, free: 20.86 MB / 0.5183 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 0.0001231/5.507, allocations: 116.9 kB / 3.538 GB, free: 20.74 MB / 0.5183 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005747/5.508, allocations: 191.3 kB / 3.538 GB, free: 20.55 MB / 0.5183 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002126/5.51, allocations: 1.77 MB / 3.54 GB, free: 18.77 MB / 0.5183 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-05/5.51, allocations: 19.95 kB / 3.54 GB, free: 18.75 MB / 0.5183 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/5.51, allocations: 0 / 3.54 GB, free: 18.75 MB / 0.5183 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.653e-06/5.51, allocations: 7.906 kB / 3.54 GB, free: 18.75 MB / 0.5183 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003015/5.513, allocations: 2.527 MB / 3.543 GB, free: 16.16 MB / 0.5183 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/5.513, allocations: 0 / 3.543 GB, free: 16.16 MB / 0.5183 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003259/5.513, allocations: 80.03 kB / 3.543 GB, free: 16.08 MB / 0.5183 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.957e-06/5.513, allocations: 0 / 3.543 GB, free: 16.08 MB / 0.5183 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.875e-05/5.513, allocations: 15.94 kB / 3.543 GB, free: 16.06 MB / 0.5183 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.498e-06/5.513, allocations: 11.83 kB / 3.543 GB, free: 16.05 MB / 0.5183 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/5.513, allocations: 4 kB / 3.543 GB, free: 16.05 MB / 0.5183 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001967/5.515, allocations: 1.459 MB / 3.544 GB, free: 14.54 MB / 0.5183 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002908/5.516, allocations: 220 kB / 3.544 GB, free: 14.3 MB / 0.5183 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000111/5.516, allocations: 4 kB / 3.544 GB, free: 14.3 MB / 0.5183 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004344/5.516, allocations: 39.97 kB / 3.544 GB, free: 14.26 MB / 0.5183 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001196/5.516, allocations: 47.84 kB / 3.544 GB, free: 14.21 MB / 0.5183 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.535e-05/5.516, allocations: 15.98 kB / 3.544 GB, free: 14.2 MB / 0.5183 GB Notification: Performance of sort global known variables: time 0.0002712/5.517, allocations: 267.2 kB / 3.545 GB, free: 13.94 MB / 0.5183 GB Notification: Performance of remove unused functions: time 0.005504/5.522, allocations: 1.186 MB / 3.546 GB, free: 12.75 MB / 0.5183 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.009074/5.531, allocations: 1.619 MB / 3.547 GB, free: 11.22 MB / 0.5183 GB Notification: Performance of simCode: created initialization part: time 0.00132/5.533, allocations: 0.9265 MB / 3.548 GB, free: 10.3 MB / 0.5183 GB Notification: Performance of simCode: created event and clocks part: time 5.16e-06/5.533, allocations: 0 / 3.548 GB, free: 10.3 MB / 0.5183 GB Notification: Performance of simCode: created simulation system equations: time 0.0005711/5.533, allocations: 0.6934 MB / 3.549 GB, free: 9.605 MB / 0.5183 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001159/5.534, allocations: 166.9 kB / 3.549 GB, free: 9.445 MB / 0.5183 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001868/5.536, allocations: 1.16 MB / 3.55 GB, free: 8.242 MB / 0.5183 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004686/5.537, allocations: 1.002 MB / 3.551 GB, free: 7.219 MB / 0.5183 GB Notification: Performance of SimCode: time 9.72e-07/5.537, allocations: 4 kB / 3.551 GB, free: 7.215 MB / 0.5183 GB Notification: Performance of Templates: time 0.2471/5.784, allocations: 35.37 MB / 3.586 GB, free: 132.6 MB / 0.5183 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestCheckValve/TestCheckValve.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches