Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.CoolingTowers.Correlations.Examples.YorkCalc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.CoolingTowers.Correlations.Examples.YorkCalc,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_CoolingTowers_Correlations_Examples_YorkCalc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.CoolingTowers.Correlations.Examples.YorkCalc,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_CoolingTowers_Correlations_Examples_YorkCalc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.166/2.166, allocations: 390.3 MB / 405.3 MB, free: 13.52 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001175/0.001175, allocations: 175.4 kB / 498.1 MB, free: 5.77 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.426/1.426, allocations: 223.2 MB / 0.7948 GB, free: 18.92 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009434/0.0009433, allocations: 98.58 kB / 0.9346 GB, free: 7.207 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004089/0.0004089, allocations: 10.22 kB / 1.084 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2402/0.2406, allocations: 142.3 MB / 1.223 GB, free: 89.5 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1843/0.425, allocations: 150.4 MB / 1.37 GB, free: 2.887 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002809/0.4253, allocations: 87.94 kB / 1.37 GB, free: 2.801 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.007888/0.4332, allocations: 2.415 MB / 1.372 GB, free: 392 kB / 0.8698 GB Notification: Performance of FrontEnd: time 2.655e-06/0.4333, allocations: 4 kB / 1.372 GB, free: 388 kB / 0.8698 GB Notification: Performance of Transformations before backend: time 6.633e-06/0.4333, allocations: 0 / 1.372 GB, free: 388 kB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003363/0.4336, allocations: 339.3 kB / 1.373 GB, free: 0 / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 7.162e-05/0.4337, allocations: 12.08 kB / 1.373 GB, free: 15.98 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.342e-05/0.4338, allocations: 34.5 kB / 1.373 GB, free: 15.94 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.557e-05/0.4338, allocations: 3.906 kB / 1.373 GB, free: 15.94 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001225/0.4339, allocations: 163 kB / 1.373 GB, free: 15.74 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.989e-05/0.434, allocations: 4 kB / 1.373 GB, free: 15.73 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.043e-05/0.434, allocations: 0 / 1.373 GB, free: 15.73 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001006/0.4341, allocations: 41.64 kB / 1.373 GB, free: 15.69 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.4341, allocations: 0 / 1.373 GB, free: 15.69 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.137e-06/0.4341, allocations: 3.984 kB / 1.373 GB, free: 15.69 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.4341, allocations: 0 / 1.373 GB, free: 15.69 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.531e-05/0.4342, allocations: 15.92 kB / 1.373 GB, free: 15.67 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000177/0.4344, allocations: 153.6 kB / 1.373 GB, free: 15.47 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 9.17e-05/0.4345, allocations: 34.67 kB / 1.373 GB, free: 15.43 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001171/0.4356, allocations: 0.555 MB / 1.374 GB, free: 14.8 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.651e-05/0.4357, allocations: 34.56 kB / 1.374 GB, free: 14.76 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=3): time 1.252e-06/0.4357, allocations: 0 / 1.374 GB, free: 14.76 MB / 0.8855 GB Notification: Performance of matching and sorting (n=3): time 0.0001573/0.4359, allocations: 49.62 kB / 1.374 GB, free: 14.7 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.542e-05/0.4359, allocations: 51.41 kB / 1.374 GB, free: 14.64 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.186e-05/0.436, allocations: 89 kB / 1.374 GB, free: 14.55 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 1.52e-05/0.436, allocations: 29.7 kB / 1.374 GB, free: 14.51 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 3.036e-05/0.436, allocations: 80.14 kB / 1.374 GB, free: 14.43 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.806e-05/0.4361, allocations: 11.84 kB / 1.374 GB, free: 14.42 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.625e-06/0.4361, allocations: 4.125 kB / 1.374 GB, free: 14.41 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001073/0.4362, allocations: 318.8 kB / 1.374 GB, free: 14.09 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.651e-05/0.4362, allocations: 8 kB / 1.374 GB, free: 14.09 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.267e-06/0.4362, allocations: 0 / 1.374 GB, free: 14.09 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.435e-05/0.4362, allocations: 4 kB / 1.374 GB, free: 14.08 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.4363, allocations: 0 / 1.374 GB, free: 14.08 MB / 0.8855 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.017e-05/0.4363, allocations: 53.53 kB / 1.374 GB, free: 14.02 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.4364, allocations: 4 kB / 1.374 GB, free: 14.02 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.4364, allocations: 3.938 kB / 1.374 GB, free: 14.02 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.359e-05/0.4364, allocations: 4 kB / 1.374 GB, free: 14.01 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.08e-05/0.4364, allocations: 8 kB / 1.374 GB, free: 14 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.175e-06/0.4365, allocations: 3.984 kB / 1.374 GB, free: 14 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.568e-05/0.4365, allocations: 0 / 1.374 GB, free: 14 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.629e-06/0.4365, allocations: 0 / 1.374 GB, free: 14 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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 7.726e-05/0.4366, allocations: 121.8 kB / 1.374 GB, free: 13.87 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.127e-06/0.4366, allocations: 0 / 1.374 GB, free: 13.87 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000134/0.4367, allocations: 57.06 kB / 1.374 GB, free: 13.8 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.4367, allocations: 4 kB / 1.374 GB, free: 13.8 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.4368, allocations: 0 / 1.374 GB, free: 13.8 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.4368, allocations: 0 / 1.374 GB, free: 13.8 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001368/0.4369, allocations: 161.6 kB / 1.375 GB, free: 13.59 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.4369, allocations: 4 kB / 1.375 GB, free: 13.59 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.585e-05/0.4369, allocations: 4 kB / 1.375 GB, free: 13.59 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.4369, allocations: 0 / 1.375 GB, free: 13.59 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.663e-06/0.437, allocations: 0 / 1.375 GB, free: 13.59 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.437, allocations: 0 / 1.375 GB, free: 13.59 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.437, allocations: 0 / 1.375 GB, free: 13.59 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.519e-05/0.4371, allocations: 73.48 kB / 1.375 GB, free: 13.5 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.491e-05/0.4371, allocations: 88.95 kB / 1.375 GB, free: 13.39 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.427e-05/0.4371, allocations: 8 kB / 1.375 GB, free: 13.38 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.198e-05/0.4372, allocations: 0 / 1.375 GB, free: 13.38 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.698e-05/0.4372, allocations: 3.938 kB / 1.375 GB, free: 13.38 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.206e-06/0.4372, allocations: 0 / 1.375 GB, free: 13.38 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 3.304e-05/0.4372, allocations: 79.28 kB / 1.375 GB, free: 13.3 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4372, allocations: 0 / 1.375 GB, free: 13.3 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002183/0.4375, allocations: 32.03 kB / 1.375 GB, free: 13.27 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0005185/0.438, allocations: 0.6395 MB / 1.376 GB, free: 12.6 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 8.634e-05/0.4381, allocations: 23.94 kB / 1.376 GB, free: 12.58 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.4381, allocations: 0 / 1.376 GB, free: 12.58 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 1.814e-05/0.4381, allocations: 7.984 kB / 1.376 GB, free: 12.57 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001891/0.4383, allocations: 7.938 kB / 1.376 GB, free: 12.56 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003998/0.4387, allocations: 157.5 kB / 1.376 GB, free: 12.36 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002307/0.439, allocations: 0.677 MB / 1.376 GB, free: 11.66 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 3.605e-05/0.439, allocations: 11.94 kB / 1.376 GB, free: 11.65 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.97e-05/0.4391, allocations: 11.44 kB / 1.376 GB, free: 11.64 MB / 0.8855 GB Notification: Performance of SimCode: time 6.41e-07/0.4391, allocations: 0 / 1.376 GB, free: 11.64 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01521/0.4543, allocations: 1.437 MB / 1.378 GB, free: 10.37 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002277/0.4545, allocations: 212 kB / 1.378 GB, free: 10.12 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.616/2.071, allocations: 3.938 kB / 1.378 GB, free: 10.12 MB / 0.8855 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.CoolingTowers.Correlations.Examples.YorkCalc.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.CoolingTowers.Correlations.Examples.YorkCalc.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.CoolingTowers.Correlations.Examples.YorkCalc.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.CoolingTowers.Correlations.Examples.YorkCalc.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.CoolingTowers.Correlations.Examples.YorkCalc_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_CoolingTowers_Correlations_Examples_YorkCalc_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_CoolingTowers_Correlations_Examples_YorkCalc.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.CoolingTowers.Correlations.Examples.YorkCalc.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.HeatExchangers.CoolingTowers.Correlations.Examples.YorkCalc_res.mat does not exist to compare? outputFormat=mat