Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.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.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger") translateModel(BuildingSystems.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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/BuildingSystems 2.0.0-master/package.mo): time 0.7847/0.7847, allocations: 141.8 MB / 149.1 MB, free: 4.457 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.001104/0.001104, allocations: 180.1 kB / 181.9 MB, free: 132 kB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.476/1.476, allocations: 221.3 MB / 436 MB, free: 9.328 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.001032/0.001031, allocations: 96.41 kB / 0.507 GB, free: 24.17 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001978/0.001978, allocations: 284.6 kB / 0.5884 GB, free: 12.29 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 1.077e-05/1.079e-05, allocations: 4 kB / 0.6759 GB, free: 2.664 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5511/0.5511, allocations: 82.75 MB / 0.7567 GB, free: 112.9 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7996/1.351, allocations: 379.6 MB / 1.127 GB, free: 3.332 MB / 0.6513 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002773/1.351, allocations: 95.19 kB / 1.127 GB, free: 3.285 MB / 0.6513 GB Notification: Performance of FrontEnd: time 1.687/3.039, allocations: 419 MB / 1.537 GB, free: 137.7 MB / 0.6982 GB Notification: Performance of Transformations before backend: time 0.0002656/3.039, allocations: 52.3 kB / 1.537 GB, free: 137.7 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: 348 * Number of variables: 348 Notification: Performance of Generate backend data structure: time 0.005681/3.045, allocations: 1.859 MB / 1.538 GB, free: 136.8 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/3.045, allocations: 7.844 kB / 1.538 GB, free: 136.8 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001439/3.046, allocations: 225.1 kB / 1.539 GB, free: 136.7 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004981/3.051, allocations: 2.093 MB / 1.541 GB, free: 136.3 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.312e-05/3.051, allocations: 47.28 kB / 1.541 GB, free: 136.3 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004667/3.052, allocations: 89.94 kB / 1.541 GB, free: 136.3 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002832/3.055, allocations: 1.633 MB / 1.542 GB, free: 136.3 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002569/3.057, allocations: 1.681 MB / 1.544 GB, free: 136.1 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.118e-05/3.057, allocations: 7.812 kB / 1.544 GB, free: 136.1 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001131/3.057, allocations: 3.938 kB / 1.544 GB, free: 136.1 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.119e-05/3.057, allocations: 46.83 kB / 1.544 GB, free: 136.1 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009386/3.067, allocations: 7.188 MB / 1.551 GB, free: 133.4 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001768/3.069, allocations: 1.25 MB / 1.552 GB, free: 133.4 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008299/3.069, allocations: 0.6252 MB / 1.553 GB, free: 133.4 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005582/3.075, allocations: 3.453 MB / 1.556 GB, free: 131.6 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.605e-05/3.075, allocations: 46.06 kB / 1.556 GB, free: 131.6 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=86): time 2.836e-06/3.075, allocations: 0 / 1.556 GB, free: 131.6 MB / 0.6982 GB Notification: Performance of matching and sorting (n=86): time 0.00283/3.078, allocations: 1.168 MB / 1.558 GB, free: 131.5 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.114e-05/3.078, allocations: 63.47 kB / 1.558 GB, free: 131.4 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002226/3.08, allocations: 1.253 MB / 1.559 GB, free: 131.2 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 0.0001153/3.08, allocations: 25.7 kB / 1.559 GB, free: 131.2 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004834/3.081, allocations: 0.6006 MB / 1.559 GB, free: 130.8 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002967/3.081, allocations: 294.2 kB / 1.56 GB, free: 130.6 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.982e-05/3.081, allocations: 3.469 kB / 1.56 GB, free: 130.6 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 0.0001444/3.081, allocations: 366.4 kB / 1.56 GB, free: 130.3 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008738/3.082, allocations: 0.6685 MB / 1.561 GB, free: 130.3 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001102/3.083, allocations: 0.9986 MB / 1.562 GB, free: 130 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002947/3.086, allocations: 1.263 MB / 1.563 GB, free: 129.9 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-05/3.086, allocations: 3.906 kB / 1.563 GB, free: 129.9 MB / 0.6982 GB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004541/3.091, allocations: 2.226 MB / 1.565 GB, free: 129.3 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 0.000805/3.092, allocations: 3.485 MB / 1.569 GB, free: 125.6 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.663e-05/3.092, allocations: 11.31 kB / 1.569 GB, free: 125.6 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.596e-05/3.092, allocations: 16.69 kB / 1.569 GB, free: 125.6 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001332/3.093, allocations: 336 kB / 1.569 GB, free: 125.5 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.261e-05/3.093, allocations: 26.92 kB / 1.569 GB, free: 125.5 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001572/3.095, allocations: 154.6 kB / 1.569 GB, free: 125.5 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001811/3.095, allocations: 66.56 kB / 1.569 GB, free: 125.4 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 1.061e-05/3.095, allocations: 3.562 kB / 1.569 GB, free: 125.4 MB / 0.6982 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003909/3.099, allocations: 2.062 MB / 1.571 GB, free: 124.9 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.546e-05/3.099, allocations: 18.42 kB / 1.571 GB, free: 124.9 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.945e-05/3.099, allocations: 14.75 kB / 1.571 GB, free: 124.9 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001297/3.1, allocations: 330.5 kB / 1.571 GB, free: 124.8 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.099e-05/3.1, allocations: 23.17 kB / 1.572 GB, free: 124.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001603/3.102, allocations: 126.9 kB / 1.572 GB, free: 124.8 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001751/3.102, allocations: 62.59 kB / 1.572 GB, free: 124.8 MB / 0.6982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (176): * Single equations (assignments): 176 * 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.0003586/3.103, allocations: 143.7 kB / 1.572 GB, free: 124.6 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005537/3.103, allocations: 126.2 kB / 1.572 GB, free: 124.6 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002847/3.106, allocations: 1.324 MB / 1.573 GB, free: 124.1 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.394e-05/3.106, allocations: 7.781 kB / 1.573 GB, free: 124.1 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/3.106, allocations: 2.938 kB / 1.573 GB, free: 124.1 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002033/3.108, allocations: 1.364 MB / 1.575 GB, free: 123.4 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005627/3.114, allocations: 2.804 MB / 1.577 GB, free: 122.3 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.591e-06/3.114, allocations: 3.844 kB / 1.577 GB, free: 122.3 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007971/3.115, allocations: 174.6 kB / 1.577 GB, free: 122.3 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.377e-05/3.115, allocations: 4.594 kB / 1.577 GB, free: 122.3 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.38e-05/3.115, allocations: 14.67 kB / 1.578 GB, free: 122.3 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.601e-06/3.115, allocations: 3.391 kB / 1.578 GB, free: 122.3 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/3.115, allocations: 3.125 kB / 1.578 GB, free: 122.3 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003108/3.118, allocations: 2.01 MB / 1.579 GB, free: 121.5 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008549/3.119, allocations: 394.5 kB / 1.58 GB, free: 121.2 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003564/3.119, allocations: 9.672 kB / 1.58 GB, free: 121.2 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001083/3.12, allocations: 39.91 kB / 1.58 GB, free: 121.2 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001183/3.12, allocations: 46.14 kB / 1.58 GB, free: 121.2 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.786e-05/3.12, allocations: 34.02 kB / 1.58 GB, free: 121.2 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.001846/3.122, allocations: 0.9606 MB / 1.581 GB, free: 120.8 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.004607/3.127, allocations: 0.9478 MB / 1.582 GB, free: 120.6 MB / 0.6982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (88): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.001565/3.128, allocations: 490.1 kB / 1.582 GB, free: 120.5 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.004116/3.133, allocations: 2.309 MB / 1.585 GB, free: 119.5 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/3.133, allocations: 3.906 kB / 1.585 GB, free: 119.5 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0006292/3.133, allocations: 0.5071 MB / 1.585 GB, free: 119.3 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002954/3.136, allocations: 0.595 MB / 1.586 GB, free: 119 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007099/3.143, allocations: 3.049 MB / 1.589 GB, free: 117.6 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00226/3.146, allocations: 1.832 MB / 1.59 GB, free: 116.4 MB / 0.6982 GB Notification: Performance of SimCode: time 1.603e-06/3.146, allocations: 0 / 1.59 GB, free: 116.4 MB / 0.6982 GB Notification: Performance of Templates: time 0.05658/3.202, allocations: 35.07 MB / 1.625 GB, free: 86.84 MB / 0.6982 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.sim & ./BuildingSystems_BuildingSystems.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe 2>&1)