Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Obsolete_DistrictHeatingCooling_SubStations_Validation_HeatingSubstation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation,fileNamePrefix="Buildings_maint_8_0_x_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 8.0.1-maint.8.0.x/package.mo): time 1.39/1.39, allocations: 285.5 MB / 292.8 MB, free: 10.5 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009621/0.000962, allocations: 167.3 kB / 361.1 MB, free: 7.133 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.165/1.165, allocations: 205.1 MB / 0.6195 GB, free: 10.36 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008996/0.0008997, allocations: 98.22 kB / 0.7326 GB, free: 44.3 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2321/0.233, allocations: 121.4 MB / 0.8511 GB, free: 2.965 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5746/0.8076, allocations: 115.3 MB / 0.9638 GB, free: 78.26 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.859/1.667, allocations: 442.3 MB / 1.396 GB, free: 122.1 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002789/1.667, allocations: 84.83 kB / 1.396 GB, free: 122.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 2.123/3.79, allocations: 0.6953 GB / 2.091 GB, free: 190.4 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/3.79, allocations: 8 kB / 2.091 GB, free: 190.4 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00179/3.792, allocations: 370.1 kB / 2.092 GB, free: 190.4 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01826/3.81, allocations: 8.582 MB / 2.1 GB, free: 189.8 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.577e-05/3.81, allocations: 34.28 kB / 2.1 GB, free: 189.8 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002712/3.811, allocations: 49.62 kB / 2.1 GB, free: 189.8 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001385/3.812, allocations: 0.6239 MB / 2.101 GB, free: 189.8 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001436/3.813, allocations: 0.8521 MB / 2.101 GB, free: 189.6 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.286e-05/3.813, allocations: 3.938 kB / 2.101 GB, free: 189.6 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.722e-05/3.814, allocations: 3.281 kB / 2.101 GB, free: 189.6 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.682e-05/3.814, allocations: 17.75 kB / 2.101 GB, free: 189.6 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006016/3.82, allocations: 4.772 MB / 2.106 GB, free: 187.3 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006526/3.82, allocations: 444.3 kB / 2.107 GB, free: 187.3 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002946/3.821, allocations: 243.2 kB / 2.107 GB, free: 187.3 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002091/3.823, allocations: 1.647 MB / 2.108 GB, free: 186.2 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004058/3.823, allocations: 361.8 kB / 2.109 GB, free: 186.1 MB / 0.948 GB Notification: Performance of pre-optimization done (n=47): time 2.705e-06/3.823, allocations: 4.953 kB / 2.109 GB, free: 186.1 MB / 0.948 GB Notification: Performance of matching and sorting (n=47): time 0.001671/3.825, allocations: 0.6831 MB / 2.109 GB, free: 186 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.568e-05/3.825, allocations: 110.6 kB / 2.109 GB, free: 185.9 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001272/3.826, allocations: 0.9653 MB / 2.11 GB, free: 185.7 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 6.446e-05/3.826, allocations: 30.92 kB / 2.11 GB, free: 185.7 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002663/3.827, allocations: 443.5 kB / 2.111 GB, free: 185.5 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001374/3.827, allocations: 147.5 kB / 2.111 GB, free: 185.4 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.254e-05/3.827, allocations: 0 / 2.111 GB, free: 185.4 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 6.362e-05/3.827, allocations: 337.7 kB / 2.111 GB, free: 185 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002851/3.827, allocations: 211.6 kB / 2.112 GB, free: 185 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003859/3.827, allocations: 487.4 kB / 2.112 GB, free: 184.7 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009749/3.828, allocations: 365.2 kB / 2.112 GB, free: 184.7 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/3.828, allocations: 0 / 2.112 GB, free: 184.7 MB / 0.948 GB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001769/3.83, allocations: 0.8662 MB / 2.113 GB, free: 184.6 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004738/3.831, allocations: 2.736 MB / 2.116 GB, free: 181.8 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.343e-05/3.831, allocations: 7.625 kB / 2.116 GB, free: 181.8 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002615/3.831, allocations: 78.38 kB / 2.116 GB, free: 181.8 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000624/3.832, allocations: 169.8 kB / 2.116 GB, free: 181.8 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005994/3.832, allocations: 1.144 MB / 2.117 GB, free: 180.7 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008951/3.833, allocations: 112 kB / 2.117 GB, free: 180.7 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.716e-05/3.833, allocations: 40.97 kB / 2.117 GB, free: 180.7 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 7.434e-06/3.833, allocations: 5.656 kB / 2.117 GB, free: 180.7 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001494/3.835, allocations: 0.6746 MB / 2.118 GB, free: 180.7 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.263e-05/3.835, allocations: 7.719 kB / 2.118 GB, free: 180.7 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001822/3.835, allocations: 80.2 kB / 2.118 GB, free: 180.7 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005557/3.836, allocations: 154.2 kB / 2.118 GB, free: 180.7 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006001/3.836, allocations: 1.161 MB / 2.119 GB, free: 179.6 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008002/3.837, allocations: 89.16 kB / 2.119 GB, free: 179.6 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.42e-05/3.837, allocations: 43.86 kB / 2.12 GB, free: 179.6 MB / 0.948 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.0001965/3.837, allocations: 162.1 kB / 2.12 GB, free: 179.5 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001691/3.837, allocations: 132.6 kB / 2.12 GB, free: 179.4 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001752/3.839, allocations: 0.8883 MB / 2.121 GB, free: 179.3 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.578e-06/3.839, allocations: 6.781 kB / 2.121 GB, free: 179.3 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/3.839, allocations: 0 / 2.121 GB, free: 179.3 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.326e-06/3.839, allocations: 10 kB / 2.121 GB, free: 179.3 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002702/3.842, allocations: 1.833 MB / 2.122 GB, free: 178.9 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.548e-06/3.842, allocations: 3.75 kB / 2.122 GB, free: 178.9 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004828/3.842, allocations: 105.8 kB / 2.123 GB, free: 178.9 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000173/3.843, allocations: 68.03 kB / 2.123 GB, free: 178.9 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.42e-05/3.843, allocations: 13.94 kB / 2.123 GB, free: 178.9 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005543/3.843, allocations: 1.147 MB / 2.124 GB, free: 177.8 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/3.843, allocations: 6.078 kB / 2.124 GB, free: 177.8 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001319/3.845, allocations: 0.9825 MB / 2.125 GB, free: 177.4 MB / 0.948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0015/3.846, allocations: 1.446 MB / 2.126 GB, free: 176.6 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004603/3.847, allocations: 302.5 kB / 2.126 GB, free: 176.4 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002084/3.847, allocations: 3.125 kB / 2.126 GB, free: 176.4 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008481/3.848, allocations: 80.3 kB / 2.127 GB, free: 176.4 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.695e-05/3.848, allocations: 35.58 kB / 2.127 GB, free: 176.4 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.289e-05/3.848, allocations: 32.97 kB / 2.127 GB, free: 176.4 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.0008515/3.849, allocations: 0.7479 MB / 2.127 GB, free: 176.3 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.003784/3.852, allocations: 0.9929 MB / 2.128 GB, free: 176.2 MB / 0.948 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.001808/3.854, allocations: 0.9727 MB / 2.129 GB, free: 175.9 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.00151/3.856, allocations: 1.003 MB / 2.13 GB, free: 175.8 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/3.856, allocations: 0 / 2.13 GB, free: 175.8 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0005024/3.856, allocations: 348.8 kB / 2.131 GB, free: 175.8 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002156/3.858, allocations: 0.513 MB / 2.131 GB, free: 175.8 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003525/3.862, allocations: 1.686 MB / 2.133 GB, free: 175.3 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00101/3.863, allocations: 1.343 MB / 2.134 GB, free: 174.6 MB / 0.948 GB Notification: Performance of SimCode: time 6.21e-07/3.863, allocations: 0 / 2.134 GB, free: 174.6 MB / 0.948 GB (rm -f Buildings_maint.8.0.x_Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Obsolete_DistrictHeatingCooling_SubStations_Validation_HeatingSubstation_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Obsolete_DistrictHeatingCooling_SubStations_Validation_HeatingSubstation.fmu > Buildings_maint.8.0.x_Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.pipe 2>&1)