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.001018/0.001018, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.001037/0.001037, allocations: 172.7 kB / 15.95 MB, free: 208 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.362/1.362, allocations: 223.3 MB / 240 MB, free: 5.375 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.364/2.364, allocations: 390.4 MB / 0.6655 GB, free: 2.938 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000332/0.0003322, allocations: 12 kB / 0.8149 GB, free: 14.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6782/0.6786, allocations: 142.3 MB / 0.9539 GB, free: 8.145 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.CoolingCapacityWaterCooled): time 0.002478/0.6811, allocations: 2.457 MB / 0.9563 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002482/0.6836, allocations: 2.076 MB / 0.9583 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000163/0.6838, allocations: 1.812 kB / 0.9583 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0006244/0.6844, allocations: 227.2 kB / 0.9585 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001195/0.6846, allocations: 64.67 kB / 0.9586 GB, free: 4.367 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.001006/0.6856, allocations: 429.2 kB / 0.959 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0005046/0.6861, allocations: 432.1 kB / 0.9594 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001314/0.6862, allocations: 50.91 kB / 0.9594 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001876/0.6864, allocations: 178.1 kB / 0.9596 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001906/0.6866, allocations: 190.9 kB / 0.9598 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.798e-05/0.6867, allocations: 23.38 kB / 0.9598 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003654/0.6871, allocations: 232.4 kB / 0.96 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001454/0.6872, allocations: 145.4 kB / 0.9602 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.333e-05/0.6873, allocations: 95.11 kB / 0.9603 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005159/0.6878, allocations: 0.5767 MB / 0.9608 GB, free: 2.922 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.6879, allocations: 0 / 0.9608 GB, free: 2.922 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.393e-06/0.6879, allocations: 0.9688 kB / 0.9608 GB, free: 2.922 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.521e-06/0.6879, allocations: 4 kB / 0.9608 GB, free: 2.918 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.001075/0.689, allocations: 0.7697 MB / 0.9616 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.689, allocations: 9.719 kB / 0.9616 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.338e-05/0.6891, allocations: 51.45 kB / 0.9616 GB, free: 2.191 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001861/0.6909, allocations: 240.4 kB / 0.9619 GB, free: 2.094 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005431/0.6915, allocations: 406.1 kB / 0.9623 GB, free: 1.742 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000101/0.6916, allocations: 84.62 kB / 0.9623 GB, free: 1.664 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.68e-05/0.6917, allocations: 13.62 kB / 0.9624 GB, free: 1.66 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001169/0.6928, allocations: 0.5646 MB / 0.9629 GB, free: 1.363 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.6929, allocations: 3.953 kB / 0.9629 GB, free: 1.359 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.718e-05/0.6929, allocations: 1.094 kB / 0.9629 GB, free: 1.359 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.633e-06/0.6929, allocations: 2.5 kB / 0.9629 GB, free: 1.359 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001716/0.6946, allocations: 0.8159 MB / 0.9637 GB, free: 1.016 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002157/0.6968, allocations: 1.293 MB / 0.965 GB, free: 132 kB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004815/0.7016, allocations: 1.078 MB / 0.966 GB, free: 15.68 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001025/0.7027, allocations: 429 kB / 0.9664 GB, free: 15.5 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.851e-05/0.7027, allocations: 5.031 kB / 0.9664 GB, free: 15.5 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001234/0.704, allocations: 0.5609 MB / 0.967 GB, free: 15.2 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=21): time 5.179e-06/0.704, allocations: 3.984 kB / 0.967 GB, free: 15.19 MB / 0.7325 GB Notification: Performance of matching and sorting (n=21): time 0.003324/0.7073, allocations: 1.266 MB / 0.9682 GB, free: 14.63 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.187e-05/0.7074, allocations: 54.88 kB / 0.9683 GB, free: 14.57 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007533/0.7082, allocations: 0.5173 MB / 0.9688 GB, free: 14.26 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 8.53e-05/0.7083, allocations: 33.2 kB / 0.9688 GB, free: 14.22 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001743/0.7084, allocations: 204.1 kB / 0.969 GB, free: 14.04 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 7.978e-05/0.7085, allocations: 63.86 kB / 0.9691 GB, free: 13.98 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.435e-05/0.7086, allocations: 6.156 kB / 0.9691 GB, free: 13.98 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001379/0.7087, allocations: 356.2 kB / 0.9694 GB, free: 13.64 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001074/0.7098, allocations: 495.3 kB / 0.9699 GB, free: 13.42 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001089/0.7109, allocations: 0.5195 MB / 0.9704 GB, free: 13.19 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009799/0.7119, allocations: 466 kB / 0.9708 GB, free: 12.97 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.7119, allocations: 0 / 0.9708 GB, free: 12.97 MB / 0.7325 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.002453/0.7144, allocations: 1.142 MB / 0.972 GB, free: 12.44 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 6.407e-05/0.7144, allocations: 44.38 kB / 0.972 GB, free: 12.4 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.766e-06/0.7144, allocations: 3.953 kB / 0.972 GB, free: 12.4 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.7145, allocations: 5.125 kB / 0.972 GB, free: 12.39 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005794/0.7151, allocations: 103.3 kB / 0.9721 GB, free: 12.36 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.478e-06/0.7151, allocations: 1.469 kB / 0.9721 GB, free: 12.36 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005357/0.7156, allocations: 76.58 kB / 0.9722 GB, free: 12.33 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.083e-05/0.7157, allocations: 20.23 kB / 0.9722 GB, free: 12.32 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.0003887/0.7161, allocations: 209 kB / 0.9724 GB, free: 12.15 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.412e-05/0.7162, allocations: 44.59 kB / 0.9724 GB, free: 12.12 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.097e-05/0.7163, allocations: 57.38 kB / 0.9725 GB, free: 12.08 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.427e-06/0.7163, allocations: 6.547 kB / 0.9725 GB, free: 12.08 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/0.7163, allocations: 0 / 0.9725 GB, free: 12.08 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.7163, allocations: 1.375 kB / 0.9725 GB, free: 12.08 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006797/0.717, allocations: 0.6391 MB / 0.9731 GB, free: 11.59 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.717, allocations: 0 / 0.9731 GB, free: 11.59 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005577/0.7176, allocations: 112.7 kB / 0.9732 GB, free: 11.55 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.7176, allocations: 0 / 0.9732 GB, free: 11.55 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.973e-05/0.7176, allocations: 15.95 kB / 0.9732 GB, free: 11.54 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.7176, allocations: 5.312 kB / 0.9733 GB, free: 11.54 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.7176, allocations: 4 kB / 0.9733 GB, free: 11.53 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001997/0.7196, allocations: 0.892 MB / 0.9741 GB, free: 11 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002421/0.7199, allocations: 184.5 kB / 0.9743 GB, free: 10.8 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.367e-05/0.72, allocations: 7.938 kB / 0.9743 GB, free: 10.8 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004944/0.7205, allocations: 87.88 kB / 0.9744 GB, free: 10.71 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.225e-05/0.7206, allocations: 27.95 kB / 0.9744 GB, free: 10.68 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.406e-05/0.7206, allocations: 7.984 kB / 0.9744 GB, free: 10.68 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0004316/0.721, allocations: 387.1 kB / 0.9748 GB, free: 10.3 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7211, allocations: 0 / 0.9748 GB, free: 10.3 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004641/0.7215, allocations: 103.9 kB / 0.9749 GB, free: 10.2 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.002486/0.724, allocations: 1.486 MB / 0.9764 GB, free: 8.699 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.002073/0.7261, allocations: 0.9926 MB / 0.9773 GB, free: 7.695 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.938e-06/0.7261, allocations: 3.938 kB / 0.9773 GB, free: 7.691 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0009508/0.7271, allocations: 451.6 kB / 0.9778 GB, free: 7.25 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005544/0.7276, allocations: 102.7 kB / 0.9779 GB, free: 7.145 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008/0.7356, allocations: 4.721 MB / 0.9825 GB, free: 2.367 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003888/0.7361, allocations: 0.8544 MB / 0.9833 GB, free: 1.484 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.000578/0.7367, allocations: 134.9 kB / 0.9834 GB, free: 1.352 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002642/0.7369, allocations: 131.4 kB / 0.9836 GB, free: 1.223 MB / 0.7325 GB Notification: Performance of SimCode: time 5.91e-07/0.7369, allocations: 0 / 0.9836 GB, free: 1.223 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02301/0.76, allocations: 12.12 MB / 0.9954 GB, free: 5.426 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001971/0.7602, allocations: 266.6 kB / 0.9956 GB, free: 5.066 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.978/2.738, allocations: 2.234 kB / 0.9956 GB, free: 5.066 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