Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.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.TestPipesAndValves.LumpedPipeInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.volume.medium.h|pipe.volume.medium.p|m_flow_initial",fileNamePrefix="ModelicaTest_4.0.0_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_4.0.0_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001518/0.001518, allocations: 175.6 kB / 8.517 MB, free: 1.859 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.165/1.165, allocations: 221.4 MB / 230.3 MB, free: 7.699 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.0009254/0.0009253, allocations: 95.28 kB / 281.2 MB, free: 5.461 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.1615/0.1615, allocations: 44.15 MB / 376.1 MB, free: 3.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.263e-06/7.303e-06, allocations: 4.219 kB / 444 MB, free: 15.62 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1024, allocations: 61.92 MB / 0.4941 GB, free: 1.637 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.808/4.91, allocations: 2.826 GB / 3.32 GB, free: 142 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003493/4.911, allocations: 72.08 kB / 3.32 GB, free: 142 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.642/7.553, allocations: 0.748 GB / 4.068 GB, free: 0 / 0.5417 GB Notification: Performance of Transformations before backend: time 0.3864/7.939, allocations: 32.91 kB / 4.068 GB, free: 88.68 MB / 0.5417 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.0151/7.954, allocations: 2.773 MB / 4.071 GB, free: 88.09 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.889e-05/7.954, allocations: 14 kB / 4.071 GB, free: 88.09 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004072/7.958, allocations: 497.3 kB / 4.071 GB, free: 88.02 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003389/7.962, allocations: 1.15 MB / 4.072 GB, free: 87.72 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001527/7.962, allocations: 113.1 kB / 4.072 GB, free: 87.66 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001711/7.962, allocations: 58.34 kB / 4.073 GB, free: 87.66 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002432/7.965, allocations: 1.363 MB / 4.074 GB, free: 87.65 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002206/7.967, allocations: 1.491 MB / 4.075 GB, free: 87.32 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.32e-05/7.967, allocations: 2.625 kB / 4.075 GB, free: 87.32 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001376/7.967, allocations: 6 kB / 4.075 GB, free: 87.32 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001028/7.967, allocations: 86.42 kB / 4.075 GB, free: 87.32 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2993/8.267, allocations: 135.1 MB / 4.207 GB, free: 34.74 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001711/8.268, allocations: 0.4963 MB / 4.208 GB, free: 34.72 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001082/8.27, allocations: 374.9 kB / 4.208 GB, free: 34.71 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4957/8.765, allocations: 48.32 MB / 4.255 GB, free: 126.5 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001339/8.767, allocations: 0.5072 MB / 4.256 GB, free: 126.4 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=66): time 2.645e-06/8.767, allocations: 0 / 4.256 GB, free: 126.4 MB / 0.5886 GB Notification: Performance of matching and sorting (n=70): time 0.01115/8.778, allocations: 3.242 MB / 4.259 GB, free: 125.8 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002454/8.778, allocations: 346.4 kB / 4.259 GB, free: 125.4 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001846/8.78, allocations: 0.8636 MB / 4.26 GB, free: 125.2 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 8.558e-05/8.78, allocations: 28.95 kB / 4.26 GB, free: 125.2 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006865/8.781, allocations: 0.5055 MB / 4.261 GB, free: 124.9 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002947/8.781, allocations: 239.4 kB / 4.261 GB, free: 124.8 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.665e-05/8.781, allocations: 0 / 4.261 GB, free: 124.8 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0002036/8.781, allocations: 350.8 kB / 4.261 GB, free: 124.4 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009636/8.782, allocations: 0.4972 MB / 4.262 GB, free: 124.4 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001395/8.784, allocations: 0.9678 MB / 4.263 GB, free: 123.9 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003634/8.787, allocations: 1.058 MB / 4.264 GB, free: 123.9 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.274e-05/8.787, allocations: 3.438 kB / 4.264 GB, free: 123.9 MB / 0.5886 GB Notification: Performance of matching and sorting (n=160) (initialization): time 0.007681/8.795, allocations: 2.589 MB / 4.266 GB, free: 123.8 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.00288/8.798, allocations: 5.394 MB / 4.272 GB, free: 118.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.728e-05/8.798, allocations: 16.66 kB / 4.272 GB, free: 118.2 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002391/8.8, allocations: 0.6344 MB / 4.272 GB, free: 118.1 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001054/8.802, allocations: 255.9 kB / 4.272 GB, free: 118.1 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003848/8.805, allocations: 1.864 MB / 4.274 GB, free: 117.6 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002015/8.807, allocations: 123.2 kB / 4.274 GB, free: 117.6 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001538/8.808, allocations: 75.38 kB / 4.274 GB, free: 117.6 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/8.808, allocations: 3.625 kB / 4.274 GB, free: 117.6 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00476/8.812, allocations: 1.788 MB / 4.276 GB, free: 117.6 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.27e-05/8.812, allocations: 12.5 kB / 4.276 GB, free: 117.6 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001405/8.814, allocations: 344.9 kB / 4.277 GB, free: 117.6 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001184/8.815, allocations: 289.8 kB / 4.277 GB, free: 117.6 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001711/8.817, allocations: 1.09 MB / 4.278 GB, free: 117 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001962/8.819, allocations: 114.3 kB / 4.278 GB, free: 117 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000194/8.819, allocations: 71.59 kB / 4.278 GB, free: 117 MB / 0.5886 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.0007552/8.82, allocations: 157.2 kB / 4.278 GB, free: 116.9 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001743/8.822, allocations: 407.3 kB / 4.279 GB, free: 116.9 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007015/8.829, allocations: 3.022 MB / 4.282 GB, free: 116.7 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.136e-05/8.829, allocations: 28.97 kB / 4.282 GB, free: 116.7 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.007e-05/8.829, allocations: 2.906 kB / 4.282 GB, free: 116.7 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.639e-05/8.829, allocations: 3 kB / 4.282 GB, free: 116.7 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00986/8.839, allocations: 4.688 MB / 4.286 GB, free: 116 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.053e-05/8.839, allocations: 3.375 kB / 4.286 GB, free: 116 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006322/8.839, allocations: 129 kB / 4.286 GB, free: 116 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004898/8.844, allocations: 1.34 MB / 4.288 GB, free: 115.9 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001032/8.844, allocations: 17.41 kB / 4.288 GB, free: 115.9 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002569/8.847, allocations: 2.156 MB / 4.29 GB, free: 114.8 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.136e-06/8.847, allocations: 13.31 kB / 4.29 GB, free: 114.8 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005737/8.853, allocations: 3.425 MB / 4.293 GB, free: 114.4 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00115/8.854, allocations: 364.2 kB / 4.293 GB, free: 114.3 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005944/8.854, allocations: 3.875 kB / 4.293 GB, free: 114.3 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001383/8.856, allocations: 74.88 kB / 4.294 GB, free: 114.3 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001749/8.856, allocations: 53.55 kB / 4.294 GB, free: 114.3 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.537e-05/8.856, allocations: 44.41 kB / 4.294 GB, free: 114.3 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.001518/8.858, allocations: 0.6209 MB / 4.294 GB, free: 114.2 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01137/8.869, allocations: 1.954 MB / 4.296 GB, free: 114.1 MB / 0.5886 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.01502/8.884, allocations: 2.57 MB / 4.299 GB, free: 113.8 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.005968/8.89, allocations: 2.476 MB / 4.301 GB, free: 113.7 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 9.178e-06/8.89, allocations: 0 / 4.301 GB, free: 113.7 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.001876/8.892, allocations: 1.156 MB / 4.302 GB, free: 113.7 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003209/8.895, allocations: 446.9 kB / 4.303 GB, free: 113.7 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006625/8.902, allocations: 2.509 MB / 4.305 GB, free: 113.2 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001836/8.904, allocations: 1.439 MB / 4.306 GB, free: 112.5 MB / 0.5886 GB Notification: Performance of SimCode: time 1.182e-06/8.904, allocations: 0 / 4.306 GB, free: 112.5 MB / 0.5886 GB Notification: Performance of Templates: time 0.1015/9.005, allocations: 64.11 MB / 4.369 GB, free: 109.7 MB / 0.5886 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe 2>&1)