Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation,fileNamePrefix="Buildings_9_Buildings_Obsolete_DistrictHeatingCooling_SubStations_Validation_HeatingSubstation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation,fileNamePrefix="Buildings_9_Buildings_Obsolete_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 9.1.1-maint.9.1.x/package.mo): time 1.898/1.898, allocations: 387.2 MB / 394.5 MB, free: 13.35 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.00124/0.00124, allocations: 184.1 kB / 487 MB, free: 0.7578 MB / 378.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.24/1.24, allocations: 221.3 MB / 0.7819 GB, free: 6.836 MB / 0.573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001117/0.001117, allocations: 102.2 kB / 0.9213 GB, free: 43.66 MB / 0.6198 GB Notification: Performance of FrontEnd - loaded program: time 0.2809/0.2821, allocations: 148.5 MB / 1.066 GB, free: 7.453 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6756/0.9577, allocations: 142.3 MB / 1.205 GB, free: 72.62 MB / 0.7917 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9053/1.863, allocations: 440.6 MB / 1.636 GB, free: 166.4 MB / 1.01 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002537/1.863, allocations: 93.62 kB / 1.636 GB, free: 166.4 MB / 1.01 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 1.785/3.648, allocations: 0.7064 GB / 2.342 GB, free: 54.13 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.831e-05/3.649, allocations: 8 kB / 2.342 GB, free: 54.12 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002135/3.651, allocations: 469.5 kB / 2.343 GB, free: 53.66 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01819/3.669, allocations: 8.785 MB / 2.351 GB, free: 44.76 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.142e-05/3.669, allocations: 31.94 kB / 2.351 GB, free: 44.73 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001294/3.669, allocations: 52 kB / 2.351 GB, free: 44.68 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001203/3.67, allocations: 0.6366 MB / 2.352 GB, free: 44.04 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001242/3.672, allocations: 0.8594 MB / 2.353 GB, free: 43.13 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.367e-05/3.672, allocations: 3.938 kB / 2.353 GB, free: 43.12 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.852e-05/3.672, allocations: 4 kB / 2.353 GB, free: 43.12 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.281e-05/3.672, allocations: 29.98 kB / 2.353 GB, free: 43.09 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006253/3.678, allocations: 4.817 MB / 2.357 GB, free: 38.05 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007746/3.679, allocations: 460.3 kB / 2.358 GB, free: 37.59 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003599/3.679, allocations: 245.7 kB / 2.358 GB, free: 37.35 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002161/3.681, allocations: 1.688 MB / 2.36 GB, free: 35.48 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004183/3.682, allocations: 365.7 kB / 2.36 GB, free: 35.1 MB / 1.151 GB Notification: Performance of pre-optimization done (n=47): time 3.316e-06/3.682, allocations: 0 / 2.36 GB, free: 35.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=47): time 0.001715/3.683, allocations: 0.6965 MB / 2.361 GB, free: 34.39 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.744e-05/3.684, allocations: 110.8 kB / 2.361 GB, free: 34.25 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001278/3.685, allocations: 0.9736 MB / 2.362 GB, free: 33.27 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 6.774e-05/3.685, allocations: 29.7 kB / 2.362 GB, free: 33.23 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003743/3.685, allocations: 440.4 kB / 2.362 GB, free: 32.8 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001477/3.685, allocations: 149.8 kB / 2.362 GB, free: 32.65 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.461e-05/3.685, allocations: 0 / 2.362 GB, free: 32.65 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001143/3.686, allocations: 334 kB / 2.363 GB, free: 32.32 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003075/3.686, allocations: 213.2 kB / 2.363 GB, free: 32.11 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004704/3.686, allocations: 488.3 kB / 2.363 GB, free: 31.5 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001092/3.688, allocations: 363.4 kB / 2.364 GB, free: 31.15 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/3.688, allocations: 4 kB / 2.364 GB, free: 31.14 MB / 1.151 GB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001836/3.689, allocations: 0.8779 MB / 2.365 GB, free: 30.25 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008928/3.69, allocations: 2.742 MB / 2.367 GB, free: 27.34 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.532e-05/3.69, allocations: 4 kB / 2.367 GB, free: 27.34 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003408/3.691, allocations: 85.7 kB / 2.367 GB, free: 27.25 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007474/3.691, allocations: 171.8 kB / 2.368 GB, free: 27.08 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008323/3.692, allocations: 1.144 MB / 2.369 GB, free: 25.88 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001139/3.693, allocations: 123.4 kB / 2.369 GB, free: 25.76 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001095/3.694, allocations: 39.98 kB / 2.369 GB, free: 25.72 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 9.788e-06/3.694, allocations: 4 kB / 2.369 GB, free: 25.72 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001616/3.695, allocations: 0.6844 MB / 2.369 GB, free: 25.03 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.225e-06/3.695, allocations: 8 kB / 2.369 GB, free: 25.02 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001931/3.695, allocations: 77.69 kB / 2.37 GB, free: 24.94 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006489/3.696, allocations: 164.2 kB / 2.37 GB, free: 24.78 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007794/3.697, allocations: 1.148 MB / 2.371 GB, free: 23.58 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009854/3.698, allocations: 115.5 kB / 2.371 GB, free: 23.46 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.73e-05/3.698, allocations: 43.98 kB / 2.371 GB, free: 23.42 MB / 1.151 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.0003158/3.698, allocations: 162.5 kB / 2.371 GB, free: 23.25 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000188/3.698, allocations: 126.4 kB / 2.371 GB, free: 23.12 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002375/3.701, allocations: 0.9012 MB / 2.372 GB, free: 22.21 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.73e-05/3.701, allocations: 11.91 kB / 2.372 GB, free: 22.2 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/3.701, allocations: 0 / 2.372 GB, free: 22.2 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.334e-05/3.701, allocations: 7.984 kB / 2.372 GB, free: 22.19 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003521/3.704, allocations: 1.848 MB / 2.374 GB, free: 20.27 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/3.704, allocations: 0 / 2.374 GB, free: 20.27 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006112/3.705, allocations: 120 kB / 2.374 GB, free: 20.16 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002051/3.705, allocations: 65.69 kB / 2.374 GB, free: 20.09 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.103e-05/3.705, allocations: 19.92 kB / 2.374 GB, free: 20.07 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000664/3.706, allocations: 1.14 MB / 2.375 GB, free: 18.88 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/3.706, allocations: 12 kB / 2.375 GB, free: 18.86 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001414/3.707, allocations: 1.005 MB / 2.376 GB, free: 17.78 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001643/3.709, allocations: 1.443 MB / 2.378 GB, free: 16.25 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004956/3.71, allocations: 307.7 kB / 2.378 GB, free: 15.93 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001785/3.71, allocations: 11.91 kB / 2.378 GB, free: 15.92 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008832/3.711, allocations: 87.91 kB / 2.378 GB, free: 15.83 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001136/3.711, allocations: 35.91 kB / 2.378 GB, free: 15.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.146e-05/3.711, allocations: 31.97 kB / 2.378 GB, free: 15.77 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0009543/3.712, allocations: 0.7448 MB / 2.379 GB, free: 15.02 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.00401/3.716, allocations: 0.9982 MB / 2.38 GB, free: 14.02 MB / 1.151 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.001629/3.718, allocations: 0.9738 MB / 2.381 GB, free: 13.05 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001633/3.719, allocations: 1.018 MB / 2.382 GB, free: 12.02 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/3.719, allocations: 4 kB / 2.382 GB, free: 12.02 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0004719/3.72, allocations: 350.6 kB / 2.382 GB, free: 11.67 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002039/3.722, allocations: 0.5022 MB / 2.383 GB, free: 11.17 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00332/3.725, allocations: 1.703 MB / 2.384 GB, free: 9.41 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008389/3.726, allocations: 1.348 MB / 2.386 GB, free: 8.027 MB / 1.151 GB Notification: Performance of SimCode: time 6.01e-07/3.726, allocations: 4 kB / 2.386 GB, free: 8.023 MB / 1.151 GB (rm -f Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.pipe ; mkfifo Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.pipe ; head -c 1048576 < Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.pipe >> ../files/Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation_res.mat --tempDir=temp_Buildings_9_Buildings_Obsolete_DistrictHeatingCooling_SubStations_Validation_HeatingSubstation_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Obsolete_DistrictHeatingCooling_SubStations_Validation_HeatingSubstation.fmu > Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.pipe 2>&1)