Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_CoolingCapacityWaterCooled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled,fileNamePrefix="Buildings_10_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.004781/0.004781, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001057/0.001058, allocations: 191.3 kB / 16.67 MB, free: 5.523 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.267/1.267, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.386/2.386, allocations: 437 MB / 0.7105 GB, free: 4.344 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001885/0.001885, allocations: 63.91 kB / 1.018 GB, free: 9.852 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6495/0.6514, allocations: 151.6 MB / 1.166 GB, free: 3.75 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled): time 0.003633/0.6551, allocations: 2.887 MB / 1.169 GB, free: 0.8516 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.002511/0.6576, allocations: 2.22 MB / 1.171 GB, free: 14.62 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.04e-05/0.6577, allocations: 0 / 1.171 GB, free: 14.62 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0006088/0.6584, allocations: 264.8 kB / 1.171 GB, free: 14.36 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0001253/0.6585, allocations: 83.22 kB / 1.172 GB, free: 14.28 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008916/0.6594, allocations: 475.1 kB / 1.172 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0004666/0.6599, allocations: 0.5181 MB / 1.172 GB, free: 13.3 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001039/0.66, allocations: 56.64 kB / 1.173 GB, free: 13.24 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001712/0.6602, allocations: 203.4 kB / 1.173 GB, free: 13.04 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002124/0.6604, allocations: 211.2 kB / 1.173 GB, free: 12.84 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 5.612e-05/0.6604, allocations: 36 kB / 1.173 GB, free: 12.8 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003237/0.6608, allocations: 255.7 kB / 1.173 GB, free: 12.55 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001455/0.6609, allocations: 159.6 kB / 1.173 GB, free: 12.39 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0001726/0.6611, allocations: 218.9 kB / 1.174 GB, free: 12.18 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0006226/0.6617, allocations: 0.7439 MB / 1.174 GB, free: 11.43 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.6617, allocations: 0 / 1.174 GB, free: 11.43 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.352e-06/0.6618, allocations: 3.938 kB / 1.174 GB, free: 11.43 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 5.791e-06/0.6618, allocations: 4 kB / 1.174 GB, free: 11.43 MB / 0.9044 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.001207/0.663, allocations: 0.8419 MB / 1.175 GB, free: 10.52 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.138e-05/0.663, allocations: 8.922 kB / 1.175 GB, free: 10.52 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.862e-05/0.6631, allocations: 42.75 kB / 1.175 GB, free: 10.46 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00196/0.665, allocations: 236.1 kB / 1.175 GB, free: 10.23 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004908/0.6655, allocations: 422 kB / 1.176 GB, free: 9.781 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.457e-05/0.6656, allocations: 79.94 kB / 1.176 GB, free: 9.691 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.835e-05/0.6657, allocations: 12.38 kB / 1.176 GB, free: 9.68 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001168/0.6669, allocations: 0.5323 MB / 1.176 GB, free: 9.141 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.6669, allocations: 3.984 kB / 1.176 GB, free: 9.137 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.727e-05/0.6669, allocations: 4 kB / 1.176 GB, free: 9.133 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.667, allocations: 4 kB / 1.176 GB, free: 9.129 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001911/0.6689, allocations: 0.7572 MB / 1.177 GB, free: 8.371 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002022/0.6709, allocations: 1.276 MB / 1.178 GB, free: 7.043 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005007/0.6759, allocations: 1.013 MB / 1.179 GB, free: 6.02 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009322/0.6769, allocations: 400.6 kB / 1.18 GB, free: 5.625 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.074e-05/0.6769, allocations: 7.984 kB / 1.18 GB, free: 5.617 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001119/0.678, allocations: 0.5273 MB / 1.18 GB, free: 5.078 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=21): time 1.523e-06/0.678, allocations: 4 kB / 1.18 GB, free: 5.074 MB / 0.9044 GB Notification: Performance of matching and sorting (n=21): time 0.002977/0.681, allocations: 1.178 MB / 1.181 GB, free: 3.891 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.136e-05/0.6811, allocations: 55.41 kB / 1.181 GB, free: 3.824 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004947/0.6816, allocations: 0.5174 MB / 1.182 GB, free: 3.297 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 5.436e-05/0.6816, allocations: 37.7 kB / 1.182 GB, free: 3.254 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001403/0.6818, allocations: 200.4 kB / 1.182 GB, free: 3.055 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 6.45e-05/0.6818, allocations: 71.11 kB / 1.182 GB, free: 2.984 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001354/0.682, allocations: 65.66 kB / 1.182 GB, free: 2.914 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001229/0.6821, allocations: 354.8 kB / 1.183 GB, free: 2.559 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00104/0.6831, allocations: 464.5 kB / 1.183 GB, free: 2.102 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001076/0.6842, allocations: 0.5013 MB / 1.184 GB, free: 1.594 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001833/0.6861, allocations: 0.7554 MB / 1.184 GB, free: 0.832 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.6861, allocations: 0 / 1.184 GB, free: 0.832 MB / 0.9044 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.002291/0.6884, allocations: 1.073 MB / 1.185 GB, free: 15.74 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.683e-05/0.6884, allocations: 45.62 kB / 1.185 GB, free: 15.69 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.6884, allocations: 7.922 kB / 1.185 GB, free: 15.68 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.004e-05/0.6885, allocations: 4 kB / 1.185 GB, free: 15.68 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005912/0.6891, allocations: 91.83 kB / 1.186 GB, free: 15.59 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.879e-06/0.6891, allocations: 3.938 kB / 1.186 GB, free: 15.59 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004876/0.6896, allocations: 63.83 kB / 1.186 GB, free: 15.52 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.744e-05/0.6896, allocations: 15.98 kB / 1.186 GB, free: 15.51 MB / 0.92 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.0002263/0.6898, allocations: 217.6 kB / 1.186 GB, free: 15.29 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.591e-05/0.6899, allocations: 39.53 kB / 1.186 GB, free: 15.25 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.481e-05/0.69, allocations: 51.84 kB / 1.186 GB, free: 15.2 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.69, allocations: 8 kB / 1.186 GB, free: 15.19 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.69, allocations: 4 kB / 1.186 GB, free: 15.18 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.69, allocations: 0 / 1.186 GB, free: 15.18 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005952/0.6906, allocations: 0.6377 MB / 1.187 GB, free: 14.5 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-06/0.6906, allocations: 0 / 1.187 GB, free: 14.5 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005806/0.6912, allocations: 91.89 kB / 1.187 GB, free: 14.41 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/0.6912, allocations: 3.938 kB / 1.187 GB, free: 14.4 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.13e-05/0.6913, allocations: 11.97 kB / 1.187 GB, free: 14.39 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.6913, allocations: 0 / 1.187 GB, free: 14.39 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.6913, allocations: 0 / 1.187 GB, free: 14.39 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00199/0.6933, allocations: 0.8423 MB / 1.187 GB, free: 13.53 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002256/0.6935, allocations: 188.5 kB / 1.188 GB, free: 13.33 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.28e-05/0.6936, allocations: 11.94 kB / 1.188 GB, free: 13.32 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005255/0.6941, allocations: 59.92 kB / 1.188 GB, free: 13.26 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.689e-05/0.6942, allocations: 23.97 kB / 1.188 GB, free: 13.23 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.465e-05/0.6942, allocations: 11.97 kB / 1.188 GB, free: 13.22 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0003567/0.6946, allocations: 395.1 kB / 1.188 GB, free: 12.84 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6946, allocations: 0 / 1.188 GB, free: 12.84 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0003448/0.695, allocations: 100 kB / 1.188 GB, free: 12.74 MB / 0.92 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.002372/0.6973, allocations: 1.416 MB / 1.19 GB, free: 11.3 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.002182/0.6995, allocations: 0.9362 MB / 1.191 GB, free: 10.35 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.6995, allocations: 0 / 1.191 GB, free: 10.35 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.00102/0.7006, allocations: 423.6 kB / 1.191 GB, free: 9.938 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004257/0.701, allocations: 101.7 kB / 1.191 GB, free: 9.84 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01097/0.712, allocations: 7.302 MB / 1.198 GB, free: 2.453 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000392/0.7124, allocations: 0.8581 MB / 1.199 GB, free: 1.57 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0004227/0.7128, allocations: 122.9 kB / 1.199 GB, free: 1.449 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002499/0.7131, allocations: 139.4 kB / 1.199 GB, free: 1.312 MB / 0.92 GB Notification: Performance of SimCode: time 4.71e-07/0.7131, allocations: 0 / 1.199 GB, free: 1.312 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7568/1.47, allocations: 13.3 MB / 1.212 GB, free: 4.254 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.395/9.865, allocations: 10.91 kB / 1.212 GB, free: 4.246 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled.pipe ; mkfifo Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled.pipe >> ../files/Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_CoolingCapacityWaterCooled_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_CoolingCapacityWaterCooled.fmu > Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled.pipe 2>&1)