Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Examples.Performance.Example2.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.Example2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Examples.Performance.Example2") translateModel(BuildingSystems.Fluid.Examples.Performance.Example2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Examples.Performance.Example2") [: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.738/0.738, allocations: 141.8 MB / 149.1 MB, free: 3.703 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.001159/0.001159, allocations: 182.1 kB / 181.9 MB, free: 15.46 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.356/1.356, allocations: 221.4 MB / 436 MB, free: 8.641 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.001014/0.001014, allocations: 91.53 kB / 0.507 GB, free: 24.31 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002283/0.002283, allocations: 268.8 kB / 0.5884 GB, free: 11.66 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 9.398e-06/9.548e-06, allocations: 0 / 0.6759 GB, free: 2.023 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4459/0.4459, allocations: 82.76 MB / 0.7567 GB, free: 112.2 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6402/1.086, allocations: 361.1 MB / 1.109 GB, free: 0.9883 MB / 0.6357 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002366/1.086, allocations: 92.94 kB / 1.109 GB, free: 0.9414 MB / 0.6357 GB Notification: Performance of FrontEnd: time 1.764/2.851, allocations: 488.3 MB / 1.586 GB, free: 100.1 MB / 0.6982 GB Notification: Performance of Transformations before backend: time 0.0003102/2.851, allocations: 44.61 kB / 1.586 GB, free: 100.1 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: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.004923/2.856, allocations: 1.524 MB / 1.588 GB, free: 98.96 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 5.056e-05/2.856, allocations: 7.938 kB / 1.588 GB, free: 98.96 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001843/2.858, allocations: 239 kB / 1.588 GB, free: 98.85 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00628/2.864, allocations: 1.951 MB / 1.59 GB, free: 97.59 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.082e-05/2.864, allocations: 30.25 kB / 1.59 GB, free: 97.58 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003459/2.865, allocations: 53.72 kB / 1.59 GB, free: 97.58 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001691/2.866, allocations: 0.6236 MB / 1.591 GB, free: 97.3 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001668/2.868, allocations: 0.8271 MB / 1.591 GB, free: 96.77 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.062e-05/2.868, allocations: 3.938 kB / 1.591 GB, free: 96.77 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001049/2.868, allocations: 7.562 kB / 1.591 GB, free: 96.77 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.169e-05/2.868, allocations: 22.55 kB / 1.591 GB, free: 96.77 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006989/2.875, allocations: 4.57 MB / 1.596 GB, free: 92.9 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008325/2.876, allocations: 0.5393 MB / 1.596 GB, free: 92.65 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004395/2.877, allocations: 306.2 kB / 1.597 GB, free: 92.52 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003123/2.88, allocations: 1.743 MB / 1.598 GB, free: 91.01 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004018/2.88, allocations: 300.5 kB / 1.599 GB, free: 90.82 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=46): time 3.076e-06/2.88, allocations: 0 / 1.599 GB, free: 90.82 MB / 0.6982 GB Notification: Performance of matching and sorting (n=46): time 0.001999/2.882, allocations: 0.7261 MB / 1.599 GB, free: 90.46 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.38e-05/2.882, allocations: 60.97 kB / 1.6 GB, free: 90.4 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001734/2.884, allocations: 1.019 MB / 1.601 GB, free: 89.86 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 7.61e-05/2.884, allocations: 29.61 kB / 1.601 GB, free: 89.83 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003905/2.884, allocations: 423.3 kB / 1.601 GB, free: 89.48 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001666/2.885, allocations: 151.3 kB / 1.601 GB, free: 89.35 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.379e-05/2.885, allocations: 0 / 1.601 GB, free: 89.35 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 7.914e-05/2.885, allocations: 333.3 kB / 1.601 GB, free: 89.02 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003271/2.885, allocations: 220.7 kB / 1.602 GB, free: 88.93 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004576/2.886, allocations: 0.5583 MB / 1.602 GB, free: 88.37 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001006/2.887, allocations: 355.4 kB / 1.603 GB, free: 88.21 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.945e-06/2.887, allocations: 3.906 kB / 1.603 GB, free: 88.21 MB / 0.6982 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002183/2.889, allocations: 0.9516 MB / 1.603 GB, free: 87.75 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007292/2.889, allocations: 2.915 MB / 1.606 GB, free: 84.69 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.28e-05/2.89, allocations: 7.188 kB / 1.606 GB, free: 84.69 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003178/2.89, allocations: 128.9 kB / 1.606 GB, free: 84.64 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000675/2.891, allocations: 150.9 kB / 1.607 GB, free: 84.6 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007382/2.891, allocations: 0.8186 MB / 1.607 GB, free: 83.94 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001219/2.893, allocations: 101.2 kB / 1.607 GB, free: 83.89 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001085/2.893, allocations: 37.84 kB / 1.607 GB, free: 83.89 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 1.159e-05/2.893, allocations: 14.28 kB / 1.608 GB, free: 83.88 MB / 0.6982 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001656/2.894, allocations: 0.8011 MB / 1.608 GB, free: 83.46 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.842e-05/2.894, allocations: 7.75 kB / 1.608 GB, free: 83.46 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001823/2.895, allocations: 98.75 kB / 1.608 GB, free: 83.42 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005308/2.895, allocations: 142.9 kB / 1.609 GB, free: 83.39 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001793/2.897, allocations: 1.979 MB / 1.61 GB, free: 81.7 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001239/2.898, allocations: 82.86 kB / 1.611 GB, free: 81.66 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.4e-05/2.898, allocations: 42.61 kB / 1.611 GB, free: 81.65 MB / 0.6982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,from_dp.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 70 * Array equations: 1 * Algorithm blocks: 1 * 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 {5 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002406/2.899, allocations: 135.6 kB / 1.611 GB, free: 81.53 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002966/2.899, allocations: 127.6 kB / 1.611 GB, free: 81.46 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002142/2.901, allocations: 0.8665 MB / 1.612 GB, free: 81.03 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.259e-05/2.901, allocations: 10.69 kB / 1.612 GB, free: 81.02 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.224e-06/2.901, allocations: 0 / 1.612 GB, free: 81.02 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0013/2.902, allocations: 0.8317 MB / 1.612 GB, free: 80.42 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003318/2.906, allocations: 1.661 MB / 1.614 GB, free: 79.33 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.752e-06/2.906, allocations: 4.156 kB / 1.614 GB, free: 79.33 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005049/2.906, allocations: 89.12 kB / 1.614 GB, free: 79.3 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001942/2.906, allocations: 103.3 kB / 1.614 GB, free: 79.26 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.638e-05/2.906, allocations: 15.11 kB / 1.614 GB, free: 79.25 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005357/2.907, allocations: 0.7709 MB / 1.615 GB, free: 78.62 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/2.907, allocations: 0 / 1.615 GB, free: 78.62 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002164/2.909, allocations: 1.149 MB / 1.616 GB, free: 77.94 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007436/2.91, allocations: 269.7 kB / 1.616 GB, free: 77.71 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004318/2.91, allocations: 2.25 kB / 1.616 GB, free: 77.71 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009898/2.911, allocations: 58.47 kB / 1.617 GB, free: 77.69 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001175/2.912, allocations: 40.03 kB / 1.617 GB, free: 77.66 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.476e-05/2.912, allocations: 26.27 kB / 1.617 GB, free: 77.66 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.00175/2.913, allocations: 0.7765 MB / 1.617 GB, free: 77.24 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.003938/2.917, allocations: 0.6781 MB / 1.618 GB, free: 77.09 MB / 0.6982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (pump_dp.vol.dynBal.U) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 2 * 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 {5 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.002341/2.92, allocations: 0.7407 MB / 1.619 GB, free: 76.79 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.003097/2.923, allocations: 1.169 MB / 1.62 GB, free: 76.2 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/2.923, allocations: 3.938 kB / 1.62 GB, free: 76.19 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0007936/2.924, allocations: 301.2 kB / 1.62 GB, free: 76.07 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002953/2.927, allocations: 495.4 kB / 1.621 GB, free: 75.73 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004678/2.931, allocations: 1.723 MB / 1.622 GB, free: 73.96 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001426/2.933, allocations: 1.41 MB / 1.624 GB, free: 72.52 MB / 0.6982 GB Notification: Performance of SimCode: time 1.323e-06/2.933, allocations: 0 / 1.624 GB, free: 72.52 MB / 0.6982 GB Notification: Performance of Templates: time 0.04777/2.98, allocations: 27.94 MB / 1.651 GB, free: 45.31 MB / 0.6982 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Examples.Performance.Example2.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Examples.Performance.Example2.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Examples.Performance.Example2.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Examples.Performance.Example2.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Examples.Performance.Example2.sim & ./BuildingSystems_BuildingSystems.Fluid.Examples.Performance.Example2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Examples.Performance.Example2.pipe 2>&1)