Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.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.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_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_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009573/0.0009574, allocations: 185.4 kB / 7.801 MB, free: 2.445 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.04/1.04, allocations: 205.2 MB / 213.4 MB, free: 13.86 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.000848/0.0008481, allocations: 91.38 kB / 261.4 MB, free: 13.61 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.1556/0.1556, allocations: 43.48 MB / 352.8 MB, free: 2.02 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.34e-06/5.37e-06, allocations: 0 / 417.7 MB, free: 40.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2214/0.2214, allocations: 58.84 MB / 476.6 MB, free: 5.227 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.653/3.874, allocations: 2.753 GB / 3.219 GB, free: 111.2 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00022/3.875, allocations: 86.56 kB / 3.219 GB, free: 111.1 MB / 0.4948 GB Notification: Performance of FrontEnd: time 0.5702/4.445, allocations: 213.2 MB / 3.427 GB, free: 77.04 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 2.85e-05/4.445, allocations: 11.78 kB / 3.427 GB, free: 77.03 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.004187/4.449, allocations: 1.169 MB / 3.428 GB, free: 76.29 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/4.449, allocations: 15.03 kB / 3.428 GB, free: 76.29 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001768/4.451, allocations: 238.6 kB / 3.429 GB, free: 76.25 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000487/4.451, allocations: 370 kB / 3.429 GB, free: 75.96 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.709e-05/4.452, allocations: 15.06 kB / 3.429 GB, free: 75.96 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.969e-05/4.452, allocations: 16.53 kB / 3.429 GB, free: 75.96 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004928/4.452, allocations: 301.2 kB / 3.429 GB, free: 75.86 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004982/4.453, allocations: 383.4 kB / 3.43 GB, free: 75.62 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/4.453, allocations: 1.125 kB / 3.43 GB, free: 75.62 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.485e-05/4.453, allocations: 2 kB / 3.43 GB, free: 75.62 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/4.453, allocations: 10.69 kB / 3.43 GB, free: 75.62 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01668/4.469, allocations: 10.08 MB / 3.439 GB, free: 68.84 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000311/4.47, allocations: 210 kB / 3.44 GB, free: 68.75 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001689/4.47, allocations: 124.8 kB / 3.44 GB, free: 68.7 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04388/4.514, allocations: 24.08 MB / 3.463 GB, free: 52.55 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.693e-05/4.514, allocations: 33.3 kB / 3.463 GB, free: 52.51 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=24): time 2.104e-06/4.514, allocations: 0 / 3.463 GB, free: 52.51 MB / 0.4948 GB Notification: Performance of matching and sorting (n=24): time 0.001716/4.516, allocations: 0.4906 MB / 3.464 GB, free: 52.18 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.244e-05/4.516, allocations: 111.5 kB / 3.464 GB, free: 52.05 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002548/4.516, allocations: 235.1 kB / 3.464 GB, free: 51.83 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.979e-05/4.516, allocations: 29.64 kB / 3.464 GB, free: 51.8 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 9.128e-05/4.516, allocations: 175.3 kB / 3.464 GB, free: 51.64 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 6.378e-05/4.516, allocations: 81.94 kB / 3.464 GB, free: 51.56 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.559e-05/4.516, allocations: 0 / 3.464 GB, free: 51.56 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 8.031e-05/4.516, allocations: 343.8 kB / 3.465 GB, free: 51.23 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001582/4.516, allocations: 105.8 kB / 3.465 GB, free: 51.13 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001941/4.517, allocations: 198.4 kB / 3.465 GB, free: 50.91 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007181/4.517, allocations: 188.5 kB / 3.465 GB, free: 50.76 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/4.517, allocations: 0 / 3.465 GB, free: 50.76 MB / 0.4948 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001557/4.519, allocations: 0.5675 MB / 3.466 GB, free: 50.29 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/4.519, allocations: 4.656 kB / 3.466 GB, free: 50.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/4.519, allocations: 4 kB / 3.466 GB, free: 50.28 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.167e-05/4.519, allocations: 7.984 kB / 3.466 GB, free: 50.27 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004079/4.519, allocations: 96.17 kB / 3.466 GB, free: 50.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.655e-06/4.519, allocations: 4.891 kB / 3.466 GB, free: 50.19 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003683/4.52, allocations: 61.11 kB / 3.466 GB, free: 50.14 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.748e-05/4.52, allocations: 14.44 kB / 3.466 GB, free: 50.13 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 8.864e-05/4.52, allocations: 112.9 kB / 3.466 GB, free: 50.01 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005627/4.52, allocations: 187.9 kB / 3.466 GB, free: 49.88 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001841/4.522, allocations: 1.677 MB / 3.468 GB, free: 48.35 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.687e-05/4.522, allocations: 25.05 kB / 3.468 GB, free: 48.34 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.411e-06/4.522, allocations: 0 / 3.468 GB, free: 48.34 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.274e-06/4.522, allocations: 1.875 kB / 3.468 GB, free: 48.34 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002358/4.525, allocations: 2.257 MB / 3.47 GB, free: 46.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/4.525, allocations: 0 / 3.47 GB, free: 46.3 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002793/4.525, allocations: 68.86 kB / 3.47 GB, free: 46.25 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.021e-06/4.525, allocations: 7.938 kB / 3.47 GB, free: 46.24 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.261e-05/4.525, allocations: 5.969 kB / 3.47 GB, free: 46.23 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/4.525, allocations: 0 / 3.47 GB, free: 46.23 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/4.525, allocations: 4.547 kB / 3.47 GB, free: 46.23 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00167/4.527, allocations: 1.384 MB / 3.472 GB, free: 44.96 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001231/4.527, allocations: 160.3 kB / 3.472 GB, free: 44.79 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.72e-05/4.527, allocations: 0.9375 kB / 3.472 GB, free: 44.79 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003218/4.527, allocations: 36.62 kB / 3.472 GB, free: 44.76 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.925e-05/4.527, allocations: 44.08 kB / 3.472 GB, free: 44.73 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.063e-05/4.527, allocations: 19.14 kB / 3.472 GB, free: 44.72 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.0001944/4.528, allocations: 238.3 kB / 3.472 GB, free: 44.5 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.00387/4.531, allocations: 1.004 MB / 3.473 GB, free: 43.52 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.006492/4.538, allocations: 1.511 MB / 3.474 GB, free: 42.22 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0006865/4.539, allocations: 0.6989 MB / 3.475 GB, free: 41.57 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/4.539, allocations: 0 / 3.475 GB, free: 41.57 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0004731/4.539, allocations: 0.6788 MB / 3.476 GB, free: 40.94 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008238/4.54, allocations: 151.5 kB / 3.476 GB, free: 40.83 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001366/4.541, allocations: 1.076 MB / 3.477 GB, free: 39.82 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003842/4.542, allocations: 0.9739 MB / 3.478 GB, free: 38.92 MB / 0.4948 GB Notification: Performance of SimCode: time 7.51e-07/4.542, allocations: 0 / 3.478 GB, free: 38.92 MB / 0.4948 GB Notification: Performance of Templates: time 0.03527/4.577, allocations: 31.7 MB / 3.509 GB, free: 7.953 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_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_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches