Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.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.TestValveIncompressible,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|V1.minLimiter.y|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|SourceP2.ports.1..m_flow|SourceP2.ports.1..p|SourceP2.ports.1..h_outflow|V2.port_b.m_flow|V2.port_b.p|V2.port_b.h_outflow|V2.minLimiter.y|SinkP2.ports.1..m_flow|SinkP2.ports.1..p|SinkP2.ports.1..h_outflow|SourceP3.ports.1..m_flow|SourceP3.ports.1..p|SourceP3.ports.1..h_outflow|V3.port_b.m_flow|V3.port_b.p|V3.port_b.h_outflow|V3.minLimiter.y|SinkP3.ports.1..m_flow|SinkP3.ports.1..p|SinkP3.ports.1..h_outflow",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible,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|V1.minLimiter.y|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|SourceP2.ports.1..m_flow|SourceP2.ports.1..p|SourceP2.ports.1..h_outflow|V2.port_b.m_flow|V2.port_b.p|V2.port_b.h_outflow|V2.minLimiter.y|SinkP2.ports.1..m_flow|SinkP2.ports.1..p|SinkP2.ports.1..h_outflow|SourceP3.ports.1..m_flow|SourceP3.ports.1..p|SourceP3.ports.1..h_outflow|V3.port_b.m_flow|V3.port_b.p|V3.port_b.h_outflow|V3.minLimiter.y|SinkP3.ports.1..m_flow|SinkP3.ports.1..p|SinkP3.ports.1..h_outflow",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible") [: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.001666/0.001666, allocations: 171.3 kB / 8.147 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.671/1.671, 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.001265/0.001265, allocations: 92.64 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.2623/0.2623, allocations: 43.49 MB / 353.2 MB, free: 2.039 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.124e-05/1.139e-05, allocations: 4 kB / 417.7 MB, free: 40.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2873/0.2874, allocations: 58.84 MB / 476.6 MB, free: 5.086 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.8/6.087, allocations: 2.771 GB / 3.237 GB, free: 12.2 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002884/6.087, allocations: 83.08 kB / 3.237 GB, free: 12.16 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.353/8.441, allocations: 0.4978 GB / 3.735 GB, free: 43.46 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 9.426e-05/8.441, allocations: 41.22 kB / 3.735 GB, free: 43.45 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: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.009955/8.451, allocations: 2.081 MB / 3.737 GB, free: 42.43 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.793e-05/8.451, allocations: 14.36 kB / 3.737 GB, free: 42.43 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009624/8.46, allocations: 0.7608 MB / 3.737 GB, free: 42.37 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002379/8.463, allocations: 0.8092 MB / 3.738 GB, free: 41.9 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.621e-05/8.463, allocations: 43.53 kB / 3.738 GB, free: 41.89 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001628/8.463, allocations: 49.66 kB / 3.738 GB, free: 41.89 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002557/8.466, allocations: 0.9206 MB / 3.739 GB, free: 41.57 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002292/8.468, allocations: 1.091 MB / 3.74 GB, free: 40.95 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.322e-05/8.468, allocations: 6.438 kB / 3.74 GB, free: 40.95 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001485/8.468, allocations: 7.297 kB / 3.74 GB, free: 40.95 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.464e-05/8.468, allocations: 24.06 kB / 3.74 GB, free: 40.95 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1803/8.649, allocations: 52.45 MB / 3.791 GB, free: 22.26 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001822/8.651, allocations: 0.6057 MB / 3.792 GB, free: 22.03 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009024/8.651, allocations: 310.8 kB / 3.792 GB, free: 21.91 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06073/8.712, allocations: 16.65 MB / 3.809 GB, free: 23.06 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.159e-05/8.712, allocations: 51 kB / 3.809 GB, free: 23 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=61): time 3.467e-06/8.712, allocations: 3.938 kB / 3.809 GB, free: 23 MB / 0.5261 GB Notification: Performance of matching and sorting (n=61): time 0.007918/8.72, allocations: 1.445 MB / 3.81 GB, free: 21.89 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001784/8.72, allocations: 217.6 kB / 3.81 GB, free: 21.63 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001105/8.722, allocations: 0.5616 MB / 3.811 GB, free: 21.11 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002203/8.722, allocations: 25.7 kB / 3.811 GB, free: 21.08 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002817/8.722, allocations: 444.6 kB / 3.811 GB, free: 20.67 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002599/8.722, allocations: 203.2 kB / 3.811 GB, free: 20.49 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.433e-05/8.723, allocations: 4 kB / 3.811 GB, free: 20.48 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001946/8.723, allocations: 349 kB / 3.812 GB, free: 20.15 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009028/8.724, allocations: 301.8 kB / 3.812 GB, free: 19.87 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001127/8.725, allocations: 0.5904 MB / 3.813 GB, free: 19.18 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00468/8.729, allocations: 0.6482 MB / 3.813 GB, free: 18.68 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.527e-05/8.73, allocations: 4 kB / 3.813 GB, free: 18.68 MB / 0.5261 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.009681/8.739, allocations: 1.71 MB / 3.815 GB, free: 17.33 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001505/8.741, allocations: 3.22 MB / 3.818 GB, free: 13.87 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.893e-05/8.741, allocations: 8 kB / 3.818 GB, free: 13.86 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.245e-05/8.741, allocations: 20.88 kB / 3.818 GB, free: 13.84 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002229/8.743, allocations: 291.5 kB / 3.818 GB, free: 13.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.568e-05/8.743, allocations: 18 kB / 3.818 GB, free: 13.59 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001604/8.745, allocations: 141.9 kB / 3.819 GB, free: 13.47 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001523/8.745, allocations: 55.45 kB / 3.819 GB, free: 13.42 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.271e-05/8.745, allocations: 4 kB / 3.819 GB, free: 13.42 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005208/8.75, allocations: 1.02 MB / 3.82 GB, free: 12.55 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.694e-05/8.75, allocations: 12.22 kB / 3.82 GB, free: 12.54 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.264e-05/8.75, allocations: 16 kB / 3.82 GB, free: 12.53 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001994/8.752, allocations: 283.6 kB / 3.82 GB, free: 12.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.052e-05/8.752, allocations: 21.67 kB / 3.82 GB, free: 12.28 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001543/8.754, allocations: 142 kB / 3.82 GB, free: 12.16 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001439/8.754, allocations: 50.56 kB / 3.82 GB, free: 12.12 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 12 (SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,V3.state_b.phase,V3.state_a.phase,V2.state_b.phase,V2.state_a.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (109): * Single equations (assignments): 109 * 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.000356/8.755, allocations: 71.02 kB / 3.82 GB, free: 12.05 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002504/8.757, allocations: 0.5375 MB / 3.821 GB, free: 11.66 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009363/8.766, allocations: 3.311 MB / 3.824 GB, free: 8.812 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.355e-05/8.767, allocations: 27.34 kB / 3.824 GB, free: 8.797 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.096e-05/8.767, allocations: 0 / 3.824 GB, free: 8.797 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.523e-05/8.767, allocations: 3.938 kB / 3.824 GB, free: 8.797 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01363/8.78, allocations: 4.979 MB / 3.829 GB, free: 4.547 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.77e-05/8.78, allocations: 4 kB / 3.829 GB, free: 4.543 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001586/8.782, allocations: 189.2 kB / 3.829 GB, free: 4.395 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.071e-05/8.782, allocations: 8.797 kB / 3.829 GB, free: 4.387 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001082/8.782, allocations: 19.66 kB / 3.829 GB, free: 4.371 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.487e-05/8.782, allocations: 9.453 kB / 3.829 GB, free: 4.363 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.14e-05/8.782, allocations: 4 kB / 3.829 GB, free: 4.359 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008399/8.791, allocations: 2.551 MB / 3.832 GB, free: 1.996 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001779/8.792, allocations: 0.5988 MB / 3.832 GB, free: 1.496 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004199/8.793, allocations: 5.359 kB / 3.832 GB, free: 1.492 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001782/8.795, allocations: 110.3 kB / 3.832 GB, free: 1.406 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003774/8.795, allocations: 120 kB / 3.832 GB, free: 1.328 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001199/8.795, allocations: 38.27 kB / 3.832 GB, free: 1.297 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.002628/8.798, allocations: 1.087 MB / 3.833 GB, free: 308 kB / 0.5261 GB Notification: Performance of remove unused functions: time 0.2164/9.014, allocations: 1.657 MB / 3.835 GB, free: 117.6 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 18 ($cse1.phase,$cse1.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse30.phase,$cse30.region,SinkP3.medium.phase,SourceP3.medium.phase,SinkP2.medium.phase,SourceP2.medium.phase,SinkP1.medium.phase,SourceP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 61 * 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.01144/9.026, allocations: 1.983 MB / 3.837 GB, free: 117.4 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.003883/9.03, allocations: 1.725 MB / 3.839 GB, free: 117.4 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.062e-05/9.03, allocations: 6 kB / 3.839 GB, free: 117.4 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00147/9.031, allocations: 0.9496 MB / 3.84 GB, free: 117.4 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00416/9.035, allocations: 401.8 kB / 3.84 GB, free: 117.4 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005844/9.041, allocations: 2.413 MB / 3.842 GB, free: 116.8 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00144/9.043, allocations: 1.426 MB / 3.844 GB, free: 116 MB / 0.5261 GB Notification: Performance of SimCode: time 1.243e-06/9.043, allocations: 0 / 3.844 GB, free: 116 MB / 0.5261 GB Notification: Performance of Templates: time 0.091/9.134, allocations: 39.83 MB / 3.883 GB, free: 113.8 MB / 0.5261 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveIncompressible/TestValveIncompressible.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches