Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.conf.json 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 Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation,fileNamePrefix="Buildings_7_0_0_Buildings_Experimental_DistrictHeatingCooling_SubStations_Validation_HeatingSubstation",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 7.0.1/package.mo): time 2.134/2.134, allocations: 248.6 MB / 255.9 MB, free: 7.219 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001643/0.001643, allocations: 181.2 kB / 315.1 MB, free: 4.309 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.878/1.878, allocations: 205.1 MB / 0.5658 GB, free: 344 kB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001293/0.001293, allocations: 86.52 kB / 0.67 GB, free: 5.551 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.4985/0.4999, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2379/0.7378, allocations: 106.3 MB / 0.8835 GB, free: 13.39 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.552/2.289, allocations: 435.5 MB / 1.309 GB, free: 239.1 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000564/2.29, allocations: 93.25 kB / 1.309 GB, free: 239.1 MB / 0.8542 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 206 * Number of variables: 206 Notification: Performance of Generate backend data structure: time 3.324/5.614, allocations: 0.6765 GB / 1.985 GB, free: 167.8 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/5.614, allocations: 7.688 kB / 1.985 GB, free: 167.8 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004231/5.618, allocations: 373.5 kB / 1.986 GB, free: 167.7 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03739/5.656, allocations: 8.426 MB / 1.994 GB, free: 167.1 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001019/5.656, allocations: 30.59 kB / 1.994 GB, free: 167.1 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003441/5.656, allocations: 54.16 kB / 1.994 GB, free: 167.1 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002242/5.658, allocations: 0.6213 MB / 1.995 GB, free: 167.1 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002404/5.661, allocations: 0.8545 MB / 1.995 GB, free: 166.9 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.257e-05/5.661, allocations: 6.25 kB / 1.995 GB, free: 166.9 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001565/5.661, allocations: 0 / 1.995 GB, free: 166.9 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.244e-05/5.661, allocations: 20.38 kB / 1.995 GB, free: 166.9 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01065/5.672, allocations: 4.709 MB / 2 GB, free: 164.6 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001248/5.673, allocations: 446.5 kB / 2.001 GB, free: 164.6 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005785/5.674, allocations: 236.8 kB / 2.001 GB, free: 164.6 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003787/5.677, allocations: 1.657 MB / 2.002 GB, free: 163.5 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007414/5.678, allocations: 351.2 kB / 2.003 GB, free: 163.4 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=47): time 4.008e-06/5.678, allocations: 3.5 kB / 2.003 GB, free: 163.4 MB / 0.8698 GB Notification: Performance of matching and sorting (n=47): time 0.0032/5.681, allocations: 0.6879 MB / 2.003 GB, free: 163.3 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.396e-05/5.682, allocations: 113.4 kB / 2.003 GB, free: 163.2 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002375/5.684, allocations: 0.9685 MB / 2.004 GB, free: 163 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0002271/5.684, allocations: 29.48 kB / 2.004 GB, free: 163 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004685/5.685, allocations: 438.4 kB / 2.005 GB, free: 162.8 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002497/5.685, allocations: 152.1 kB / 2.005 GB, free: 162.7 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.723e-05/5.685, allocations: 0 / 2.005 GB, free: 162.7 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 8.957e-05/5.685, allocations: 330.5 kB / 2.005 GB, free: 162.4 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006054/5.686, allocations: 211.1 kB / 2.006 GB, free: 162.4 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007245/5.686, allocations: 489.8 kB / 2.006 GB, free: 162 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001711/5.688, allocations: 353.1 kB / 2.006 GB, free: 162 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.427e-06/5.688, allocations: 0 / 2.006 GB, free: 162 MB / 0.8698 GB Notification: Performance of matching and sorting (n=80) (initialization): time 0.003406/5.692, allocations: 0.8752 MB / 2.007 GB, free: 161.9 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005985/5.692, allocations: 2.736 MB / 2.01 GB, free: 159.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.336e-05/5.692, allocations: 9.953 kB / 2.01 GB, free: 159.1 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004678/5.693, allocations: 82 kB / 2.01 GB, free: 159.1 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001384/5.694, allocations: 159.6 kB / 2.01 GB, free: 159.1 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001003/5.695, allocations: 1.139 MB / 2.011 GB, free: 158 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001914/5.697, allocations: 110 kB / 2.011 GB, free: 158 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001796/5.697, allocations: 49.52 kB / 2.011 GB, free: 158 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.385e-05/5.697, allocations: 3.656 kB / 2.011 GB, free: 158 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002789/5.7, allocations: 0.6734 MB / 2.012 GB, free: 158 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.394e-05/5.7, allocations: 7.156 kB / 2.012 GB, free: 158 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003402/5.701, allocations: 75.67 kB / 2.012 GB, free: 158 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001158/5.702, allocations: 153.9 kB / 2.012 GB, free: 158 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001023/5.703, allocations: 1.156 MB / 2.013 GB, free: 156.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001659/5.705, allocations: 102.1 kB / 2.013 GB, free: 156.9 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001428/5.705, allocations: 43.84 kB / 2.014 GB, free: 156.9 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,QHea.a,QHea.b,QHea.last,$PRE.QHea.nextEvent,QHea.nextEvent,QHea.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 66 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0003422/5.705, allocations: 170.6 kB / 2.014 GB, free: 156.8 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000397/5.706, allocations: 128 kB / 2.014 GB, free: 156.7 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003442/5.709, allocations: 0.8873 MB / 2.015 GB, free: 156.6 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.689e-05/5.709, allocations: 3.875 kB / 2.015 GB, free: 156.6 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.028e-05/5.709, allocations: 7.375 kB / 2.015 GB, free: 156.6 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.187e-05/5.709, allocations: 3.656 kB / 2.015 GB, free: 156.6 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005287/5.714, allocations: 1.824 MB / 2.016 GB, free: 156.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.997e-06/5.714, allocations: 0 / 2.016 GB, free: 156.2 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009845/5.715, allocations: 112.3 kB / 2.017 GB, free: 156.2 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003326/5.716, allocations: 65.34 kB / 2.017 GB, free: 156.2 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.377e-05/5.716, allocations: 16.75 kB / 2.017 GB, free: 156.2 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009808/5.717, allocations: 1.149 MB / 2.018 GB, free: 155.1 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.232e-06/5.717, allocations: 3.469 kB / 2.018 GB, free: 155.1 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00275/5.72, allocations: 0.9834 MB / 2.019 GB, free: 154.7 MB / 0.8698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003046/5.723, allocations: 1.441 MB / 2.02 GB, free: 153.9 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001031/5.724, allocations: 310.8 kB / 2.02 GB, free: 153.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003297/5.724, allocations: 6.984 kB / 2.02 GB, free: 153.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001692/5.726, allocations: 78 kB / 2.021 GB, free: 153.7 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001465/5.726, allocations: 35.06 kB / 2.021 GB, free: 153.7 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001559/5.726, allocations: 34.92 kB / 2.021 GB, free: 153.7 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.001646/5.728, allocations: 0.7428 MB / 2.021 GB, free: 153.6 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.006306/5.734, allocations: 0.9703 MB / 2.022 GB, free: 153.5 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,QHea.a,QHea.b,QHea.last,QHea.nextEvent,QHea.nextEventScaled) * Number of discrete states: 6 (QHea.nextEvent,QHea.last,QHea.nextEventScaled,QHea.b,QHea.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.002422/5.737, allocations: 0.9697 MB / 2.023 GB, free: 153.2 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.002924/5.74, allocations: 0.9984 MB / 2.024 GB, free: 153.2 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 7.885e-06/5.74, allocations: 3.844 kB / 2.024 GB, free: 153.2 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0009321/5.741, allocations: 343.3 kB / 2.025 GB, free: 153.1 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004992/5.746, allocations: 0.5138 MB / 2.025 GB, free: 153.1 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006113/5.752, allocations: 1.676 MB / 2.027 GB, free: 152.6 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001583/5.754, allocations: 1.348 MB / 2.028 GB, free: 151.9 MB / 0.8698 GB Notification: Performance of SimCode: time 1.233e-06/5.754, allocations: 0 / 2.028 GB, free: 151.9 MB / 0.8698 GB