Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: translateModel(BuildSysPro.IBPSA.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger") translateModel(BuildSysPro.IBPSA.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger") [: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/BuildSysPro 3.5.0/package.mo): time 0.7596/0.7596, allocations: 127.4 MB / 134.6 MB, free: 4.094 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001167/0.001167, allocations: 197.2 kB / 164.4 MB, free: 6.875 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.578/1.578, allocations: 205.1 MB / 399.1 MB, free: 6.082 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009827/0.0009828, allocations: 94.52 kB / 476.3 MB, free: 8.836 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 7.825e-06/7.845e-06, allocations: 4 kB / 0.546 GB, free: 42.75 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1863/0.1863, allocations: 76.74 MB / 0.6209 GB, free: 13.93 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.095/1.281, allocations: 369.2 MB / 0.9815 GB, free: 113.2 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002561/1.281, allocations: 96.19 kB / 0.9816 GB, free: 113.1 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.533/2.815, allocations: 397.6 MB / 1.37 GB, free: 132.5 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 0.0003175/2.815, allocations: 46.62 kB / 1.37 GB, free: 132.5 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 348 * Number of variables: 348 Notification: Performance of Generate backend data structure: time 0.006347/2.822, allocations: 1.849 MB / 1.372 GB, free: 131.8 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.165e-05/2.822, allocations: 10.75 kB / 1.372 GB, free: 131.8 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001622/2.823, allocations: 227.8 kB / 1.372 GB, free: 131.7 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006056/2.829, allocations: 2.3 MB / 1.374 GB, free: 131.4 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001038/2.83, allocations: 48.84 kB / 1.374 GB, free: 131.4 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006317/2.83, allocations: 88.22 kB / 1.374 GB, free: 131.4 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003502/2.834, allocations: 1.616 MB / 1.376 GB, free: 131.3 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003962/2.838, allocations: 1.649 MB / 1.378 GB, free: 131.2 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.361e-05/2.838, allocations: 6.25 kB / 1.378 GB, free: 131.2 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002532/2.838, allocations: 7.625 kB / 1.378 GB, free: 131.2 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.68e-05/2.838, allocations: 39.83 kB / 1.378 GB, free: 131.2 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01264/2.851, allocations: 7.396 MB / 1.385 GB, free: 128.4 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001664/2.852, allocations: 1.203 MB / 1.386 GB, free: 128.3 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007311/2.853, allocations: 0.5984 MB / 1.387 GB, free: 128.3 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005207/2.858, allocations: 3.366 MB / 1.39 GB, free: 126.6 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.279e-05/2.859, allocations: 39.38 kB / 1.39 GB, free: 126.5 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=81): time 2.875e-06/2.859, allocations: 3.844 kB / 1.39 GB, free: 126.5 MB / 0.6355 GB Notification: Performance of matching and sorting (n=81): time 0.002929/2.861, allocations: 1.14 MB / 1.391 GB, free: 126.4 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.951e-05/2.862, allocations: 65.97 kB / 1.391 GB, free: 126.4 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002523/2.864, allocations: 1.256 MB / 1.392 GB, free: 126.2 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 0.0001417/2.864, allocations: 25.7 kB / 1.392 GB, free: 126.2 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006619/2.865, allocations: 0.6118 MB / 1.393 GB, free: 125.8 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003509/2.865, allocations: 285.6 kB / 1.393 GB, free: 125.6 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000107/2.865, allocations: 0 / 1.393 GB, free: 125.6 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001695/2.866, allocations: 367.3 kB / 1.394 GB, free: 125.3 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001048/2.867, allocations: 0.6537 MB / 1.394 GB, free: 125.3 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001256/2.868, allocations: 1.005 MB / 1.395 GB, free: 124.9 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003206/2.871, allocations: 1.252 MB / 1.396 GB, free: 124.9 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.608e-05/2.871, allocations: 0 / 1.396 GB, free: 124.9 MB / 0.6355 GB Notification: Performance of matching and sorting (n=175) (initialization): time 0.005306/2.876, allocations: 2.218 MB / 1.399 GB, free: 124.8 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 0.001246/2.878, allocations: 3.745 MB / 1.402 GB, free: 120.9 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.071e-05/2.878, allocations: 12.34 kB / 1.402 GB, free: 120.9 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.35e-05/2.878, allocations: 18.59 kB / 1.402 GB, free: 120.9 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001465/2.879, allocations: 344.3 kB / 1.403 GB, free: 120.9 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-05/2.879, allocations: 26.91 kB / 1.403 GB, free: 120.9 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002218/2.882, allocations: 161.4 kB / 1.403 GB, free: 120.8 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002327/2.882, allocations: 65.03 kB / 1.403 GB, free: 120.8 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/2.882, allocations: 10.25 kB / 1.403 GB, free: 120.8 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004402/2.886, allocations: 2.04 MB / 1.405 GB, free: 120.8 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.983e-05/2.886, allocations: 11.84 kB / 1.405 GB, free: 120.8 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.257e-05/2.886, allocations: 18.38 kB / 1.405 GB, free: 120.8 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001266/2.888, allocations: 338.6 kB / 1.405 GB, free: 120.8 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.311e-05/2.888, allocations: 23.38 kB / 1.405 GB, free: 120.8 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001667/2.889, allocations: 123.5 kB / 1.405 GB, free: 120.7 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000197/2.89, allocations: 63.69 kB / 1.405 GB, free: 120.7 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (175): * Single equations (assignments): 175 * 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.0004441/2.89, allocations: 136.7 kB / 1.405 GB, free: 120.6 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006277/2.891, allocations: 134.3 kB / 1.406 GB, free: 120.5 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002841/2.893, allocations: 1.214 MB / 1.407 GB, free: 120.5 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.101e-05/2.894, allocations: 7.219 kB / 1.407 GB, free: 120.5 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.565e-06/2.894, allocations: 2.906 kB / 1.407 GB, free: 120.5 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001812/2.895, allocations: 1.293 MB / 1.408 GB, free: 120 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003083/2.898, allocations: 1.237 MB / 1.409 GB, free: 119.8 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.164e-06/2.898, allocations: 0 / 1.409 GB, free: 119.8 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008872/2.899, allocations: 159.8 kB / 1.409 GB, free: 119.8 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-05/2.899, allocations: 6.188 kB / 1.409 GB, free: 119.8 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.029e-05/2.9, allocations: 10.86 kB / 1.409 GB, free: 119.8 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.099e-05/2.9, allocations: 3.875 kB / 1.409 GB, free: 119.8 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.724e-06/2.9, allocations: 0 / 1.409 GB, free: 119.8 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004139/2.904, allocations: 1.815 MB / 1.411 GB, free: 119.6 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001575/2.905, allocations: 381.3 kB / 1.412 GB, free: 119.4 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007313/2.906, allocations: 3.594 kB / 1.412 GB, free: 119.4 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00133/2.907, allocations: 38.48 kB / 1.412 GB, free: 119.4 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.328e-05/2.908, allocations: 42.23 kB / 1.412 GB, free: 119.4 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.731e-05/2.908, allocations: 27.48 kB / 1.412 GB, free: 119.4 MB / 0.6355 GB Notification: Performance of sort global known variables: time 0.002684/2.91, allocations: 0.9706 MB / 1.413 GB, free: 119.3 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.004995/2.915, allocations: 0.9319 MB / 1.414 GB, free: 119.1 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (indTanHex.vol[1].dynBal.U,indTanHex.vol[2].dynBal.U,indTanHex.vol[3].dynBal.U,indTanHex.cap[1].T,indTanHex.cap[2].T,indTanHex.cap[3].T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (81): * Single equations (assignments): 81 * 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 Backend phase and start with SimCode phase: time 0.001424/2.917, allocations: 484.6 kB / 1.414 GB, free: 119 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.004165/2.921, allocations: 2.242 MB / 1.416 GB, free: 119 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 6.643e-06/2.921, allocations: 2.156 kB / 1.416 GB, free: 119 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0006868/2.922, allocations: 469.8 kB / 1.417 GB, free: 119 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003657/2.925, allocations: 0.5865 MB / 1.417 GB, free: 119 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007675/2.933, allocations: 2.974 MB / 1.42 GB, free: 118.4 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002572/2.936, allocations: 1.833 MB / 1.422 GB, free: 117.7 MB / 0.6355 GB Notification: Performance of SimCode: time 3.066e-06/2.936, allocations: 0 / 1.422 GB, free: 117.7 MB / 0.6355 GB Notification: Performance of Templates: time 0.05953/2.995, allocations: 34.58 MB / 1.456 GB, free: 116.2 MB / 0.6355 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.makefile (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.sim & ./BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe 2>&1)