Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled,fileNamePrefix="Buildings_latest_Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_CoolingCapacityWaterCooled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled,fileNamePrefix="Buildings_latest_Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_CoolingCapacityWaterCooled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00432/0.00432, allocations: 99.61 kB / 15.73 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001042/0.001042, allocations: 196.7 kB / 16.67 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.246/1.246, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.6/2.6, allocations: 461.9 MB / 0.7348 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 63.91 kB / 1.054 GB, free: 8.191 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8239/0.8251, allocations: 157.4 MB / 1.207 GB, free: 13.57 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled): time 0.00383/0.829, allocations: 2.897 MB / 1.21 GB, free: 10.67 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.00294/0.8319, allocations: 2.2 MB / 1.212 GB, free: 8.457 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001293/0.8321, allocations: 8 kB / 1.212 GB, free: 8.449 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0006976/0.8328, allocations: 264.8 kB / 1.213 GB, free: 8.191 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001444/0.833, allocations: 79.22 kB / 1.213 GB, free: 8.113 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.001106/0.8341, allocations: 481.9 kB / 1.213 GB, free: 7.648 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0005227/0.8346, allocations: 0.5141 MB / 1.214 GB, free: 7.133 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001208/0.8347, allocations: 48.7 kB / 1.214 GB, free: 7.082 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001853/0.8349, allocations: 207.4 kB / 1.214 GB, free: 6.879 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002309/0.8352, allocations: 211.2 kB / 1.214 GB, free: 6.672 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 6.153e-05/0.8352, allocations: 40 kB / 1.214 GB, free: 6.633 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003717/0.8356, allocations: 251.7 kB / 1.214 GB, free: 6.387 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001655/0.8358, allocations: 167.6 kB / 1.214 GB, free: 6.223 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001917/0.836, allocations: 206.9 kB / 1.215 GB, free: 6.02 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0007557/0.8367, allocations: 0.7594 MB / 1.215 GB, free: 5.258 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.8368, allocations: 3.938 kB / 1.215 GB, free: 5.254 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.362e-06/0.8368, allocations: 0 / 1.215 GB, free: 5.254 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.101e-06/0.8368, allocations: 0 / 1.215 GB, free: 5.254 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.001355/0.8381, allocations: 0.8322 MB / 1.216 GB, free: 4.359 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.8382, allocations: 8.031 kB / 1.216 GB, free: 4.352 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.542e-05/0.8382, allocations: 46.73 kB / 1.216 GB, free: 4.297 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002159/0.8404, allocations: 236.1 kB / 1.216 GB, free: 4.066 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005373/0.841, allocations: 422 kB / 1.217 GB, free: 3.617 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000117/0.8411, allocations: 83.89 kB / 1.217 GB, free: 3.523 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.977e-05/0.8412, allocations: 16.36 kB / 1.217 GB, free: 3.508 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001302/0.8425, allocations: 0.5362 MB / 1.218 GB, free: 2.965 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.268e-06/0.8425, allocations: 0 / 1.218 GB, free: 2.965 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.19e-05/0.8425, allocations: 4 kB / 1.218 GB, free: 2.961 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.878e-06/0.8426, allocations: 4 kB / 1.218 GB, free: 2.957 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002087/0.8446, allocations: 0.7611 MB / 1.218 GB, free: 2.195 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002267/0.8469, allocations: 1.265 MB / 1.219 GB, free: 0.8789 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005492/0.8524, allocations: 1.01 MB / 1.22 GB, free: 15.86 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009989/0.8534, allocations: 400.5 kB / 1.221 GB, free: 15.46 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.62e-05/0.8535, allocations: 0 / 1.221 GB, free: 15.46 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001247/0.8547, allocations: 0.5301 MB / 1.221 GB, free: 14.92 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=21): time 2.405e-06/0.8547, allocations: 0 / 1.221 GB, free: 14.92 MB / 0.9512 GB Notification: Performance of matching and sorting (n=21): time 0.003268/0.858, allocations: 1.182 MB / 1.223 GB, free: 13.73 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.315e-05/0.8581, allocations: 63.38 kB / 1.223 GB, free: 13.66 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005852/0.8587, allocations: 0.5175 MB / 1.223 GB, free: 13.14 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 7.222e-05/0.8588, allocations: 33.7 kB / 1.223 GB, free: 13.1 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001469/0.8589, allocations: 200.4 kB / 1.223 GB, free: 12.9 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 7.762e-05/0.859, allocations: 67.09 kB / 1.223 GB, free: 12.83 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001482/0.8591, allocations: 65.67 kB / 1.223 GB, free: 12.76 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001298/0.8593, allocations: 358.8 kB / 1.224 GB, free: 12.4 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00111/0.8604, allocations: 468.5 kB / 1.224 GB, free: 11.94 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001149/0.8616, allocations: 0.4935 MB / 1.225 GB, free: 11.44 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001973/0.8635, allocations: 0.7655 MB / 1.225 GB, free: 10.67 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.8636, allocations: 0 / 1.225 GB, free: 10.67 MB / 0.9512 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.002507/0.8661, allocations: 1.072 MB / 1.227 GB, free: 9.582 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 4.796e-05/0.8661, allocations: 41.69 kB / 1.227 GB, free: 9.535 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.8661, allocations: 3.938 kB / 1.227 GB, free: 9.531 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.622e-05/0.8662, allocations: 0 / 1.227 GB, free: 9.531 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000643/0.8668, allocations: 103.8 kB / 1.227 GB, free: 9.43 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.132e-06/0.8668, allocations: 0 / 1.227 GB, free: 9.43 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005592/0.8674, allocations: 59.84 kB / 1.227 GB, free: 9.371 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.159e-05/0.8675, allocations: 11.98 kB / 1.227 GB, free: 9.359 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (cooCap.checkBoundsTCon[1],$PRE.cooCap.checkBoundsTCon[1],cooCap.checkBoundsTEva[1],$PRE.cooCap.checkBoundsTEva[1],cooCap.stage,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003058/0.8678, allocations: 218.5 kB / 1.227 GB, free: 9.137 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.627e-05/0.8679, allocations: 43.52 kB / 1.227 GB, free: 9.094 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.779e-05/0.868, allocations: 55.86 kB / 1.227 GB, free: 9.031 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.868, allocations: 0 / 1.227 GB, free: 9.031 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.868, allocations: 0 / 1.227 GB, free: 9.031 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.868, allocations: 4 kB / 1.227 GB, free: 9.027 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006392/0.8686, allocations: 0.6497 MB / 1.228 GB, free: 8.328 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.8686, allocations: 0 / 1.228 GB, free: 8.328 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006299/0.8693, allocations: 91.88 kB / 1.228 GB, free: 8.238 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.791e-06/0.8693, allocations: 3.938 kB / 1.228 GB, free: 8.234 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.688e-05/0.8693, allocations: 11.98 kB / 1.228 GB, free: 8.223 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.8693, allocations: 0 / 1.228 GB, free: 8.223 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.8693, allocations: 0 / 1.228 GB, free: 8.223 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002165/0.8715, allocations: 0.8421 MB / 1.229 GB, free: 7.363 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002524/0.8718, allocations: 184.5 kB / 1.229 GB, free: 7.164 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.287e-05/0.8719, allocations: 11.94 kB / 1.229 GB, free: 7.152 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005783/0.8724, allocations: 59.92 kB / 1.229 GB, free: 7.094 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.864e-05/0.8725, allocations: 27.95 kB / 1.229 GB, free: 7.066 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.862e-05/0.8726, allocations: 15.98 kB / 1.229 GB, free: 7.051 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0004094/0.873, allocations: 387.1 kB / 1.229 GB, free: 6.676 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.4e-07/0.873, allocations: 4 kB / 1.229 GB, free: 6.672 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0004169/0.8734, allocations: 96 kB / 1.229 GB, free: 6.578 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition2,$whenCondition1,cooCap.stage,cooCap.checkBoundsTEva[1],cooCap.checkBoundsTCon[1]) * Number of discrete states: 3 (cooCap.stage,cooCap.checkBoundsTEva[cooCap.stage],cooCap.checkBoundsTCon[cooCap.stage]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002621/0.8761, allocations: 1.422 MB / 1.231 GB, free: 5.129 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.002372/0.8784, allocations: 0.9362 MB / 1.232 GB, free: 4.18 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.8785, allocations: 0 / 1.232 GB, free: 4.18 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.001073/0.8795, allocations: 423.6 kB / 1.232 GB, free: 3.766 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005084/0.8801, allocations: 96.2 kB / 1.232 GB, free: 3.672 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01196/0.892, allocations: 7.303 MB / 1.239 GB, free: 12.28 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004164/0.8925, allocations: 0.8579 MB / 1.24 GB, free: 11.4 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0004634/0.893, allocations: 126.8 kB / 1.24 GB, free: 11.28 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002704/0.8932, allocations: 147.4 kB / 1.24 GB, free: 11.14 MB / 0.9669 GB Notification: Performance of SimCode: time 9.72e-07/0.8933, allocations: 0 / 1.24 GB, free: 11.14 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.384/2.277, allocations: 13.28 MB / 1.253 GB, free: 14.12 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.782/11.06, allocations: 15.44 kB / 1.253 GB, free: 14.11 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled.pipe ; mkfifo Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled.pipe >> ../files/Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_CoolingCapacityWaterCooled_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_CoolingCapacityWaterCooled.fmu > Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled.pipe 2>&1)