Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.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.TestValveCompressible,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|downstreamPressure.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible,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|downstreamPressure.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible") [: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.001797/0.001797, allocations: 171.2 kB / 8.149 MB, free: 2.223 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.687/1.687, 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.001257/0.001256, allocations: 91.03 kB / 261.8 MB, free: 13.63 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.2593/0.2593, allocations: 43.49 MB / 353.2 MB, free: 2.039 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.595e-06/7.614e-06, allocations: 4 kB / 417.7 MB, free: 40.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2658/0.2658, allocations: 58.84 MB / 476.5 MB, free: 5.094 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.596/5.862, allocations: 2.771 GB / 3.236 GB, free: 12.56 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000291/5.863, allocations: 86.5 kB / 3.236 GB, free: 12.52 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.244/7.106, allocations: 233.6 MB / 3.464 GB, free: 77.09 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 3.85e-05/7.106, allocations: 7.812 kB / 3.464 GB, free: 77.09 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: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.005684/7.112, allocations: 1.291 MB / 3.466 GB, free: 76.5 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/7.112, allocations: 9.578 kB / 3.466 GB, free: 76.5 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003027/7.115, allocations: 272.8 kB / 3.466 GB, free: 76.48 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000891/7.116, allocations: 417.7 kB / 3.466 GB, free: 76.26 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.998e-05/7.116, allocations: 13.88 kB / 3.466 GB, free: 76.26 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.309e-05/7.116, allocations: 20.94 kB / 3.466 GB, free: 76.26 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009121/7.117, allocations: 347.6 kB / 3.467 GB, free: 76.25 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008688/7.118, allocations: 417.2 kB / 3.467 GB, free: 76.12 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.118e-05/7.118, allocations: 7.688 kB / 3.467 GB, free: 76.12 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.902e-05/7.118, allocations: 0 / 3.467 GB, free: 76.12 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.363e-05/7.118, allocations: 14.81 kB / 3.467 GB, free: 76.12 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03004/7.148, allocations: 10.18 MB / 3.477 GB, free: 69.74 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001051/7.149, allocations: 289.7 kB / 3.477 GB, free: 69.72 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003117/7.15, allocations: 136.7 kB / 3.477 GB, free: 69.71 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07888/7.229, allocations: 24.08 MB / 3.501 GB, free: 55.04 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.341e-05/7.229, allocations: 39.25 kB / 3.501 GB, free: 55 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=27): time 3.747e-06/7.229, allocations: 1.969 kB / 3.501 GB, free: 55 MB / 0.4948 GB Notification: Performance of matching and sorting (n=27): time 0.002888/7.232, allocations: 0.5655 MB / 3.502 GB, free: 54.94 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.942e-05/7.232, allocations: 106.8 kB / 3.502 GB, free: 54.81 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004181/7.232, allocations: 284 kB / 3.502 GB, free: 54.7 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 3.942e-05/7.232, allocations: 25.7 kB / 3.502 GB, free: 54.67 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 9.002e-05/7.232, allocations: 247 kB / 3.502 GB, free: 54.48 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 8.224e-05/7.232, allocations: 85.11 kB / 3.502 GB, free: 54.44 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.067e-05/7.232, allocations: 4.672 kB / 3.502 GB, free: 54.44 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 7.04e-05/7.232, allocations: 332.7 kB / 3.503 GB, free: 54.12 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003181/7.233, allocations: 118.4 kB / 3.503 GB, free: 54.12 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003885/7.233, allocations: 247.5 kB / 3.503 GB, free: 53.98 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001495/7.235, allocations: 252.9 kB / 3.503 GB, free: 53.98 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/7.235, allocations: 0 / 3.503 GB, free: 53.98 MB / 0.4948 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.002841/7.237, allocations: 0.6419 MB / 3.504 GB, free: 53.93 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002731/7.238, allocations: 1.394 MB / 3.505 GB, free: 52.49 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.141e-05/7.238, allocations: 5.109 kB / 3.505 GB, free: 52.49 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.544e-05/7.238, allocations: 11.66 kB / 3.505 GB, free: 52.49 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007823/7.239, allocations: 110 kB / 3.505 GB, free: 52.49 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/7.239, allocations: 7.625 kB / 3.505 GB, free: 52.49 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005492/7.239, allocations: 62.08 kB / 3.505 GB, free: 52.48 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.726e-05/7.239, allocations: 23.33 kB / 3.505 GB, free: 52.48 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 7.084e-06/7.239, allocations: 3.969 kB / 3.505 GB, free: 52.48 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001695/7.241, allocations: 405.1 kB / 3.506 GB, free: 52.47 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/7.241, allocations: 3.969 kB / 3.506 GB, free: 52.47 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.378e-06/7.241, allocations: 7.562 kB / 3.506 GB, free: 52.47 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007504/7.242, allocations: 115.4 kB / 3.506 GB, free: 52.47 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.845e-06/7.242, allocations: 9.594 kB / 3.506 GB, free: 52.47 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005037/7.242, allocations: 59.14 kB / 3.506 GB, free: 52.46 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.009e-05/7.242, allocations: 19.95 kB / 3.506 GB, free: 52.46 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (44): * Single equations (assignments): 44 * 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.000119/7.242, allocations: 41.62 kB / 3.506 GB, free: 52.43 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007927/7.243, allocations: 194.3 kB / 3.506 GB, free: 52.41 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003294/7.247, allocations: 1.771 MB / 3.508 GB, free: 52.25 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.711e-05/7.247, allocations: 20.48 kB / 3.508 GB, free: 52.25 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/7.247, allocations: 0 / 3.508 GB, free: 52.25 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.985e-06/7.247, allocations: 3.516 kB / 3.508 GB, free: 52.25 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003671/7.25, allocations: 2.365 MB / 3.51 GB, free: 51.91 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.204e-06/7.25, allocations: 0 / 3.51 GB, free: 51.91 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005835/7.251, allocations: 80.86 kB / 3.51 GB, free: 51.91 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.476e-06/7.251, allocations: 0 / 3.51 GB, free: 51.91 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.663e-05/7.251, allocations: 15.25 kB / 3.51 GB, free: 51.91 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.102e-06/7.251, allocations: 1.5 kB / 3.51 GB, free: 51.91 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/7.251, allocations: 3.703 kB / 3.51 GB, free: 51.91 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002912/7.254, allocations: 1.466 MB / 3.512 GB, free: 51.66 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003366/7.254, allocations: 214.4 kB / 3.512 GB, free: 51.53 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000124/7.254, allocations: 2.594 kB / 3.512 GB, free: 51.53 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006181/7.255, allocations: 38.08 kB / 3.512 GB, free: 51.53 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001272/7.255, allocations: 47.86 kB / 3.512 GB, free: 51.53 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.636e-05/7.255, allocations: 14.28 kB / 3.512 GB, free: 51.53 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.0003891/7.256, allocations: 274 kB / 3.512 GB, free: 51.44 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005605/7.261, allocations: 1.156 MB / 3.514 GB, free: 51.29 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,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.region,SinkP1.medium.phase,SourceP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 31 * 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.008751/7.27, allocations: 1.57 MB / 3.515 GB, free: 51.01 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.001798/7.272, allocations: 0.9299 MB / 3.516 GB, free: 51.01 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/7.272, allocations: 0 / 3.516 GB, free: 51.01 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0008478/7.273, allocations: 0.7079 MB / 3.517 GB, free: 51 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001776/7.275, allocations: 174.4 kB / 3.517 GB, free: 50.99 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002333/7.277, allocations: 1.191 MB / 3.518 GB, free: 50.71 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006456/7.278, allocations: 0.9964 MB / 3.519 GB, free: 50 MB / 0.4948 GB Notification: Performance of SimCode: time 1.664e-06/7.278, allocations: 3.281 kB / 3.519 GB, free: 50 MB / 0.4948 GB Notification: Performance of Templates: time 0.05365/7.331, allocations: 27.21 MB / 3.546 GB, free: 47.32 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveCompressible/TestValveCompressible.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches