Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.CoolingSubstation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.CoolingSubstation,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Experimental_DistrictHeatingCooling_SubStations_Validation_CoolingSubstation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.CoolingSubstation,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Experimental_DistrictHeatingCooling_SubStations_Validation_CoolingSubstation",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.3-maint.7.0.x/package.mo): time 1.246/1.246, allocations: 249.4 MB / 256.7 MB, free: 7.027 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.001128/0.001128, allocations: 185.2 kB / 316 MB, free: 3.582 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.096/1.096, allocations: 205.2 MB / 0.5667 GB, free: 15.65 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008159/0.0008159, allocations: 90.23 kB / 0.671 GB, free: 4.793 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3195/0.3204, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1585/0.4788, allocations: 106.3 MB / 0.8847 GB, free: 12.6 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.021/1.5, allocations: 435.8 MB / 1.31 GB, free: 310.9 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002024/1.501, allocations: 88.27 kB / 1.31 GB, free: 310.8 MB / 0.8698 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.861/3.361, allocations: 0.6765 GB / 1.987 GB, free: 156.7 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/3.361, allocations: 9.844 kB / 1.987 GB, free: 156.7 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001454/3.363, allocations: 376 kB / 1.987 GB, free: 156.6 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01769/3.38, allocations: 8.424 MB / 1.995 GB, free: 156.1 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.372e-05/3.38, allocations: 29.91 kB / 1.995 GB, free: 156.1 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001105/3.381, allocations: 51.19 kB / 1.995 GB, free: 156.1 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001176/3.382, allocations: 0.6239 MB / 1.996 GB, free: 156.1 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001224/3.383, allocations: 0.8576 MB / 1.997 GB, free: 155.9 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.063e-05/3.383, allocations: 2.156 kB / 1.997 GB, free: 155.9 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.592e-05/3.383, allocations: 3.938 kB / 1.997 GB, free: 155.9 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.642e-05/3.383, allocations: 17.31 kB / 1.997 GB, free: 155.9 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00579/3.389, allocations: 4.707 MB / 2.002 GB, free: 153.6 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006142/3.389, allocations: 440.2 kB / 2.002 GB, free: 153.6 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002776/3.39, allocations: 245.7 kB / 2.002 GB, free: 153.6 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00185/3.392, allocations: 1.642 MB / 2.004 GB, free: 152.6 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003823/3.392, allocations: 360.5 kB / 2.004 GB, free: 152.5 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=47): time 2.174e-06/3.392, allocations: 0 / 2.004 GB, free: 152.5 MB / 0.8698 GB Notification: Performance of matching and sorting (n=47): time 0.001566/3.394, allocations: 0.6841 MB / 2.005 GB, free: 152.3 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.473e-05/3.394, allocations: 114.6 kB / 2.005 GB, free: 152.2 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001016/3.395, allocations: 0.9719 MB / 2.006 GB, free: 152.1 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 5.432e-05/3.395, allocations: 29.52 kB / 2.006 GB, free: 152 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002347/3.395, allocations: 443.6 kB / 2.006 GB, free: 151.8 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001133/3.395, allocations: 148.8 kB / 2.006 GB, free: 151.7 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.394e-05/3.395, allocations: 0 / 2.006 GB, free: 151.7 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 5.489e-05/3.395, allocations: 333.5 kB / 2.007 GB, free: 151.4 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002697/3.395, allocations: 216.6 kB / 2.007 GB, free: 151.4 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003596/3.396, allocations: 482.5 kB / 2.007 GB, free: 151.1 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008888/3.397, allocations: 355.7 kB / 2.008 GB, free: 151.1 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/3.397, allocations: 3.906 kB / 2.008 GB, free: 151.1 MB / 0.8698 GB Notification: Performance of matching and sorting (n=80) (initialization): time 0.00166/3.398, allocations: 0.8705 MB / 2.009 GB, free: 151 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004846/3.399, allocations: 2.745 MB / 2.011 GB, free: 148.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.421e-05/3.399, allocations: 3.625 kB / 2.011 GB, free: 148.1 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002728/3.399, allocations: 76.31 kB / 2.011 GB, free: 148.1 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006386/3.4, allocations: 165.3 kB / 2.012 GB, free: 148.1 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000586/3.4, allocations: 1.144 MB / 2.013 GB, free: 147.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008723/3.401, allocations: 111.8 kB / 2.013 GB, free: 147.1 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.014e-05/3.401, allocations: 38.78 kB / 2.013 GB, free: 147.1 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 6.963e-06/3.401, allocations: 5.469 kB / 2.013 GB, free: 147.1 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001432/3.403, allocations: 0.6689 MB / 2.013 GB, free: 147 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/3.403, allocations: 7.625 kB / 2.013 GB, free: 147 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001758/3.403, allocations: 72.73 kB / 2.014 GB, free: 147 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005344/3.404, allocations: 161.4 kB / 2.014 GB, free: 147 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005378/3.404, allocations: 1.163 MB / 2.015 GB, free: 146 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007156/3.405, allocations: 92.17 kB / 2.015 GB, free: 146 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.328e-05/3.405, allocations: 44.31 kB / 2.015 GB, free: 146 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,QCoo.a,QCoo.b,QCoo.last,$PRE.QCoo.nextEvent,QCoo.nextEvent,QCoo.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.0001862/3.405, allocations: 162.8 kB / 2.015 GB, free: 145.8 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001377/3.405, allocations: 132 kB / 2.015 GB, free: 145.8 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002247/3.408, allocations: 0.8754 MB / 2.016 GB, free: 145.7 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.126e-05/3.408, allocations: 7.562 kB / 2.016 GB, free: 145.7 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/3.408, allocations: 3.781 kB / 2.016 GB, free: 145.7 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.816e-06/3.408, allocations: 3.75 kB / 2.016 GB, free: 145.7 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003279/3.411, allocations: 1.826 MB / 2.018 GB, free: 145.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.181e-06/3.411, allocations: 7.625 kB / 2.018 GB, free: 145.2 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006114/3.412, allocations: 108.4 kB / 2.018 GB, free: 145.2 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002184/3.412, allocations: 62.11 kB / 2.018 GB, free: 145.2 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.258e-05/3.412, allocations: 21.55 kB / 2.018 GB, free: 145.2 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006787/3.413, allocations: 1.146 MB / 2.019 GB, free: 144.2 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/3.413, allocations: 3.688 kB / 2.019 GB, free: 144.2 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001648/3.414, allocations: 1.009 MB / 2.02 GB, free: 143.7 MB / 0.8698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001802/3.416, allocations: 1.436 MB / 2.022 GB, free: 142.9 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000583/3.417, allocations: 298.6 kB / 2.022 GB, free: 142.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002088/3.417, allocations: 6.719 kB / 2.022 GB, free: 142.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001031/3.418, allocations: 79.12 kB / 2.022 GB, free: 142.8 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.871e-05/3.418, allocations: 35.7 kB / 2.022 GB, free: 142.8 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.405e-05/3.418, allocations: 32.7 kB / 2.022 GB, free: 142.8 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0009424/3.419, allocations: 0.7493 MB / 2.023 GB, free: 142.7 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.00373/3.423, allocations: 0.9732 MB / 2.024 GB, free: 142.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,QCoo.a,QCoo.b,QCoo.last,QCoo.nextEvent,QCoo.nextEventScaled) * Number of discrete states: 6 (QCoo.nextEvent,QCoo.last,QCoo.nextEventScaled,QCoo.b,QCoo.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.001663/3.424, allocations: 0.967 MB / 2.025 GB, free: 142.3 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.00182/3.426, allocations: 1.001 MB / 2.026 GB, free: 142.2 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 4.127e-06/3.426, allocations: 0 / 2.026 GB, free: 142.2 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0005779/3.427, allocations: 344.9 kB / 2.026 GB, free: 142.2 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002389/3.429, allocations: 0.5166 MB / 2.026 GB, free: 142.2 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00333/3.433, allocations: 1.687 MB / 2.028 GB, free: 141.7 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000852/3.433, allocations: 1.355 MB / 2.029 GB, free: 141 MB / 0.8698 GB Notification: Performance of SimCode: time 7.41e-07/3.433, allocations: 0 / 2.029 GB, free: 141 MB / 0.8698 GB (rm -f Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.CoolingSubstation.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.CoolingSubstation.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.CoolingSubstation.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.CoolingSubstation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Experimental_DistrictHeatingCooling_SubStations_Validation_CoolingSubstation_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Experimental_DistrictHeatingCooling_SubStations_Validation_CoolingSubstation.fmu > Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.CoolingSubstation.pipe 2>&1)