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: "" <> buildModelFMU(BuildingSystems.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,fileNamePrefix="BuildingSystems_BuildingSystems_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/BuildingSystems 2.0.0-master/package.mo): time 0.6965/0.6965, allocations: 141.8 MB / 149.1 MB, free: 12.46 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001107/0.001107, allocations: 182.2 kB / 182 MB, free: 9.188 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.231/1.231, allocations: 221.3 MB / 436 MB, free: 1.555 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.0009521/0.000952, allocations: 99.36 kB / 0.507 GB, free: 10.39 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001707/0.001708, allocations: 273.5 kB / 0.5885 GB, free: 7.23 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1658/0.1675, allocations: 89.64 MB / 0.676 GB, free: 13.5 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.343/0.5105, allocations: 82.77 MB / 0.7568 GB, free: 138.4 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5704/1.081, allocations: 379.6 MB / 1.127 GB, free: 7.535 MB / 0.6669 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000252/1.081, allocations: 99.86 kB / 1.128 GB, free: 7.484 MB / 0.6669 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.362/2.443, allocations: 420.9 MB / 1.539 GB, free: 167.1 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/2.443, allocations: 8 kB / 1.539 GB, free: 167.1 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001197/2.444, allocations: 229.5 kB / 1.539 GB, free: 166.8 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004513/2.449, allocations: 2.097 MB / 1.541 GB, free: 164.7 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.169e-05/2.449, allocations: 44 kB / 1.541 GB, free: 164.7 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000401/2.449, allocations: 88 kB / 1.541 GB, free: 164.6 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002636/2.452, allocations: 1.633 MB / 1.543 GB, free: 163 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002761/2.455, allocations: 1.687 MB / 1.544 GB, free: 161.2 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.96e-05/2.455, allocations: 7.312 kB / 1.544 GB, free: 161.2 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001567/2.455, allocations: 0 / 1.544 GB, free: 161.2 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-05/2.455, allocations: 36 kB / 1.544 GB, free: 161.2 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01022/2.465, allocations: 7.209 MB / 1.551 GB, free: 153.8 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001468/2.467, allocations: 1.242 MB / 1.553 GB, free: 152.6 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006649/2.467, allocations: 0.6205 MB / 1.553 GB, free: 152 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004398/2.472, allocations: 3.451 MB / 1.556 GB, free: 148.2 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.425e-05/2.472, allocations: 47.12 kB / 1.557 GB, free: 148.2 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=86): time 2.504e-06/2.472, allocations: 0 / 1.557 GB, free: 148.2 MB / 0.6982 GB Notification: Performance of matching and sorting (n=86): time 0.002316/2.474, allocations: 1.168 MB / 1.558 GB, free: 147 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.399e-05/2.474, allocations: 60.19 kB / 1.558 GB, free: 146.9 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001708/2.476, allocations: 1.257 MB / 1.559 GB, free: 145.7 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 0.0001/2.476, allocations: 32.61 kB / 1.559 GB, free: 145.7 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003513/2.476, allocations: 0.5997 MB / 1.56 GB, free: 145 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002395/2.477, allocations: 295.6 kB / 1.56 GB, free: 144.7 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.725e-05/2.477, allocations: 0 / 1.56 GB, free: 144.7 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 8.715e-05/2.477, allocations: 365.9 kB / 1.56 GB, free: 144.4 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007675/2.477, allocations: 0.6637 MB / 1.561 GB, free: 143.7 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009361/2.478, allocations: 1.001 MB / 1.562 GB, free: 142.6 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002681/2.481, allocations: 1.26 MB / 1.563 GB, free: 141.3 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.114e-05/2.481, allocations: 4 kB / 1.563 GB, free: 141.3 MB / 0.6982 GB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004261/2.485, allocations: 2.229 MB / 1.565 GB, free: 139.1 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006225/2.486, allocations: 3.49 MB / 1.569 GB, free: 135.4 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.968e-05/2.486, allocations: 8 kB / 1.569 GB, free: 135.4 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.797e-05/2.486, allocations: 16 kB / 1.569 GB, free: 135.4 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001289/2.487, allocations: 339.5 kB / 1.569 GB, free: 135 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.603e-05/2.487, allocations: 19.94 kB / 1.569 GB, free: 135 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001444/2.489, allocations: 161.6 kB / 1.569 GB, free: 134.9 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001493/2.489, allocations: 59.98 kB / 1.569 GB, free: 134.8 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 9.818e-06/2.489, allocations: 4 kB / 1.569 GB, free: 134.8 MB / 0.6982 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003793/2.493, allocations: 2.063 MB / 1.571 GB, free: 132.7 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.983e-05/2.493, allocations: 8 kB / 1.571 GB, free: 132.7 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.028e-05/2.493, allocations: 20 kB / 1.571 GB, free: 132.7 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001275/2.494, allocations: 338.8 kB / 1.572 GB, free: 132.4 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.759e-05/2.494, allocations: 19.94 kB / 1.572 GB, free: 132.4 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001379/2.496, allocations: 126.3 kB / 1.572 GB, free: 132.2 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001585/2.496, allocations: 63.98 kB / 1.572 GB, free: 132.2 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.0002792/2.496, allocations: 133.5 kB / 1.572 GB, free: 132 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004195/2.497, allocations: 138.3 kB / 1.572 GB, free: 131.9 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002621/2.499, allocations: 1.312 MB / 1.573 GB, free: 130.6 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.257e-05/2.499, allocations: 10.62 kB / 1.573 GB, free: 130.6 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/2.499, allocations: 0 / 1.573 GB, free: 130.6 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001771/2.501, allocations: 1.371 MB / 1.575 GB, free: 129.1 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005097/2.506, allocations: 2.806 MB / 1.577 GB, free: 126.3 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/2.506, allocations: 0 / 1.577 GB, free: 126.3 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008103/2.507, allocations: 175.8 kB / 1.578 GB, free: 126.1 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.492e-05/2.507, allocations: 4 kB / 1.578 GB, free: 126.1 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.816e-05/2.507, allocations: 19.8 kB / 1.578 GB, free: 126.1 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.115e-06/2.507, allocations: 11.22 kB / 1.578 GB, free: 126.1 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.377e-06/2.507, allocations: 3.938 kB / 1.578 GB, free: 126.1 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00278/2.51, allocations: 2.004 MB / 1.58 GB, free: 124.1 MB / 0.6982 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003493/2.513, allocations: 3.091 MB / 1.583 GB, free: 120.9 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009004/2.514, allocations: 391.1 kB / 1.583 GB, free: 120.5 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003853/2.515, allocations: 11.98 kB / 1.583 GB, free: 120.5 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009983/2.516, allocations: 39.16 kB / 1.583 GB, free: 120.5 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.42e-05/2.516, allocations: 44.7 kB / 1.583 GB, free: 120.4 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.733e-05/2.516, allocations: 39.52 kB / 1.583 GB, free: 120.4 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.001413/2.517, allocations: 0.9568 MB / 1.584 GB, free: 119.4 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.004627/2.522, allocations: 1.056 MB / 1.585 GB, free: 118.4 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.001115/2.523, allocations: 0.4884 MB / 1.586 GB, free: 118 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.003061/2.526, allocations: 2.311 MB / 1.588 GB, free: 115.7 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/2.526, allocations: 0 / 1.588 GB, free: 115.7 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0005882/2.527, allocations: 0.4987 MB / 1.588 GB, free: 115.2 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002893/2.53, allocations: 0.594 MB / 1.589 GB, free: 114.6 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006006/2.536, allocations: 3.044 MB / 1.592 GB, free: 111.7 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002035/2.538, allocations: 1.855 MB / 1.594 GB, free: 109.8 MB / 0.6982 GB Notification: Performance of SimCode: time 8.31e-07/2.538, allocations: 0 / 1.594 GB, free: 109.8 MB / 0.6982 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger.fmu > BuildingSystems_BuildingSystems.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe 2>&1)