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.001654/0.001653, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002346/0.002346, allocations: 193.8 kB / 16.25 MB, free: 6.629 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.768/1.768, allocations: 222.9 MB / 239.9 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.885/2.885, allocations: 461.9 MB / 0.7344 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001368/0.001368, allocations: 72.38 kB / 0.8987 GB, free: 37.16 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2809/0.2823, allocations: 157.4 MB / 1.052 GB, free: 8.652 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.CoolingCapacityWaterCooled): time 0.004813/0.2872, allocations: 2.927 MB / 1.055 GB, free: 5.703 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003578/0.2908, allocations: 2.2 MB / 1.057 GB, free: 3.492 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002472/0.2911, allocations: 0 / 1.057 GB, free: 3.492 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0009243/0.292, allocations: 251 kB / 1.058 GB, free: 3.246 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002714/0.2923, allocations: 75.41 kB / 1.058 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001338/0.2937, allocations: 449.2 kB / 1.058 GB, free: 2.738 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000716/0.2944, allocations: 0.5181 MB / 1.059 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001458/0.2946, allocations: 52.72 kB / 1.059 GB, free: 2.168 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003218/0.2949, allocations: 199.5 kB / 1.059 GB, free: 1.973 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003347/0.2952, allocations: 211.3 kB / 1.059 GB, free: 1.766 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.000111/0.2954, allocations: 36 kB / 1.059 GB, free: 1.73 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000436/0.2958, allocations: 251.7 kB / 1.059 GB, free: 1.484 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001962/0.296, allocations: 163.5 kB / 1.06 GB, free: 1.324 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002673/0.2963, allocations: 218.9 kB / 1.06 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0009336/0.2972, allocations: 0.7478 MB / 1.06 GB, free: 368 kB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.2972, allocations: 4 kB / 1.06 GB, free: 364 kB / 0.8106 GB Notification: Performance of FrontEnd: time 1.537e-05/0.2973, allocations: 0 / 1.06 GB, free: 364 kB / 0.8106 GB Notification: Performance of Transformations before backend: time 2.378e-05/0.2973, allocations: 3.938 kB / 1.061 GB, free: 360 kB / 0.8106 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.001801/0.2991, allocations: 0.8321 MB / 1.061 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.725e-05/0.2992, allocations: 12.62 kB / 1.061 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.857e-05/0.2992, allocations: 46.73 kB / 1.061 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002196/0.3014, allocations: 228.2 kB / 1.062 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006603/0.3021, allocations: 421.9 kB / 1.062 GB, free: 14.72 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001224/0.3023, allocations: 87.94 kB / 1.062 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.239e-05/0.3023, allocations: 8.375 kB / 1.062 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001267/0.3036, allocations: 0.5377 MB / 1.063 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.258e-06/0.3036, allocations: 0 / 1.063 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.907e-05/0.3037, allocations: 4 kB / 1.063 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.642e-06/0.3037, allocations: 4 kB / 1.063 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002119/0.3058, allocations: 0.7611 MB / 1.063 GB, free: 13.3 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002397/0.3082, allocations: 1.261 MB / 1.065 GB, free: 11.99 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005281/0.3135, allocations: 1.029 MB / 1.066 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001003/0.3145, allocations: 398.3 kB / 1.066 GB, free: 10.56 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.134e-05/0.3146, allocations: 3.984 kB / 1.066 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001339/0.3159, allocations: 0.5301 MB / 1.066 GB, free: 10.01 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=21): time 2.845e-06/0.3159, allocations: 0 / 1.066 GB, free: 10.01 MB / 0.8262 GB Notification: Performance of matching and sorting (n=21): time 0.003034/0.319, allocations: 1.178 MB / 1.068 GB, free: 8.828 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.355e-05/0.319, allocations: 55.41 kB / 1.068 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000651/0.3197, allocations: 0.5253 MB / 1.068 GB, free: 8.23 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 7.693e-05/0.3198, allocations: 33.7 kB / 1.068 GB, free: 8.191 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001586/0.3199, allocations: 192.5 kB / 1.068 GB, free: 8 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 8.579e-05/0.32, allocations: 71.02 kB / 1.068 GB, free: 7.93 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001641/0.3202, allocations: 69.64 kB / 1.069 GB, free: 7.855 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001556/0.3204, allocations: 358.8 kB / 1.069 GB, free: 7.496 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001048/0.3214, allocations: 464.5 kB / 1.069 GB, free: 7.039 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001074/0.3225, allocations: 0.4934 MB / 1.07 GB, free: 6.539 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001849/0.3244, allocations: 0.7585 MB / 1.071 GB, free: 5.773 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.3244, allocations: 3.938 kB / 1.071 GB, free: 5.77 MB / 0.8262 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.002443/0.3268, allocations: 1.071 MB / 1.072 GB, free: 4.688 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.424e-05/0.3269, allocations: 45.69 kB / 1.072 GB, free: 4.637 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.3269, allocations: 7.938 kB / 1.072 GB, free: 4.629 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.692e-05/0.3269, allocations: 0 / 1.072 GB, free: 4.629 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006028/0.3275, allocations: 83.89 kB / 1.072 GB, free: 4.547 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.965e-06/0.3276, allocations: 0 / 1.072 GB, free: 4.547 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005341/0.3281, allocations: 71.7 kB / 1.072 GB, free: 4.477 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.043e-05/0.3282, allocations: 15.98 kB / 1.072 GB, free: 4.461 MB / 0.8262 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.0003272/0.3285, allocations: 217.7 kB / 1.072 GB, free: 4.238 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001167/0.3287, allocations: 43.44 kB / 1.072 GB, free: 4.195 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001035/0.3288, allocations: 59.84 kB / 1.072 GB, free: 4.133 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/0.3288, allocations: 0 / 1.072 GB, free: 4.133 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.3288, allocations: 0 / 1.072 GB, free: 4.133 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.3288, allocations: 0 / 1.072 GB, free: 4.133 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007106/0.3295, allocations: 0.6377 MB / 1.073 GB, free: 3.445 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.3295, allocations: 0 / 1.073 GB, free: 3.445 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005778/0.3301, allocations: 95.83 kB / 1.073 GB, free: 3.352 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.652e-06/0.3301, allocations: 3.938 kB / 1.073 GB, free: 3.348 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.901e-05/0.3302, allocations: 15.97 kB / 1.073 GB, free: 3.332 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.3302, allocations: 0 / 1.073 GB, free: 3.332 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3302, allocations: 0 / 1.073 GB, free: 3.332 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00209/0.3323, allocations: 0.8339 MB / 1.074 GB, free: 2.48 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002503/0.3325, allocations: 188.5 kB / 1.074 GB, free: 2.277 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.961e-05/0.3326, allocations: 11.94 kB / 1.074 GB, free: 2.266 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005493/0.3332, allocations: 63.92 kB / 1.074 GB, free: 2.203 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001059/0.3333, allocations: 23.97 kB / 1.074 GB, free: 2.18 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001504/0.3334, allocations: 19.97 kB / 1.074 GB, free: 2.16 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0004473/0.3339, allocations: 383.1 kB / 1.074 GB, free: 1.785 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.873e-06/0.3339, allocations: 0 / 1.074 GB, free: 1.785 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004265/0.3343, allocations: 103.9 kB / 1.074 GB, free: 1.684 MB / 0.8262 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.00259/0.3369, allocations: 1.421 MB / 1.076 GB, free: 240 kB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.002271/0.3392, allocations: 0.9738 MB / 1.077 GB, free: 15.25 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.3392, allocations: 0 / 1.077 GB, free: 15.25 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001003/0.3403, allocations: 415.6 kB / 1.077 GB, free: 14.84 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005221/0.3408, allocations: 101.8 kB / 1.077 GB, free: 14.74 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01265/0.3534, allocations: 7.466 MB / 1.085 GB, free: 7.188 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000439/0.3539, allocations: 0.8503 MB / 1.085 GB, free: 6.312 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0005603/0.3545, allocations: 130.9 kB / 1.086 GB, free: 6.184 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000276/0.3548, allocations: 139.3 kB / 1.086 GB, free: 6.047 MB / 0.8419 GB Notification: Performance of SimCode: time 7.52e-07/0.3548, allocations: 0 / 1.086 GB, free: 6.047 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4614/0.8162, allocations: 12.85 MB / 1.098 GB, free: 9.508 MB / 0.8575 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003562/0.8166, allocations: 245.5 kB / 1.098 GB, free: 9.25 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.782/4.598, allocations: 0 / 1.098 GB, free: 9.25 MB / 0.8575 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)