Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.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.TestPipesAndValves.LumpedPipeInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.volume.medium.h|pipe.volume.medium.p|m_flow_initial",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization") translateModel(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.volume.medium.h|pipe.volume.medium.p|m_flow_initial",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization") [: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.002402/0.002401, allocations: 171.7 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.707/1.707, 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.001262/0.001262, allocations: 93.83 kB / 261.8 MB, free: 13.64 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.2583/0.2583, allocations: 43.5 MB / 353.2 MB, free: 2.047 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.045e-05/1.056e-05, allocations: 0 / 417.7 MB, free: 40.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2815/0.2816, allocations: 58.85 MB / 476.5 MB, free: 5.078 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.114/6.396, allocations: 2.821 GB / 3.286 GB, free: 110.4 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002621/6.396, allocations: 79.34 kB / 3.286 GB, free: 110.4 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.242/9.638, allocations: 0.7405 GB / 4.027 GB, free: 31.16 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001542/9.638, allocations: 39.14 kB / 4.027 GB, free: 31.13 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: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.01381/9.652, allocations: 2.767 MB / 4.03 GB, free: 28.64 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.665e-05/9.652, allocations: 12.03 kB / 4.03 GB, free: 28.62 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005733/9.658, allocations: 0.4891 MB / 4.03 GB, free: 28.25 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004822/9.663, allocations: 1.134 MB / 4.031 GB, free: 27.29 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000216/9.663, allocations: 112.9 kB / 4.031 GB, free: 27.17 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004337/9.664, allocations: 52 kB / 4.031 GB, free: 27.12 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004103/9.668, allocations: 1.372 MB / 4.033 GB, free: 25.87 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003695/9.671, allocations: 1.484 MB / 4.034 GB, free: 24.48 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.513e-05/9.671, allocations: 7.938 kB / 4.034 GB, free: 24.48 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000196/9.672, allocations: 4.938 kB / 4.034 GB, free: 24.47 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001258/9.672, allocations: 81.81 kB / 4.034 GB, free: 24.41 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.706/10.38, allocations: 135.1 MB / 4.166 GB, free: 40.57 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001413/10.38, allocations: 499.7 kB / 4.167 GB, free: 40.55 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008655/10.38, allocations: 376.3 kB / 4.167 GB, free: 40.54 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1743/10.55, allocations: 48.31 MB / 4.214 GB, free: 41.35 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00136/10.56, allocations: 0.5077 MB / 4.215 GB, free: 41.23 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=66): time 5.08e-06/10.56, allocations: 0 / 4.215 GB, free: 41.23 MB / 0.5573 GB Notification: Performance of matching and sorting (n=70): time 0.01472/10.57, allocations: 3.233 MB / 4.218 GB, free: 40.55 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001904/10.57, allocations: 347.2 kB / 4.218 GB, free: 40.14 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001958/10.57, allocations: 0.8637 MB / 4.219 GB, free: 39.99 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0002723/10.57, allocations: 25.7 kB / 4.219 GB, free: 39.96 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004666/10.57, allocations: 0.5164 MB / 4.22 GB, free: 39.63 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003443/10.57, allocations: 242.3 kB / 4.22 GB, free: 39.52 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000116/10.57, allocations: 0 / 4.22 GB, free: 39.52 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.000213/10.57, allocations: 363.6 kB / 4.22 GB, free: 39.2 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001387/10.58, allocations: 0.4942 MB / 4.221 GB, free: 39.2 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001692/10.58, allocations: 0.9602 MB / 4.222 GB, free: 38.62 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01381/10.59, allocations: 1.772 MB / 4.223 GB, free: 38.58 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.922e-05/10.59, allocations: 5.906 kB / 4.223 GB, free: 38.58 MB / 0.5573 GB Notification: Performance of matching and sorting (n=160) (initialization): time 0.0199/10.61, allocations: 3.24 MB / 4.227 GB, free: 38.46 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002197/10.61, allocations: 5.392 MB / 4.232 GB, free: 32.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.589e-05/10.61, allocations: 16.11 kB / 4.232 GB, free: 32.8 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006271/10.62, allocations: 0.7519 MB / 4.233 GB, free: 32.77 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001942/10.62, allocations: 255.2 kB / 4.233 GB, free: 32.76 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005445/10.63, allocations: 1.835 MB / 4.235 GB, free: 32.22 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002154/10.63, allocations: 114.2 kB / 4.235 GB, free: 32.21 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002117/10.63, allocations: 73.44 kB / 4.235 GB, free: 32.21 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/10.63, allocations: 3.375 kB / 4.235 GB, free: 32.21 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01617/10.65, allocations: 2.492 MB / 4.237 GB, free: 32.15 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.44e-05/10.65, allocations: 13.34 kB / 4.237 GB, free: 32.15 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001977/10.65, allocations: 333.4 kB / 4.238 GB, free: 32.13 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002241/10.65, allocations: 290.9 kB / 4.238 GB, free: 32.13 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002225/10.65, allocations: 1.083 MB / 4.239 GB, free: 31.6 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002179/10.65, allocations: 109.3 kB / 4.239 GB, free: 31.59 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002135/10.66, allocations: 71.03 kB / 4.239 GB, free: 31.59 MB / 0.5573 GB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = false ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 19 ($PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.staticPipe2.flowModel.states[2].phase,pipe.staticPipe2.flowModel.states[1].phase,pipe.staticPipe1.flowModel.states[2].phase,pipe.staticPipe1.flowModel.states[1].phase,pipe.volume.regularFlow[1],pipe.volume.regularFlow[2],pipe.volume.inFlow[2],pipe.volume.inFlow[1],pipe.volume.heatTransfer.states[1].phase,source.medium.phase,sink.state.phase,sink.medium.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 35} Notification: Performance of prepare postOptimizeDAE: time 0.0005622/10.66, allocations: 91.5 kB / 4.239 GB, free: 31.55 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001759/10.66, allocations: 410.3 kB / 4.24 GB, free: 31.49 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007615/10.67, allocations: 3.018 MB / 4.242 GB, free: 31.3 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.211e-05/10.67, allocations: 30.22 kB / 4.243 GB, free: 31.3 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.117e-06/10.67, allocations: 0 / 4.243 GB, free: 31.3 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.531e-05/10.67, allocations: 9.719 kB / 4.243 GB, free: 31.3 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01062/10.68, allocations: 4.683 MB / 4.247 GB, free: 30.59 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.274e-05/10.68, allocations: 4.312 kB / 4.247 GB, free: 30.59 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001083/10.68, allocations: 126.5 kB / 4.247 GB, free: 30.59 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00918/10.69, allocations: 1.345 MB / 4.249 GB, free: 30.5 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002261/10.69, allocations: 16.02 kB / 4.249 GB, free: 30.5 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00366/10.69, allocations: 2.16 MB / 4.251 GB, free: 29.43 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.073e-06/10.69, allocations: 6.375 kB / 4.251 GB, free: 29.43 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008019/10.7, allocations: 3.425 MB / 4.254 GB, free: 29.02 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001269/10.7, allocations: 361.7 kB / 4.254 GB, free: 28.86 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003493/10.7, allocations: 3.438 kB / 4.254 GB, free: 28.86 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001606/10.7, allocations: 81.61 kB / 4.254 GB, free: 28.84 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001732/10.7, allocations: 59.22 kB / 4.254 GB, free: 28.84 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001028/10.7, allocations: 33.44 kB / 4.255 GB, free: 28.84 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.001407/10.7, allocations: 0.6284 MB / 4.255 GB, free: 28.73 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01054/10.71, allocations: 1.95 MB / 4.257 GB, free: 28.73 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (pipe.volume.medium.p,pipe.volume.medium.h) * Number of discrete variables: 18 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse14.phase,$cse14.region,$cse18.phase,$cse18.region,$whenCondition2,$whenCondition1,pipe.volume.heatTransfer.states[1].phase,m_flow_initial) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (66): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.01569/10.73, allocations: 2.579 MB / 4.26 GB, free: 28.38 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.00696/10.74, allocations: 2.437 MB / 4.262 GB, free: 28.34 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 8.556e-06/10.74, allocations: 1.938 kB / 4.262 GB, free: 28.34 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.002362/10.74, allocations: 1.149 MB / 4.263 GB, free: 28.33 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004548/10.74, allocations: 456 kB / 4.264 GB, free: 28.3 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00746/10.75, allocations: 2.547 MB / 4.266 GB, free: 27.7 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002094/10.75, allocations: 1.441 MB / 4.267 GB, free: 26.95 MB / 0.5573 GB Notification: Performance of SimCode: time 1.333e-06/10.75, allocations: 1.531 kB / 4.267 GB, free: 26.95 MB / 0.5573 GB Notification: Performance of Templates: time 0.3493/11.1, allocations: 54.77 MB / 4.321 GB, free: 131.7 MB / 0.5573 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestPipesAndValves/LumpedPipeInitialization/LumpedPipeInitialization.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches