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.001187/0.001187, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001147/0.001147, allocations: 198.6 kB / 16.53 MB, free: 6.391 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.394/1.394, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.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.499/2.499, allocations: 437.1 MB / 0.7104 GB, free: 5.062 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 63.91 kB / 0.8694 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.567/0.5683, allocations: 151.6 MB / 1.017 GB, free: 2.457 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled): time 0.003855/0.5722, allocations: 2.895 MB / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002862/0.5751, allocations: 2.213 MB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001419/0.5753, allocations: 4 kB / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0007363/0.576, allocations: 268.7 kB / 1.023 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001785/0.5762, allocations: 79.28 kB / 1.023 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001093/0.5773, allocations: 491.1 kB / 1.023 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0005202/0.5778, allocations: 0.5025 MB / 1.024 GB, free: 12 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001183/0.578, allocations: 52.64 kB / 1.024 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002307/0.5782, allocations: 203.4 kB / 1.024 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002571/0.5785, allocations: 207.3 kB / 1.024 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 8.626e-05/0.5786, allocations: 36 kB / 1.024 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004016/0.579, allocations: 247.7 kB / 1.024 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001624/0.5791, allocations: 159.6 kB / 1.025 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.000213/0.5794, allocations: 210.9 kB / 1.025 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0007057/0.5801, allocations: 0.7556 MB / 1.026 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.5801, allocations: 0 / 1.026 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.162e-06/0.5801, allocations: 0 / 1.026 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.031e-05/0.5801, allocations: 0 / 1.026 GB, free: 10.14 MB / 0.7794 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.001344/0.5815, allocations: 0.8399 MB / 1.026 GB, free: 9.238 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/0.5815, allocations: 12.03 kB / 1.026 GB, free: 9.227 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.482e-05/0.5816, allocations: 46.73 kB / 1.026 GB, free: 9.172 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002204/0.5838, allocations: 228.2 kB / 1.027 GB, free: 8.949 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005181/0.5843, allocations: 429.9 kB / 1.027 GB, free: 8.488 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001063/0.5844, allocations: 87.94 kB / 1.027 GB, free: 8.391 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.354e-05/0.5845, allocations: 12.38 kB / 1.027 GB, free: 8.379 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001294/0.5858, allocations: 0.5312 MB / 1.028 GB, free: 7.844 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.086e-06/0.5858, allocations: 0 / 1.028 GB, free: 7.844 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.209e-05/0.5859, allocations: 4 kB / 1.028 GB, free: 7.84 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.159e-06/0.5859, allocations: 7.938 kB / 1.028 GB, free: 7.832 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002106/0.588, allocations: 0.7611 MB / 1.028 GB, free: 7.07 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002176/0.5902, allocations: 1.265 MB / 1.03 GB, free: 5.754 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005435/0.5956, allocations: 1.009 MB / 1.031 GB, free: 4.734 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001011/0.5966, allocations: 396.9 kB / 1.031 GB, free: 4.344 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.539e-05/0.5967, allocations: 7.984 kB / 1.031 GB, free: 4.336 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001244/0.5979, allocations: 0.5389 MB / 1.032 GB, free: 3.785 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=21): time 1.673e-06/0.5979, allocations: 4 kB / 1.032 GB, free: 3.781 MB / 0.7794 GB Notification: Performance of matching and sorting (n=21): time 0.003298/0.6012, allocations: 1.171 MB / 1.033 GB, free: 2.605 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.756e-05/0.6013, allocations: 59.41 kB / 1.033 GB, free: 2.535 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000564/0.6019, allocations: 0.5252 MB / 1.033 GB, free: 2.004 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 6.372e-05/0.6019, allocations: 33.7 kB / 1.033 GB, free: 1.965 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001494/0.6021, allocations: 200.5 kB / 1.033 GB, free: 1.762 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 7.734e-05/0.6022, allocations: 70.94 kB / 1.034 GB, free: 1.691 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001566/0.6023, allocations: 65.66 kB / 1.034 GB, free: 1.621 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001191/0.6025, allocations: 358.8 kB / 1.034 GB, free: 1.262 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001101/0.6036, allocations: 464.5 kB / 1.034 GB, free: 0.8047 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001142/0.6047, allocations: 0.4935 MB / 1.035 GB, free: 312 kB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001967/0.6067, allocations: 0.7491 MB / 1.036 GB, free: 15.55 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.6067, allocations: 8 kB / 1.036 GB, free: 15.54 MB / 0.795 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.002463/0.6092, allocations: 1.07 MB / 1.037 GB, free: 14.46 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.641e-05/0.6092, allocations: 47.56 kB / 1.037 GB, free: 14.41 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.6093, allocations: 7.875 kB / 1.037 GB, free: 14.4 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.323e-05/0.6093, allocations: 0 / 1.037 GB, free: 14.4 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006323/0.6099, allocations: 87.89 kB / 1.037 GB, free: 14.31 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.706e-06/0.6099, allocations: 8 kB / 1.037 GB, free: 14.3 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005395/0.6105, allocations: 55.83 kB / 1.037 GB, free: 14.25 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.197e-05/0.6105, allocations: 19.98 kB / 1.037 GB, free: 14.23 MB / 0.795 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.0002687/0.6108, allocations: 213.7 kB / 1.037 GB, free: 14.01 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.407e-05/0.6109, allocations: 43.44 kB / 1.037 GB, free: 13.97 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.425e-05/0.611, allocations: 55.84 kB / 1.037 GB, free: 13.91 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.611, allocations: 4 kB / 1.037 GB, free: 13.91 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.611, allocations: 3.938 kB / 1.037 GB, free: 13.91 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.611, allocations: 3.984 kB / 1.037 GB, free: 13.9 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006416/0.6117, allocations: 0.6415 MB / 1.038 GB, free: 13.21 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.6117, allocations: 0 / 1.038 GB, free: 13.21 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006354/0.6123, allocations: 87.89 kB / 1.038 GB, free: 13.12 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.215e-06/0.6124, allocations: 7.938 kB / 1.038 GB, free: 13.12 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.741e-05/0.6124, allocations: 11.98 kB / 1.038 GB, free: 13.11 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.397e-06/0.6124, allocations: 3.938 kB / 1.038 GB, free: 13.1 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.6124, allocations: 7.984 kB / 1.038 GB, free: 13.09 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002161/0.6146, allocations: 0.8227 MB / 1.039 GB, free: 12.25 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002488/0.6148, allocations: 196.3 kB / 1.039 GB, free: 12.04 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.376e-05/0.6149, allocations: 15.92 kB / 1.039 GB, free: 12.03 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005761/0.6155, allocations: 63.92 kB / 1.039 GB, free: 11.96 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.752e-05/0.6156, allocations: 19.97 kB / 1.039 GB, free: 11.95 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.918e-05/0.6157, allocations: 15.98 kB / 1.039 GB, free: 11.93 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0004132/0.6161, allocations: 391 kB / 1.039 GB, free: 11.55 MB / 0.795 GB Notification: Performance of sort global known variables: time 2e-07/0.6161, allocations: 0 / 1.039 GB, free: 11.55 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003897/0.6165, allocations: 96 kB / 1.039 GB, free: 11.46 MB / 0.795 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.002587/0.6191, allocations: 1.412 MB / 1.041 GB, free: 10.01 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.002322/0.6214, allocations: 0.9657 MB / 1.042 GB, free: 9.035 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.6214, allocations: 4 kB / 1.042 GB, free: 9.031 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.001073/0.6225, allocations: 415.6 kB / 1.042 GB, free: 8.625 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004712/0.623, allocations: 103.2 kB / 1.042 GB, free: 8.527 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.012/0.635, allocations: 7.387 MB / 1.049 GB, free: 1.055 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003715/0.6354, allocations: 0.8581 MB / 1.05 GB, free: 176 kB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0005288/0.6359, allocations: 130.9 kB / 1.05 GB, free: 44 kB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002834/0.6362, allocations: 141.2 kB / 1.051 GB, free: 15.9 MB / 0.8106 GB Notification: Performance of SimCode: time 4.81e-07/0.6362, allocations: 4 kB / 1.051 GB, free: 15.9 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3428/0.979, allocations: 13.16 MB / 1.063 GB, free: 2.969 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.764/9.743, allocations: 4.188 kB / 1.063 GB, free: 2.965 MB / 0.8106 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)