Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.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/IBPSA 4.0.0-master/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) 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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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: "" <> buildModelFMU(IBPSA.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger",fmuType="me",version="2.0",platforms={"static"}) [: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.00126/0.00126, allocations: 189.6 kB / 7.803 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4689/0.4689, allocations: 90.85 MB / 99.07 MB, free: 14.96 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.295/1.295, allocations: 221.4 MB / 342.7 MB, free: 5.238 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009608/0.0009606, allocations: 99.23 kB / 415.5 MB, free: 9.867 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1966/0.1976, allocations: 78.45 MB / 494 MB, free: 11.5 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4062/0.6039, allocations: 72.3 MB / 0.553 GB, free: 44.8 MB / 410.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6727/1.277, allocations: 372.5 MB / 0.9168 GB, free: 15.79 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002261/1.277, allocations: 93.95 kB / 0.9169 GB, free: 15.74 MB / 0.6042 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 1.366/2.643, allocations: 424.6 MB / 1.332 GB, free: 87.61 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/2.643, allocations: 12 kB / 1.332 GB, free: 87.6 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001584/2.645, allocations: 229.4 kB / 1.332 GB, free: 87.38 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005479/2.65, allocations: 2.147 MB / 1.334 GB, free: 85.21 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.577e-05/2.65, allocations: 44 kB / 1.334 GB, free: 85.17 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005999/2.651, allocations: 95.84 kB / 1.334 GB, free: 85.07 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003646/2.655, allocations: 1.633 MB / 1.336 GB, free: 83.44 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004114/2.659, allocations: 1.679 MB / 1.337 GB, free: 81.7 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.953e-05/2.659, allocations: 4 kB / 1.337 GB, free: 81.7 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002971/2.659, allocations: 3.938 kB / 1.337 GB, free: 81.7 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.039e-05/2.659, allocations: 44 kB / 1.337 GB, free: 81.65 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01184/2.671, allocations: 7.185 MB / 1.344 GB, free: 74.28 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001666/2.673, allocations: 1.248 MB / 1.346 GB, free: 73.03 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007409/2.673, allocations: 0.6367 MB / 1.346 GB, free: 72.39 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005271/2.679, allocations: 3.446 MB / 1.35 GB, free: 68.66 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.617e-05/2.679, allocations: 43.28 kB / 1.35 GB, free: 68.61 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=86): time 3.898e-06/2.679, allocations: 0 / 1.35 GB, free: 68.61 MB / 0.6042 GB Notification: Performance of matching and sorting (n=86): time 0.002793/2.682, allocations: 1.172 MB / 1.351 GB, free: 67.42 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.083e-05/2.682, allocations: 68.12 kB / 1.351 GB, free: 67.34 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002089/2.684, allocations: 1.266 MB / 1.352 GB, free: 66.07 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0001705/2.684, allocations: 29.7 kB / 1.352 GB, free: 66.03 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005012/2.684, allocations: 0.5997 MB / 1.353 GB, free: 65.42 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002921/2.685, allocations: 291.7 kB / 1.353 GB, free: 65.13 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.532e-05/2.685, allocations: 0 / 1.353 GB, free: 65.13 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001139/2.685, allocations: 373.8 kB / 1.353 GB, free: 64.76 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008918/2.686, allocations: 0.6715 MB / 1.354 GB, free: 64.09 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001094/2.687, allocations: 0.9955 MB / 1.355 GB, free: 62.95 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003051/2.69, allocations: 1.263 MB / 1.356 GB, free: 61.69 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.958e-06/2.69, allocations: 0 / 1.356 GB, free: 61.69 MB / 0.6042 GB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004689/2.695, allocations: 2.23 MB / 1.358 GB, free: 59.45 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007239/2.696, allocations: 3.484 MB / 1.362 GB, free: 55.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.111e-05/2.696, allocations: 8 kB / 1.362 GB, free: 55.69 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.577e-05/2.696, allocations: 23.94 kB / 1.362 GB, free: 55.66 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001398/2.697, allocations: 339.5 kB / 1.362 GB, free: 55.33 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.154e-05/2.697, allocations: 27.8 kB / 1.362 GB, free: 55.31 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00158/2.699, allocations: 154.3 kB / 1.362 GB, free: 55.16 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001783/2.699, allocations: 59.98 kB / 1.362 GB, free: 55.1 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.049e-05/2.699, allocations: 4 kB / 1.362 GB, free: 55.09 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003966/2.703, allocations: 2.066 MB / 1.364 GB, free: 53.03 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.207e-05/2.703, allocations: 8 kB / 1.364 GB, free: 53.02 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.102e-05/2.703, allocations: 20 kB / 1.364 GB, free: 53 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001296/2.704, allocations: 335.5 kB / 1.365 GB, free: 52.67 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.926e-05/2.704, allocations: 20.44 kB / 1.365 GB, free: 52.65 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001441/2.706, allocations: 130.7 kB / 1.365 GB, free: 52.52 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001716/2.706, allocations: 60.06 kB / 1.365 GB, free: 52.46 MB / 0.6042 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.0003098/2.706, allocations: 144.1 kB / 1.365 GB, free: 52.32 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005245/2.707, allocations: 134.3 kB / 1.365 GB, free: 52.19 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002899/2.71, allocations: 1.313 MB / 1.366 GB, free: 50.87 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.746e-05/2.71, allocations: 12 kB / 1.366 GB, free: 50.86 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.308e-06/2.71, allocations: 0 / 1.366 GB, free: 50.86 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001873/2.712, allocations: 1.367 MB / 1.368 GB, free: 49.4 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005341/2.717, allocations: 2.807 MB / 1.37 GB, free: 46.56 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/2.717, allocations: 0 / 1.37 GB, free: 46.56 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008382/2.718, allocations: 179.8 kB / 1.371 GB, free: 46.38 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.837e-05/2.718, allocations: 4 kB / 1.371 GB, free: 46.38 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.312e-05/2.718, allocations: 11.81 kB / 1.371 GB, free: 46.37 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.594e-06/2.718, allocations: 7.984 kB / 1.371 GB, free: 46.36 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/2.718, allocations: 96 / 1.371 GB, free: 46.36 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003029/2.721, allocations: 2.016 MB / 1.373 GB, free: 44.31 MB / 0.6042 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003804/2.725, allocations: 3.092 MB / 1.376 GB, free: 41.18 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001023/2.726, allocations: 395 kB / 1.376 GB, free: 40.77 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005022/2.726, allocations: 7.984 kB / 1.376 GB, free: 40.77 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001109/2.727, allocations: 35.81 kB / 1.376 GB, free: 40.73 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.233e-05/2.728, allocations: 56.64 kB / 1.376 GB, free: 40.68 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.668e-05/2.728, allocations: 27.98 kB / 1.376 GB, free: 40.65 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.001622/2.729, allocations: 0.981 MB / 1.377 GB, free: 39.66 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.005338/2.735, allocations: 1.059 MB / 1.378 GB, free: 38.61 MB / 0.6042 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.001181/2.736, allocations: 499.9 kB / 1.379 GB, free: 38.14 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.003438/2.739, allocations: 2.306 MB / 1.381 GB, free: 35.84 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/2.739, allocations: 4 kB / 1.381 GB, free: 35.84 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0006038/2.74, allocations: 0.4948 MB / 1.381 GB, free: 35.34 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003194/2.743, allocations: 0.5983 MB / 1.382 GB, free: 34.75 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006195/2.749, allocations: 3.07 MB / 1.385 GB, free: 31.64 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002083/2.751, allocations: 1.874 MB / 1.387 GB, free: 29.73 MB / 0.6042 GB Notification: Performance of SimCode: time 9.52e-07/2.751, allocations: 0 / 1.387 GB, free: 29.73 MB / 0.6042 GB (rm -f IBPSA_latest_IBPSA.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger.fmu > IBPSA_latest_IBPSA.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe 2>&1)