Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) 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/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised") translateModel(BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised") [: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/BuildingSystems 2.0.0-master/package.mo): time 0.7684/0.7684, allocations: 141.8 MB / 149.1 MB, free: 3.766 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001165/0.001165, allocations: 186.4 kB / 181.9 MB, free: 15.52 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.565/1.565, allocations: 221.4 MB / 436 MB, free: 8.652 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001249/0.001249, allocations: 102 kB / 0.507 GB, free: 24.27 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002009/0.002009, allocations: 286.2 kB / 0.5884 GB, free: 11.73 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 8.426e-06/8.456e-06, allocations: 0 / 0.6759 GB, free: 2.09 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5581/0.5582, allocations: 82.76 MB / 0.7567 GB, free: 112.3 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.485/5.043, allocations: 1.829 GB / 2.586 GB, free: 263.7 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003255/5.044, allocations: 92.31 kB / 2.586 GB, free: 263.6 MB / 0.6982 GB Notification: Performance of FrontEnd: time 5.685/10.73, allocations: 1.802 GB / 4.388 GB, free: 62.57 MB / 0.6982 GB Notification: Performance of Transformations before backend: time 9.483e-05/10.73, allocations: 31.98 kB / 4.388 GB, free: 62.54 MB / 0.6982 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.00162/10.73, allocations: 1.129 MB / 4.389 GB, free: 61.36 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 3.492e-05/10.73, allocations: 8.031 kB / 4.389 GB, free: 61.35 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007388/10.73, allocations: 190.4 kB / 4.389 GB, free: 61.16 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001829/10.73, allocations: 1.085 MB / 4.39 GB, free: 60.02 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.331e-05/10.73, allocations: 20 kB / 4.39 GB, free: 60 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.051e-05/10.73, allocations: 39.98 kB / 4.39 GB, free: 59.96 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006138/10.73, allocations: 497.6 kB / 4.391 GB, free: 59.48 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000701/10.73, allocations: 0.6811 MB / 4.391 GB, free: 58.71 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.762e-05/10.73, allocations: 11.92 kB / 4.391 GB, free: 58.7 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.019e-05/10.73, allocations: 0 / 4.391 GB, free: 58.7 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.387e-05/10.73, allocations: 16 kB / 4.391 GB, free: 58.68 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002909/10.74, allocations: 4.677 MB / 4.396 GB, free: 53.65 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004337/10.74, allocations: 448.2 kB / 4.396 GB, free: 53.2 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002318/10.74, allocations: 244.7 kB / 4.396 GB, free: 52.96 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002424/10.74, allocations: 194.2 kB / 4.397 GB, free: 52.73 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002469/10.74, allocations: 262.7 kB / 4.397 GB, free: 52.46 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=31): time 1.633e-06/10.74, allocations: 0 / 4.397 GB, free: 52.46 MB / 0.6982 GB Notification: Performance of matching and sorting (n=31): time 0.0007885/10.74, allocations: 0.4931 MB / 4.397 GB, free: 51.96 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.976e-05/10.74, allocations: 89 kB / 4.397 GB, free: 51.86 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008059/10.74, allocations: 0.8753 MB / 4.398 GB, free: 50.96 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 3.325e-05/10.74, allocations: 25.7 kB / 4.398 GB, free: 50.93 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001561/10.74, allocations: 344 kB / 4.399 GB, free: 50.59 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 6.281e-05/10.74, allocations: 114.6 kB / 4.399 GB, free: 50.48 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.95e-05/10.74, allocations: 0 / 4.399 GB, free: 50.48 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 4.847e-05/10.74, allocations: 326 kB / 4.399 GB, free: 50.15 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002018/10.74, allocations: 188.8 kB / 4.399 GB, free: 49.97 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003312/10.74, allocations: 0.4999 MB / 4.4 GB, free: 49.33 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002699/10.74, allocations: 285.8 kB / 4.4 GB, free: 49.05 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/10.74, allocations: 0 / 4.4 GB, free: 49.05 MB / 0.6982 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0006815/10.74, allocations: 0.6175 MB / 4.401 GB, free: 48.43 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003247/10.74, allocations: 2.104 MB / 4.403 GB, free: 46.16 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/10.74, allocations: 4 kB / 4.403 GB, free: 46.16 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.782e-05/10.74, allocations: 8 kB / 4.403 GB, free: 46.15 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004576/10.74, allocations: 115.8 kB / 4.403 GB, free: 46.04 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.656e-06/10.74, allocations: 8 kB / 4.403 GB, free: 46.03 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007347/10.74, allocations: 91.47 kB / 4.403 GB, free: 45.94 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.139e-05/10.74, allocations: 27.98 kB / 4.403 GB, free: 45.91 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 5.941e-06/10.74, allocations: 4 kB / 4.403 GB, free: 45.91 MB / 0.6982 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004594/10.74, allocations: 423.4 kB / 4.403 GB, free: 45.49 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/10.74, allocations: 4 kB / 4.403 GB, free: 45.49 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.192e-06/10.74, allocations: 8 kB / 4.403 GB, free: 45.48 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003795/10.74, allocations: 120.5 kB / 4.404 GB, free: 45.36 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/10.74, allocations: 11.94 kB / 4.404 GB, free: 45.35 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005681/10.75, allocations: 71.69 kB / 4.404 GB, free: 45.28 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.501e-05/10.75, allocations: 27.98 kB / 4.404 GB, free: 45.25 MB / 0.6982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse_p.T_start,pulse_p.T_start,$PRE.pulse_p.count,pulse_p.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 1 * 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.0001034/10.75, allocations: 128.7 kB / 4.404 GB, free: 45.12 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.614e-05/10.75, allocations: 98.78 kB / 4.404 GB, free: 45.02 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005765/10.75, allocations: 450.6 kB / 4.404 GB, free: 44.57 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/10.75, allocations: 4 kB / 4.404 GB, free: 44.57 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.94e-06/10.75, allocations: 0 / 4.404 GB, free: 44.57 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/10.75, allocations: 3.906 kB / 4.404 GB, free: 44.57 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001403/10.75, allocations: 1.278 MB / 4.406 GB, free: 43.22 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/10.75, allocations: 0 / 4.406 GB, free: 43.22 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002798/10.75, allocations: 80.05 kB / 4.406 GB, free: 43.14 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/10.75, allocations: 3.984 kB / 4.406 GB, free: 43.14 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.076e-05/10.75, allocations: 8 kB / 4.406 GB, free: 43.13 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/10.75, allocations: 4 kB / 4.406 GB, free: 43.13 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/10.75, allocations: 4 kB / 4.406 GB, free: 43.12 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004967/10.75, allocations: 0.6394 MB / 4.406 GB, free: 42.41 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002301/10.75, allocations: 219.8 kB / 4.406 GB, free: 42.17 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001195/10.75, allocations: 4 kB / 4.406 GB, free: 42.17 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004572/10.75, allocations: 51.8 kB / 4.406 GB, free: 42.12 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.494e-05/10.75, allocations: 31.95 kB / 4.407 GB, free: 42.09 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.962e-05/10.75, allocations: 8 kB / 4.407 GB, free: 42.08 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0006231/10.75, allocations: 0.6884 MB / 4.407 GB, free: 41.38 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.001092/10.75, allocations: 455.4 kB / 4.408 GB, free: 40.93 MB / 0.6982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,pulse_p.T_start,pulse_p.count) * Number of discrete states: 1 (pulse_p.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001088/10.75, allocations: 1.044 MB / 4.409 GB, free: 39.89 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.0007599/10.75, allocations: 0.7387 MB / 4.409 GB, free: 39.14 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/10.75, allocations: 0.9375 kB / 4.409 GB, free: 39.14 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0002051/10.75, allocations: 180.2 kB / 4.41 GB, free: 38.97 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001463/10.75, allocations: 375.4 kB / 4.41 GB, free: 38.6 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001955/10.76, allocations: 1.382 MB / 4.411 GB, free: 37.16 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005876/10.76, allocations: 1.271 MB / 4.412 GB, free: 35.87 MB / 0.6982 GB Notification: Performance of SimCode: time 5.11e-07/10.76, allocations: 0 / 4.412 GB, free: 35.87 MB / 0.6982 GB Notification: Performance of Templates: time 0.031/10.79, allocations: 21.22 MB / 4.433 GB, free: 14.8 MB / 0.6982 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.sim & ./BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe 2>&1)