Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.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.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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001501/0.001501, allocations: 175.5 kB / 8.52 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.247/1.247, allocations: 221.4 MB / 230.3 MB, free: 7.75 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009984/0.0009984, allocations: 83.38 kB / 281.2 MB, free: 5.516 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1707/0.1707, allocations: 44.14 MB / 376.1 MB, free: 3.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.673e-06/6.693e-06, allocations: 4.219 kB / 444 MB, free: 15.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1145, allocations: 61.9 MB / 0.4941 GB, free: 1.629 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.011/5.126, allocations: 2.759 GB / 3.253 GB, free: 16.36 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000305/5.126, allocations: 83.27 kB / 3.253 GB, free: 16.28 MB / 0.5105 GB Notification: Performance of FrontEnd: time 0.6983/5.824, allocations: 215.7 MB / 3.463 GB, free: 3.809 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 2.252e-05/5.824, allocations: 8 kB / 3.463 GB, free: 3.801 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.005484/5.83, allocations: 1.188 MB / 3.464 GB, free: 2.57 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.582e-05/5.83, allocations: 15.97 kB / 3.465 GB, free: 2.555 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001809/5.832, allocations: 239.2 kB / 3.465 GB, free: 2.32 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005735/5.832, allocations: 373.5 kB / 3.465 GB, free: 1.918 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.605e-05/5.832, allocations: 12 kB / 3.465 GB, free: 1.906 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.694e-05/5.832, allocations: 16 kB / 3.465 GB, free: 1.891 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004725/5.833, allocations: 301.2 kB / 3.465 GB, free: 1.594 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000471/5.833, allocations: 388.1 kB / 3.466 GB, free: 1.176 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.332e-05/5.833, allocations: 4 kB / 3.466 GB, free: 1.172 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.839e-05/5.833, allocations: 7.938 kB / 3.466 GB, free: 1.164 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.438e-06/5.833, allocations: 8 kB / 3.466 GB, free: 1.156 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2458/6.079, allocations: 10.08 MB / 3.476 GB, free: 131.4 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003202/6.08, allocations: 219.2 kB / 3.476 GB, free: 131.4 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000169/6.08, allocations: 123.6 kB / 3.476 GB, free: 131.4 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04399/6.124, allocations: 24.08 MB / 3.499 GB, free: 116.7 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.472e-05/6.124, allocations: 30.56 kB / 3.5 GB, free: 116.7 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=24): time 2.254e-06/6.124, allocations: 0 / 3.5 GB, free: 116.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=24): time 0.001886/6.126, allocations: 0.4956 MB / 3.5 GB, free: 116.7 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.599e-05/6.126, allocations: 109.6 kB / 3.5 GB, free: 116.5 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000273/6.126, allocations: 238.4 kB / 3.5 GB, free: 116.4 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.56e-05/6.126, allocations: 25.7 kB / 3.5 GB, free: 116.4 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 9.56e-05/6.126, allocations: 182.8 kB / 3.501 GB, free: 116.3 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 5.358e-05/6.126, allocations: 73.56 kB / 3.501 GB, free: 116.2 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.652e-05/6.126, allocations: 0 / 3.501 GB, free: 116.2 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 8.624e-05/6.126, allocations: 341.6 kB / 3.501 GB, free: 115.9 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001546/6.127, allocations: 106.9 kB / 3.501 GB, free: 115.9 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002139/6.127, allocations: 203.7 kB / 3.501 GB, free: 115.8 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006722/6.127, allocations: 186.4 kB / 3.501 GB, free: 115.8 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/6.127, allocations: 0 / 3.501 GB, free: 115.8 MB / 0.5105 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001476/6.129, allocations: 0.5621 MB / 3.502 GB, free: 115.8 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/6.129, allocations: 7.062 kB / 3.502 GB, free: 115.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/6.129, allocations: 3.906 kB / 3.502 GB, free: 115.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.819e-05/6.129, allocations: 3.5 kB / 3.502 GB, free: 115.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004046/6.129, allocations: 104.3 kB / 3.502 GB, free: 115.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.425e-05/6.129, allocations: 10.59 kB / 3.502 GB, free: 115.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004048/6.13, allocations: 66.94 kB / 3.502 GB, free: 115.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.413e-05/6.13, allocations: 22.56 kB / 3.502 GB, free: 115.8 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 9.133e-05/6.13, allocations: 111.9 kB / 3.502 GB, free: 115.7 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005155/6.13, allocations: 185.6 kB / 3.502 GB, free: 115.7 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001875/6.132, allocations: 1.685 MB / 3.504 GB, free: 115.5 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.15e-05/6.132, allocations: 26.47 kB / 3.504 GB, free: 115.5 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/6.132, allocations: 0 / 3.504 GB, free: 115.5 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/6.132, allocations: 3.234 kB / 3.504 GB, free: 115.5 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0022/6.135, allocations: 2.237 MB / 3.506 GB, free: 115.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/6.135, allocations: 0 / 3.506 GB, free: 115.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003256/6.135, allocations: 84.22 kB / 3.506 GB, free: 115.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.239e-06/6.135, allocations: 2.062 kB / 3.506 GB, free: 115.2 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.329e-05/6.135, allocations: 7.188 kB / 3.506 GB, free: 115.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.367e-06/6.135, allocations: 3.938 kB / 3.506 GB, free: 115.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/6.135, allocations: 3.281 kB / 3.506 GB, free: 115.2 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001686/6.137, allocations: 1.395 MB / 3.508 GB, free: 114.9 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001295/6.137, allocations: 158.6 kB / 3.508 GB, free: 114.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.753e-05/6.137, allocations: 1.438 kB / 3.508 GB, free: 114.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003595/6.137, allocations: 51.7 kB / 3.508 GB, free: 114.8 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.419e-05/6.137, allocations: 40.95 kB / 3.508 GB, free: 114.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.731e-05/6.137, allocations: 8.781 kB / 3.508 GB, free: 114.8 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0002163/6.138, allocations: 237.8 kB / 3.508 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005522/6.143, allocations: 1.009 MB / 3.509 GB, free: 114.7 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.007894/6.151, allocations: 1.523 MB / 3.511 GB, free: 114.6 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001151/6.152, allocations: 0.7055 MB / 3.511 GB, free: 114.6 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.558e-06/6.152, allocations: 0 / 3.511 GB, free: 114.6 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.000628/6.153, allocations: 0.6785 MB / 3.512 GB, free: 114.6 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001035/6.154, allocations: 157.2 kB / 3.512 GB, free: 114.6 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001649/6.156, allocations: 1.081 MB / 3.513 GB, free: 114.4 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000512/6.156, allocations: 0.9692 MB / 3.514 GB, free: 113.7 MB / 0.5105 GB Notification: Performance of SimCode: time 1.162e-06/6.156, allocations: 0 / 3.514 GB, free: 113.7 MB / 0.5105 GB Notification: Performance of Templates: time 0.04135/6.198, allocations: 31.83 MB / 3.545 GB, free: 112.6 MB / 0.5105 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveLinear/TestValveLinear.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches