Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.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 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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.HeatExchangers.DXCoils.BaseClasses.Examples.CoolingCapacityWaterCooled,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_CoolingCapacityWaterCooled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.CoolingCapacityWaterCooled,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_DXCoils_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.001225/0.001225, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.001302/0.001302, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.412/1.412, allocations: 223.2 MB / 239.9 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.376/2.376, allocations: 390.3 MB / 0.6653 GB, free: 2.988 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003424/0.0003424, allocations: 12 kB / 0.8146 GB, free: 14.18 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7377/0.7381, allocations: 142.3 MB / 0.9536 GB, free: 8.023 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.CoolingCapacityWaterCooled): time 0.002743/0.7409, allocations: 2.335 MB / 0.9559 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002671/0.7436, allocations: 1.947 MB / 0.9578 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001921/0.7438, allocations: 6.938 kB / 0.9578 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0008372/0.7447, allocations: 259.1 kB / 0.958 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002077/0.7449, allocations: 78.91 kB / 0.9581 GB, free: 4.445 MB / 0.7169 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Fluid/HeatExchangers/DXCoils/BaseClasses/Functions/warnIfPerformanceOutOfBounds.mo:2:1-41:33:writable] Warning: Pure function ‘Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Functions.warnIfPerformanceOutOfBounds‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.001218/0.7461, allocations: 422.9 kB / 0.9585 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004238/0.7465, allocations: 332.2 kB / 0.9588 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001356/0.7467, allocations: 45.34 kB / 0.9589 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001868/0.7469, allocations: 174.3 kB / 0.9591 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002124/0.7471, allocations: 190.9 kB / 0.9592 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.695e-05/0.7472, allocations: 23.38 kB / 0.9593 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000366/0.7475, allocations: 204.5 kB / 0.9595 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001582/0.7477, allocations: 148.3 kB / 0.9596 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.915e-05/0.7478, allocations: 87.7 kB / 0.9597 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005346/0.7483, allocations: 0.5794 MB / 0.9602 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.876e-06/0.7484, allocations: 0 / 0.9602 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.335e-06/0.7484, allocations: 0 / 0.9602 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.803e-06/0.7484, allocations: 1.031 kB / 0.9602 GB, free: 3.074 MB / 0.7169 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.001234/0.7496, allocations: 0.7818 MB / 0.961 GB, free: 2.391 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.7497, allocations: 10.16 kB / 0.961 GB, free: 2.391 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.879e-05/0.7497, allocations: 46.67 kB / 0.9611 GB, free: 2.34 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002099/0.7518, allocations: 240.9 kB / 0.9613 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005691/0.7524, allocations: 414.1 kB / 0.9617 GB, free: 1.883 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001046/0.7525, allocations: 84.41 kB / 0.9618 GB, free: 1.805 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.005e-05/0.7526, allocations: 13.5 kB / 0.9618 GB, free: 1.801 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001271/0.7539, allocations: 0.5632 MB / 0.9623 GB, free: 1.504 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.7539, allocations: 5.234 kB / 0.9623 GB, free: 1.5 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.053e-05/0.7539, allocations: 5.312 kB / 0.9623 GB, free: 1.496 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.7539, allocations: 2.594 kB / 0.9623 GB, free: 1.496 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001996/0.7559, allocations: 0.8121 MB / 0.9631 GB, free: 1.156 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002284/0.7582, allocations: 1.28 MB / 0.9644 GB, free: 288 kB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005485/0.7637, allocations: 1.093 MB / 0.9655 GB, free: 15.82 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.058e-05/0.7638, allocations: 2.219 kB / 0.9655 GB, free: 15.82 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001371/0.7652, allocations: 0.5633 MB / 0.966 GB, free: 15.52 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=21): time 2.605e-06/0.7652, allocations: 0 / 0.966 GB, free: 15.52 MB / 0.7325 GB Notification: Performance of matching and sorting (n=21): time 0.003537/0.7687, allocations: 1.268 MB / 0.9672 GB, free: 14.95 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.461e-05/0.7688, allocations: 55.34 kB / 0.9673 GB, free: 14.89 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000703/0.7695, allocations: 0.5125 MB / 0.9678 GB, free: 14.59 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 0.0001003/0.7696, allocations: 37.97 kB / 0.9678 GB, free: 14.55 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001676/0.7698, allocations: 200.2 kB / 0.968 GB, free: 14.37 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 8.34e-05/0.7699, allocations: 67.86 kB / 0.9681 GB, free: 14.31 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.076e-05/0.7699, allocations: 2.594 kB / 0.9681 GB, free: 14.31 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001428/0.7701, allocations: 359.6 kB / 0.9684 GB, free: 13.96 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001171/0.7712, allocations: 498.5 kB / 0.9689 GB, free: 13.74 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001171/0.7724, allocations: 0.5144 MB / 0.9694 GB, free: 13.51 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001124/0.7736, allocations: 462.2 kB / 0.9698 GB, free: 13.3 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.7736, allocations: 0 / 0.9698 GB, free: 13.3 MB / 0.7325 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.002674/0.7763, allocations: 1.149 MB / 0.971 GB, free: 12.76 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 6.12e-05/0.7763, allocations: 40.12 kB / 0.971 GB, free: 12.73 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/0.7763, allocations: 1.5 kB / 0.971 GB, free: 12.73 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.802e-05/0.7764, allocations: 0 / 0.971 GB, free: 12.73 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006511/0.777, allocations: 108.3 kB / 0.9711 GB, free: 12.69 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/0.777, allocations: 1.188 kB / 0.9711 GB, free: 12.69 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006541/0.7777, allocations: 80.58 kB / 0.9712 GB, free: 12.65 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.084e-05/0.7778, allocations: 12.11 kB / 0.9712 GB, free: 12.65 MB / 0.7325 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 ($whenCondition2,$whenCondition1,cooCap.stage,$PRE.cooCap.checkBoundsTEva[1],cooCap.checkBoundsTEva[1],$PRE.cooCap.checkBoundsTCon[1],cooCap.checkBoundsTCon[1]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003795/0.7782, allocations: 213.3 kB / 0.9714 GB, free: 12.48 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.939e-05/0.7782, allocations: 43.47 kB / 0.9714 GB, free: 12.45 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.013e-05/0.7783, allocations: 54.88 kB / 0.9715 GB, free: 12.41 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.7784, allocations: 1.312 kB / 0.9715 GB, free: 12.41 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/0.7784, allocations: 5.047 kB / 0.9715 GB, free: 12.41 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.7784, allocations: 3.938 kB / 0.9715 GB, free: 12.41 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006966/0.7791, allocations: 0.6442 MB / 0.9721 GB, free: 11.92 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.7791, allocations: 4 kB / 0.9721 GB, free: 11.91 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006098/0.7797, allocations: 103.8 kB / 0.9722 GB, free: 11.88 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.7797, allocations: 1.094 kB / 0.9722 GB, free: 11.88 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.753e-05/0.7798, allocations: 15.69 kB / 0.9723 GB, free: 11.87 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.09e-06/0.7798, allocations: 5.328 kB / 0.9723 GB, free: 11.86 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.7798, allocations: 3.938 kB / 0.9723 GB, free: 11.86 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002174/0.782, allocations: 0.8926 MB / 0.9731 GB, free: 11.43 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002719/0.7822, allocations: 185 kB / 0.9733 GB, free: 11.26 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.837e-05/0.7823, allocations: 2.531 kB / 0.9733 GB, free: 11.26 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005707/0.7829, allocations: 79.36 kB / 0.9734 GB, free: 11.23 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.516e-05/0.783, allocations: 29.25 kB / 0.9734 GB, free: 11.21 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.067e-05/0.7831, allocations: 18.83 kB / 0.9734 GB, free: 11.2 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0004997/0.7836, allocations: 386.8 kB / 0.9738 GB, free: 10.98 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7836, allocations: 0 / 0.9738 GB, free: 10.98 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0005324/0.7841, allocations: 108.5 kB / 0.9739 GB, free: 10.95 MB / 0.7325 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003019/0.7871, allocations: 1.489 MB / 0.9754 GB, free: 9.445 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.002499/0.7897, allocations: 0.9848 MB / 0.9763 GB, free: 8.449 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.7897, allocations: 4 kB / 0.9763 GB, free: 8.445 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.00111/0.7908, allocations: 451.6 kB / 0.9768 GB, free: 8.004 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005666/0.7914, allocations: 94.75 kB / 0.9769 GB, free: 7.906 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008665/0.8, allocations: 4.651 MB / 0.9814 GB, free: 3.199 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004308/0.8005, allocations: 0.8661 MB / 0.9822 GB, free: 2.305 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0005546/0.8011, allocations: 130.9 kB / 0.9824 GB, free: 2.176 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002626/0.8013, allocations: 132.9 kB / 0.9825 GB, free: 2.047 MB / 0.7325 GB Notification: Performance of SimCode: time 1.133e-06/0.8013, allocations: 4 kB / 0.9825 GB, free: 2.043 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02538/0.8267, allocations: 12.09 MB / 0.9943 GB, free: 6.27 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002177/0.827, allocations: 258.9 kB / 0.9945 GB, free: 5.91 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.928/2.755, allocations: 0 / 0.9945 GB, free: 5.91 MB / 0.7481 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.CoolingCapacityWaterCooled.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.CoolingCapacityWaterCooled.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.CoolingCapacityWaterCooled.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.CoolingCapacityWaterCooled.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.CoolingCapacityWaterCooled_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_CoolingCapacityWaterCooled_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_CoolingCapacityWaterCooled.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.CoolingCapacityWaterCooled.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.CoolingCapacityWaterCooled_res.mat does not exist to compare? outputFormat=mat