Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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) 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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,fileNamePrefix="Buildings_latest_Buildings_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/Buildings 10.0.0-master/package.mo): time 2.09/2.09, allocations: 390.4 MB / 397.7 MB, free: 10.67 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001093/0.001093, allocations: 182.9 kB / 490.8 MB, free: 11.22 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.271/1.271, allocations: 221.4 MB / 0.7863 GB, free: 13.61 MB / 0.5886 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009203/0.0009204, allocations: 105.8 kB / 0.9264 GB, free: 20.94 MB / 0.6042 GB Notification: Performance of FrontEnd - loaded program: time 0.2937/0.2947, allocations: 149.1 MB / 1.072 GB, free: 15.93 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7221/1.017, allocations: 143 MB / 1.212 GB, free: 53.27 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9581/1.975, allocations: 421.1 MB / 1.623 GB, free: 79.18 MB / 0.9636 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002968/1.975, allocations: 87.02 kB / 1.623 GB, free: 79.13 MB / 0.9636 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.522/3.497, allocations: 424.6 MB / 2.038 GB, free: 311 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.123e-05/3.497, allocations: 8 kB / 2.038 GB, free: 311 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001285/3.498, allocations: 232.9 kB / 2.038 GB, free: 310.8 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004544/3.503, allocations: 2.144 MB / 2.04 GB, free: 308.6 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.981e-05/3.503, allocations: 44 kB / 2.04 GB, free: 308.6 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002243/3.503, allocations: 88 kB / 2.04 GB, free: 308.5 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002458/3.506, allocations: 1.63 MB / 2.042 GB, free: 306.9 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002375/3.508, allocations: 1.695 MB / 2.043 GB, free: 305.1 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.33e-05/3.508, allocations: 4 kB / 2.043 GB, free: 305.1 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001186/3.508, allocations: 0 / 2.043 GB, free: 305.1 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.195e-05/3.508, allocations: 43.64 kB / 2.043 GB, free: 305.1 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009624/3.518, allocations: 7.2 MB / 2.05 GB, free: 297.7 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001392/3.519, allocations: 1.242 MB / 2.052 GB, free: 296.5 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006617/3.52, allocations: 0.6289 MB / 2.052 GB, free: 295.9 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004262/3.524, allocations: 3.439 MB / 2.056 GB, free: 292.1 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.62e-05/3.524, allocations: 46.56 kB / 2.056 GB, free: 292.1 MB / 1.151 GB Notification: Performance of pre-optimization done (n=86): time 2.715e-06/3.524, allocations: 0 / 2.056 GB, free: 292.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=86): time 0.002422/3.527, allocations: 1.172 MB / 2.057 GB, free: 290.9 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.631e-05/3.527, allocations: 60.27 kB / 2.057 GB, free: 290.8 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001572/3.528, allocations: 1.266 MB / 2.058 GB, free: 289.6 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 8.65e-05/3.529, allocations: 25.7 kB / 2.058 GB, free: 289.5 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004203/3.529, allocations: 0.6032 MB / 2.059 GB, free: 288.9 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002602/3.529, allocations: 303.5 kB / 2.059 GB, free: 288.6 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.097e-05/3.529, allocations: 0 / 2.059 GB, free: 288.6 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001356/3.529, allocations: 365.9 kB / 2.059 GB, free: 288.3 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008216/3.53, allocations: 0.6676 MB / 2.06 GB, free: 287.6 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009483/3.531, allocations: 1.001 MB / 2.061 GB, free: 286.5 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002694/3.534, allocations: 1.258 MB / 2.062 GB, free: 285.2 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.278e-06/3.534, allocations: 4 kB / 2.062 GB, free: 285.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004177/3.538, allocations: 2.231 MB / 2.064 GB, free: 283 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008747/3.539, allocations: 3.481 MB / 2.068 GB, free: 279.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.82e-05/3.539, allocations: 8 kB / 2.068 GB, free: 279.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.136e-05/3.539, allocations: 19.98 kB / 2.068 GB, free: 279.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001311/3.54, allocations: 335.5 kB / 2.068 GB, free: 278.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.85e-05/3.54, allocations: 23.92 kB / 2.068 GB, free: 278.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001502/3.542, allocations: 157.4 kB / 2.068 GB, free: 278.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001421/3.542, allocations: 66.89 kB / 2.068 GB, free: 278.7 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 9.778e-06/3.542, allocations: 4 kB / 2.068 GB, free: 278.7 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003763/3.546, allocations: 2.058 MB / 2.07 GB, free: 276.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.089e-05/3.546, allocations: 15.91 kB / 2.07 GB, free: 276.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.759e-05/3.546, allocations: 16 kB / 2.07 GB, free: 276.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001216/3.547, allocations: 347.4 kB / 2.071 GB, free: 276.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.332e-05/3.547, allocations: 15.98 kB / 2.071 GB, free: 276.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001284/3.549, allocations: 128.9 kB / 2.071 GB, free: 276.1 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001567/3.549, allocations: 59.98 kB / 2.071 GB, free: 276.1 MB / 1.151 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.0002917/3.549, allocations: 148.2 kB / 2.071 GB, free: 275.9 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002803/3.549, allocations: 130.4 kB / 2.071 GB, free: 275.8 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002484/3.552, allocations: 1.314 MB / 2.073 GB, free: 274.4 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-05/3.552, allocations: 11.98 kB / 2.073 GB, free: 274.4 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/3.552, allocations: 0 / 2.073 GB, free: 274.4 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001767/3.554, allocations: 1.371 MB / 2.074 GB, free: 273 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004506/3.558, allocations: 2.81 MB / 2.077 GB, free: 270.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/3.558, allocations: 0 / 2.077 GB, free: 270.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008127/3.559, allocations: 167.8 kB / 2.077 GB, free: 270 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.064e-05/3.559, allocations: 11.59 kB / 2.077 GB, free: 270 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.829e-05/3.559, allocations: 11.98 kB / 2.077 GB, free: 270 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.282e-06/3.559, allocations: 7.938 kB / 2.077 GB, free: 270 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.282e-06/3.559, allocations: 7.844 kB / 2.077 GB, free: 269.9 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002628/3.562, allocations: 2.008 MB / 2.079 GB, free: 267.9 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003501/3.565, allocations: 3.099 MB / 2.082 GB, free: 264.8 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00078/3.566, allocations: 391.1 kB / 2.082 GB, free: 264.4 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002141/3.566, allocations: 19.23 kB / 2.082 GB, free: 264.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007555/3.567, allocations: 31.88 kB / 2.082 GB, free: 264.3 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.902e-05/3.567, allocations: 47.7 kB / 2.082 GB, free: 264.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.961e-05/3.567, allocations: 39.97 kB / 2.082 GB, free: 264.2 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.001257/3.568, allocations: 0.9693 MB / 2.083 GB, free: 263.3 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.004322/3.573, allocations: 1.06 MB / 2.084 GB, free: 262.2 MB / 1.151 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.00108/3.574, allocations: 496.2 kB / 2.085 GB, free: 261.8 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002918/3.577, allocations: 2.312 MB / 2.087 GB, free: 259.5 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/3.577, allocations: 3.938 kB / 2.087 GB, free: 259.5 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.000521/3.577, allocations: 0.5064 MB / 2.088 GB, free: 259 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002637/3.58, allocations: 0.5901 MB / 2.088 GB, free: 258.4 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005034/3.585, allocations: 3.065 MB / 2.091 GB, free: 255.4 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001444/3.586, allocations: 1.866 MB / 2.093 GB, free: 253.5 MB / 1.151 GB Notification: Performance of SimCode: time 1.523e-06/3.586, allocations: 0 / 2.093 GB, free: 253.5 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger.fmu > Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe 2>&1)