Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.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.TestValveLinear,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.TestValveLinear") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,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.TestValveLinear") [: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.002371/0.002371, allocations: 173.5 kB / 8.147 MB, free: 2.211 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.665/1.665, 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.001333/0.001332, allocations: 90.45 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.2616/0.2616, allocations: 43.5 MB / 353.2 MB, free: 2.031 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.626e-06/8.797e-06, allocations: 0 / 417.7 MB, free: 40.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2858/0.2858, allocations: 58.84 MB / 476.5 MB, free: 5.098 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.737/6.023, allocations: 2.753 GB / 3.219 GB, free: 31.25 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003529/6.024, allocations: 91 kB / 3.219 GB, free: 31.21 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.03/7.053, allocations: 213.4 MB / 3.427 GB, free: 24.52 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 2.966e-05/7.053, allocations: 8 kB / 3.427 GB, free: 24.52 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.005548/7.059, allocations: 1.197 MB / 3.428 GB, free: 23.28 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/7.059, allocations: 8.031 kB / 3.428 GB, free: 23.27 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002726/7.062, allocations: 239.2 kB / 3.428 GB, free: 23.04 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008065/7.063, allocations: 371.1 kB / 3.429 GB, free: 22.63 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.974e-05/7.063, allocations: 16 kB / 3.429 GB, free: 22.62 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.456e-05/7.063, allocations: 16 kB / 3.429 GB, free: 22.6 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008278/7.064, allocations: 301.2 kB / 3.429 GB, free: 22.3 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007688/7.064, allocations: 384.3 kB / 3.43 GB, free: 21.89 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.801e-05/7.064, allocations: 3.938 kB / 3.43 GB, free: 21.88 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.717e-05/7.065, allocations: 3.906 kB / 3.43 GB, free: 21.88 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.076e-05/7.065, allocations: 8 kB / 3.43 GB, free: 21.87 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02922/7.094, allocations: 10.08 MB / 3.439 GB, free: 10.71 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005185/7.094, allocations: 214.7 kB / 3.44 GB, free: 10.49 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002887/7.095, allocations: 125.7 kB / 3.44 GB, free: 10.36 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2506/7.345, allocations: 24.07 MB / 3.463 GB, free: 123.1 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.103e-05/7.345, allocations: 43.38 kB / 3.463 GB, free: 123 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=24): time 3.887e-06/7.345, allocations: 0 / 3.463 GB, free: 123 MB / 0.4948 GB Notification: Performance of matching and sorting (n=24): time 0.002525/7.348, allocations: 0.4896 MB / 3.464 GB, free: 123 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.734e-05/7.348, allocations: 106.5 kB / 3.464 GB, free: 122.9 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003517/7.348, allocations: 237.2 kB / 3.464 GB, free: 122.8 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 4.574e-05/7.348, allocations: 25.7 kB / 3.464 GB, free: 122.7 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 9.567e-05/7.349, allocations: 234.8 kB / 3.464 GB, free: 122.6 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 8.044e-05/7.349, allocations: 84.33 kB / 3.464 GB, free: 122.5 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.803e-05/7.349, allocations: 0 / 3.464 GB, free: 122.5 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 6.575e-05/7.349, allocations: 317.8 kB / 3.465 GB, free: 122.2 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002787/7.349, allocations: 107.7 kB / 3.465 GB, free: 122.2 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003341/7.349, allocations: 197.6 kB / 3.465 GB, free: 122.1 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001146/7.351, allocations: 188.7 kB / 3.465 GB, free: 122.1 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.95e-06/7.351, allocations: 0 / 3.465 GB, free: 122.1 MB / 0.4948 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.002427/7.353, allocations: 0.5481 MB / 3.466 GB, free: 122.1 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/7.353, allocations: 3.969 kB / 3.466 GB, free: 122.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.154e-05/7.353, allocations: 12.45 kB / 3.466 GB, free: 122.1 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.732e-05/7.353, allocations: 7.047 kB / 3.466 GB, free: 122.1 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007825/7.354, allocations: 103.8 kB / 3.466 GB, free: 122.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.738e-06/7.354, allocations: 3.906 kB / 3.466 GB, free: 122.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005593/7.354, allocations: 60.64 kB / 3.466 GB, free: 122.1 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.778e-05/7.355, allocations: 15.72 kB / 3.466 GB, free: 122.1 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: 4 (SourceP1.medium.phase,SinkP1.medium.phase,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.0001199/7.355, allocations: 44.08 kB / 3.466 GB, free: 122 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008067/7.355, allocations: 185.6 kB / 3.466 GB, free: 122 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002958/7.358, allocations: 1.681 MB / 3.468 GB, free: 121.9 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.973e-05/7.359, allocations: 21.09 kB / 3.468 GB, free: 121.9 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/7.359, allocations: 0 / 3.468 GB, free: 121.9 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.796e-06/7.359, allocations: 3.703 kB / 3.468 GB, free: 121.9 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003485/7.362, allocations: 2.253 MB / 3.47 GB, free: 121.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.015e-06/7.362, allocations: 0 / 3.47 GB, free: 121.6 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006414/7.363, allocations: 83.16 kB / 3.47 GB, free: 121.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.959e-06/7.363, allocations: 3.781 kB / 3.47 GB, free: 121.6 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.642e-05/7.363, allocations: 7.25 kB / 3.47 GB, free: 121.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.621e-06/7.363, allocations: 2.344 kB / 3.47 GB, free: 121.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/7.363, allocations: 7.875 kB / 3.47 GB, free: 121.6 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002651/7.366, allocations: 1.388 MB / 3.471 GB, free: 121.3 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002152/7.366, allocations: 156.7 kB / 3.472 GB, free: 121.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001106/7.366, allocations: 5.812 kB / 3.472 GB, free: 121.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006624/7.367, allocations: 50.3 kB / 3.472 GB, free: 121.2 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001428/7.367, allocations: 45.17 kB / 3.472 GB, free: 121.2 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.746e-05/7.367, allocations: 14.95 kB / 3.472 GB, free: 121.2 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.0003479/7.367, allocations: 237.3 kB / 3.472 GB, free: 121.1 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.00503/7.372, allocations: 1.006 MB / 3.473 GB, free: 121.1 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: 14 ($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,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.01002/7.382, allocations: 1.501 MB / 3.474 GB, free: 121 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.001277/7.384, allocations: 0.7031 MB / 3.475 GB, free: 121 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/7.384, allocations: 3.281 kB / 3.475 GB, free: 121 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0008617/7.384, allocations: 0.6838 MB / 3.476 GB, free: 121 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001714/7.386, allocations: 164.3 kB / 3.476 GB, free: 121 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002335/7.389, allocations: 1.118 MB / 3.477 GB, free: 120.7 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006294/7.389, allocations: 0.9647 MB / 3.478 GB, free: 120 MB / 0.4948 GB Notification: Performance of SimCode: time 1.383e-06/7.389, allocations: 0 / 3.478 GB, free: 120 MB / 0.4948 GB Notification: Performance of Templates: time 0.05453/7.444, allocations: 26.01 MB / 3.503 GB, free: 118.5 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveLinear/TestValveLinear.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches