Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,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|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,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|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") [: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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001696/0.001696, allocations: 170.2 kB / 8.149 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.696/1.696, allocations: 205.2 MB / 213.8 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001268/0.001267, allocations: 96.03 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.257/0.257, allocations: 43.5 MB / 353.2 MB, free: 2.035 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.454e-06/7.674e-06, allocations: 0 / 417.7 MB, free: 40.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2769/0.277, allocations: 58.83 MB / 476.5 MB, free: 5.102 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.805/6.082, allocations: 2.754 GB / 3.219 GB, free: 31.11 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002978/6.082, allocations: 84.02 kB / 3.219 GB, free: 31.07 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.026/7.108, allocations: 213.2 MB / 3.427 GB, free: 24.5 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 2.955e-05/7.108, allocations: 8 kB / 3.427 GB, free: 24.49 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.005543/7.114, allocations: 1.17 MB / 3.428 GB, free: 23.28 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/7.114, allocations: 12.03 kB / 3.428 GB, free: 23.27 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002736/7.117, allocations: 239.2 kB / 3.429 GB, free: 23.04 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008388/7.117, allocations: 373.4 kB / 3.429 GB, free: 22.64 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.065e-05/7.118, allocations: 8 kB / 3.429 GB, free: 22.63 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.869e-05/7.118, allocations: 16 kB / 3.429 GB, free: 22.61 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008162/7.118, allocations: 305.2 kB / 3.429 GB, free: 22.31 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007705/7.119, allocations: 384.2 kB / 3.43 GB, free: 21.89 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.585e-05/7.119, allocations: 0 / 3.43 GB, free: 21.89 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.657e-05/7.119, allocations: 4 kB / 3.43 GB, free: 21.89 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.052e-05/7.119, allocations: 4 kB / 3.43 GB, free: 21.89 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03064/7.15, allocations: 10.09 MB / 3.439 GB, free: 10.71 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005317/7.151, allocations: 215.8 kB / 3.44 GB, free: 10.5 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002879/7.151, allocations: 120.8 kB / 3.44 GB, free: 10.38 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2599/7.411, allocations: 24.08 MB / 3.463 GB, free: 122.9 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.372e-05/7.411, allocations: 37.08 kB / 3.463 GB, free: 122.8 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=24): time 3.286e-06/7.411, allocations: 0 / 3.463 GB, free: 122.8 MB / 0.4948 GB Notification: Performance of matching and sorting (n=24): time 0.002456/7.413, allocations: 0.4921 MB / 3.464 GB, free: 122.8 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.192e-05/7.413, allocations: 106.7 kB / 3.464 GB, free: 122.7 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003362/7.414, allocations: 234.6 kB / 3.464 GB, free: 122.6 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 4.155e-05/7.414, allocations: 25.7 kB / 3.464 GB, free: 122.5 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 8.789e-05/7.414, allocations: 232.9 kB / 3.464 GB, free: 122.4 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 7.415e-05/7.414, allocations: 79.91 kB / 3.464 GB, free: 122.3 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.546e-05/7.414, allocations: 0 / 3.464 GB, free: 122.3 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 6.972e-05/7.414, allocations: 327.3 kB / 3.465 GB, free: 122 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002748/7.414, allocations: 103.4 kB / 3.465 GB, free: 122 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003321/7.415, allocations: 201.8 kB / 3.465 GB, free: 121.9 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001106/7.416, allocations: 184.6 kB / 3.465 GB, free: 121.9 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.951e-06/7.416, allocations: 3.969 kB / 3.465 GB, free: 121.9 MB / 0.4948 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.002466/7.418, allocations: 0.549 MB / 3.466 GB, free: 121.9 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.096e-05/7.418, allocations: 3.969 kB / 3.466 GB, free: 121.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.334e-05/7.419, allocations: 7.438 kB / 3.466 GB, free: 121.9 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.533e-05/7.419, allocations: 3.969 kB / 3.466 GB, free: 121.9 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006919/7.419, allocations: 89.83 kB / 3.466 GB, free: 121.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.12e-05/7.419, allocations: 7.75 kB / 3.466 GB, free: 121.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005107/7.42, allocations: 55.41 kB / 3.466 GB, free: 121.9 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.259e-05/7.42, allocations: 18.16 kB / 3.466 GB, free: 121.9 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (SourceP1.medium.phase,SinkP1.medium.phase,Opening.y,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * 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.0001186/7.42, allocations: 40.58 kB / 3.466 GB, free: 121.8 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008283/7.421, allocations: 182.4 kB / 3.466 GB, free: 121.8 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00294/7.424, allocations: 1.671 MB / 3.468 GB, free: 121.7 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.398e-05/7.424, allocations: 24.8 kB / 3.468 GB, free: 121.7 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.138e-06/7.424, allocations: 6.969 kB / 3.468 GB, free: 121.7 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.227e-06/7.424, allocations: 3.703 kB / 3.468 GB, free: 121.7 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003465/7.427, allocations: 2.25 MB / 3.47 GB, free: 121.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.766e-06/7.427, allocations: 0 / 3.47 GB, free: 121.4 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000568/7.428, allocations: 72.28 kB / 3.47 GB, free: 121.4 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.164e-05/7.428, allocations: 10.19 kB / 3.47 GB, free: 121.3 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.452e-05/7.428, allocations: 7.281 kB / 3.47 GB, free: 121.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.799e-06/7.428, allocations: 0 / 3.47 GB, free: 121.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.531e-06/7.428, allocations: 3.562 kB / 3.47 GB, free: 121.3 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002759/7.431, allocations: 1.391 MB / 3.471 GB, free: 121.1 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002214/7.431, allocations: 154.4 kB / 3.472 GB, free: 121 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000112/7.431, allocations: 0 / 3.472 GB, free: 121 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006253/7.432, allocations: 43.48 kB / 3.472 GB, free: 121 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001418/7.432, allocations: 42.11 kB / 3.472 GB, free: 121 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.794e-05/7.432, allocations: 18.69 kB / 3.472 GB, free: 121 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.0003534/7.433, allocations: 237.3 kB / 3.472 GB, free: 120.9 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005047/7.438, allocations: 1.002 MB / 3.473 GB, free: 120.9 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse10.phase,$cse10.region,SinkP1.medium.phase,Opening.y,SourceP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 26 * 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.01009/7.448, allocations: 1.516 MB / 3.474 GB, free: 120.8 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.001292/7.449, allocations: 0.7027 MB / 3.475 GB, free: 120.8 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/7.449, allocations: 0 / 3.475 GB, free: 120.8 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0008313/7.45, allocations: 0.6785 MB / 3.476 GB, free: 120.8 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00162/7.452, allocations: 160.1 kB / 3.476 GB, free: 120.8 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002194/7.454, allocations: 1.112 MB / 3.477 GB, free: 120.5 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005753/7.454, allocations: 0.96 MB / 3.478 GB, free: 119.8 MB / 0.4948 GB Notification: Performance of SimCode: time 1.022e-06/7.454, allocations: 2.812 kB / 3.478 GB, free: 119.8 MB / 0.4948 GB Notification: Performance of Templates: time 0.05329/7.508, allocations: 25.96 MB / 3.503 GB, free: 118.3 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches