Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.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.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_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_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009178/0.000918, allocations: 188.1 kB / 7.808 MB, free: 2.492 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.03/1.03, allocations: 205.2 MB / 213.4 MB, free: 13.87 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.0008592/0.0008592, allocations: 84.05 kB / 261.4 MB, free: 13.56 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.1528/0.1528, allocations: 43.49 MB / 352.8 MB, free: 1.965 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.93e-06/4.95e-06, allocations: 0 / 417.7 MB, free: 40.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2092/0.2092, allocations: 58.84 MB / 476.6 MB, free: 5.207 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.928/4.137, allocations: 2.753 GB / 3.219 GB, free: 106.4 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000213/4.137, allocations: 83.25 kB / 3.219 GB, free: 106.4 MB / 0.5105 GB Notification: Performance of FrontEnd: time 0.5651/4.702, allocations: 213.4 MB / 3.427 GB, free: 94.63 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 3.062e-05/4.702, allocations: 15.28 kB / 3.427 GB, free: 94.63 MB / 0.5105 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.005697/4.708, allocations: 1.191 MB / 3.428 GB, free: 93.88 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.031e-05/4.708, allocations: 11.59 kB / 3.428 GB, free: 93.88 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001989/4.71, allocations: 240.9 kB / 3.428 GB, free: 93.84 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007732/4.711, allocations: 370 kB / 3.429 GB, free: 93.55 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.261e-05/4.711, allocations: 11.5 kB / 3.429 GB, free: 93.55 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.496e-05/4.711, allocations: 15.44 kB / 3.429 GB, free: 93.55 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005134/4.711, allocations: 303.4 kB / 3.429 GB, free: 93.45 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005113/4.712, allocations: 383.7 kB / 3.43 GB, free: 93.22 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/4.712, allocations: 3.938 kB / 3.43 GB, free: 93.21 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.106e-05/4.712, allocations: 3.688 kB / 3.43 GB, free: 93.21 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.766e-06/4.712, allocations: 7.219 kB / 3.43 GB, free: 93.21 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0167/4.729, allocations: 10.1 MB / 3.439 GB, free: 86.41 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003202/4.729, allocations: 217.5 kB / 3.44 GB, free: 86.32 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001866/4.729, allocations: 125.1 kB / 3.44 GB, free: 86.27 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04242/4.772, allocations: 24.07 MB / 3.463 GB, free: 69.99 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.484e-05/4.772, allocations: 42.56 kB / 3.463 GB, free: 69.94 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=24): time 2.164e-06/4.772, allocations: 0 / 3.463 GB, free: 69.94 MB / 0.5105 GB Notification: Performance of matching and sorting (n=24): time 0.001592/4.773, allocations: 0.4928 MB / 3.464 GB, free: 69.54 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.247e-05/4.773, allocations: 110.7 kB / 3.464 GB, free: 69.41 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002469/4.774, allocations: 235 kB / 3.464 GB, free: 69.19 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.17e-05/4.774, allocations: 25.7 kB / 3.464 GB, free: 69.16 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 6.841e-05/4.774, allocations: 179.2 kB / 3.464 GB, free: 69 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 5.548e-05/4.774, allocations: 86.22 kB / 3.464 GB, free: 68.92 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.507e-05/4.774, allocations: 0 / 3.464 GB, free: 68.92 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 5.575e-05/4.774, allocations: 337.7 kB / 3.465 GB, free: 68.59 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001401/4.774, allocations: 103.7 kB / 3.465 GB, free: 68.49 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001698/4.774, allocations: 198.8 kB / 3.465 GB, free: 68.27 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006376/4.775, allocations: 188 kB / 3.465 GB, free: 68.12 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/4.775, allocations: 0 / 3.465 GB, free: 68.12 MB / 0.5105 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001425/4.776, allocations: 0.5716 MB / 3.466 GB, free: 67.65 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.197e-05/4.776, allocations: 8.031 kB / 3.466 GB, free: 67.64 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/4.776, allocations: 0 / 3.466 GB, free: 67.64 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.719e-05/4.776, allocations: 8 kB / 3.466 GB, free: 67.63 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003839/4.777, allocations: 103.2 kB / 3.466 GB, free: 67.55 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.048e-05/4.777, allocations: 4 kB / 3.466 GB, free: 67.55 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003738/4.777, allocations: 62.86 kB / 3.466 GB, free: 67.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.616e-05/4.777, allocations: 27.78 kB / 3.466 GB, free: 67.47 MB / 0.5105 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 8.593e-05/4.777, allocations: 120.8 kB / 3.466 GB, free: 67.35 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004998/4.778, allocations: 184.8 kB / 3.466 GB, free: 67.22 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001597/4.779, allocations: 1.674 MB / 3.468 GB, free: 65.7 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.777e-05/4.779, allocations: 23.69 kB / 3.468 GB, free: 65.68 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/4.779, allocations: 0 / 3.468 GB, free: 65.68 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/4.779, allocations: 0 / 3.468 GB, free: 65.68 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001983/4.781, allocations: 2.251 MB / 3.47 GB, free: 63.65 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/4.781, allocations: 4 kB / 3.47 GB, free: 63.64 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003158/4.782, allocations: 91.22 kB / 3.47 GB, free: 63.57 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.04e-06/4.782, allocations: 1.031 kB / 3.47 GB, free: 63.57 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.315e-05/4.782, allocations: 9.125 kB / 3.47 GB, free: 63.56 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.896e-06/4.782, allocations: 4 kB / 3.47 GB, free: 63.56 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/4.782, allocations: 0.5156 kB / 3.47 GB, free: 63.56 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001604/4.783, allocations: 1.388 MB / 3.472 GB, free: 62.28 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001229/4.784, allocations: 156.9 kB / 3.472 GB, free: 62.12 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.665e-05/4.784, allocations: 0.6094 kB / 3.472 GB, free: 62.12 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003566/4.784, allocations: 50.31 kB / 3.472 GB, free: 62.08 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.277e-05/4.784, allocations: 40.73 kB / 3.472 GB, free: 62.05 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.899e-05/4.784, allocations: 18.34 kB / 3.472 GB, free: 62.04 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0001856/4.784, allocations: 234.9 kB / 3.472 GB, free: 61.82 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.003608/4.788, allocations: 1.008 MB / 3.473 GB, free: 60.84 MB / 0.5105 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.006582/4.795, allocations: 1.497 MB / 3.474 GB, free: 59.55 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.000708/4.795, allocations: 0.7032 MB / 3.475 GB, free: 58.9 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/4.795, allocations: 0 / 3.475 GB, free: 58.9 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0004819/4.796, allocations: 0.6831 MB / 3.476 GB, free: 58.26 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009028/4.797, allocations: 160.3 kB / 3.476 GB, free: 58.14 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001402/4.798, allocations: 1.081 MB / 3.477 GB, free: 57.14 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004258/4.799, allocations: 0.9761 MB / 3.478 GB, free: 56.23 MB / 0.5105 GB Notification: Performance of SimCode: time 2.51e-07/4.799, allocations: 0 / 3.478 GB, free: 56.23 MB / 0.5105 GB Notification: Performance of Templates: time 0.03495/4.834, allocations: 31.8 MB / 3.509 GB, free: 26.91 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_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_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches