Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater.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.HeatPumps.Calibration.ScrollWaterToWater,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatPumps_Calibration_ScrollWaterToWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatPumps_Calibration_ScrollWaterToWater",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.338/2.338, allocations: 390.3 MB / 405.3 MB, free: 13.47 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.00113/0.00113, allocations: 175.4 kB / 498.1 MB, free: 5.734 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.688/1.688, allocations: 223.1 MB / 0.7948 GB, free: 17.93 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.001177/0.001177, allocations: 105 kB / 0.9346 GB, free: 6.203 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000414/0.000414, allocations: 15.34 kB / 1.084 GB, free: 221.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3369/0.3373, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.226/1.563, allocations: 439.7 MB / 1.652 GB, free: 5.176 MB / 0.9636 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002907/1.564, allocations: 100.3 kB / 1.652 GB, free: 5.125 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 1.914/3.478, allocations: 0.5685 GB / 2.221 GB, free: 110 MB / 1.167 GB Notification: Performance of FrontEnd: time 2.134e-06/3.478, allocations: 0 / 2.221 GB, free: 110 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.000292/3.478, allocations: 43.98 kB / 2.221 GB, free: 110 MB / 1.167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 312 * Number of variables: 312 Notification: Performance of Generate backend data structure: time 0.006784/3.485, allocations: 2.255 MB / 2.223 GB, free: 107.7 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 5.077e-05/3.485, allocations: 8.031 kB / 2.223 GB, free: 107.6 MB / 1.167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00068/3.485, allocations: 193.8 kB / 2.223 GB, free: 107.4 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005461/3.491, allocations: 0.6845 MB / 2.224 GB, free: 106.8 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005065/3.496, allocations: 1.889 MB / 2.226 GB, free: 104.8 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002068/3.496, allocations: 132.1 kB / 2.226 GB, free: 104.7 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004413/3.497, allocations: 120 kB / 2.226 GB, free: 104.6 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004926/3.502, allocations: 1.746 MB / 2.228 GB, free: 102.7 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.532e-05/3.502, allocations: 3.938 kB / 2.228 GB, free: 102.7 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002179/3.502, allocations: 67.94 kB / 2.228 GB, free: 102.6 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.419e-05/3.502, allocations: 50.3 kB / 2.228 GB, free: 102.6 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004659/3.507, allocations: 1.527 MB / 2.229 GB, free: 101.1 MB / 1.167 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009899/3.517, allocations: 7.524 MB / 2.237 GB, free: 93.16 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003895/3.521, allocations: 1.229 MB / 2.238 GB, free: 91.91 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001039/3.522, allocations: 1.279 MB / 2.239 GB, free: 90.36 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002124/3.524, allocations: 0.7225 MB / 2.24 GB, free: 89.62 MB / 1.167 GB Notification: Performance of pre-optimization done (n=79): time 3.236e-06/3.524, allocations: 0 / 2.24 GB, free: 89.62 MB / 1.167 GB Notification: Performance of matching and sorting (n=79): time 0.02186/3.546, allocations: 3.581 MB / 2.243 GB, free: 86.01 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.678e-05/3.546, allocations: 166.9 kB / 2.244 GB, free: 85.81 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002213/3.548, allocations: 1.189 MB / 2.245 GB, free: 84.61 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0002289/3.548, allocations: 49.7 kB / 2.245 GB, free: 84.55 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006277/3.549, allocations: 0.7272 MB / 2.245 GB, free: 83.82 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002937/3.549, allocations: 268.1 kB / 2.246 GB, free: 83.55 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.109e-05/3.549, allocations: 20 kB / 2.246 GB, free: 83.54 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001132/3.549, allocations: 337.9 kB / 2.246 GB, free: 83.2 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001885/3.551, allocations: 0.5484 MB / 2.247 GB, free: 82.65 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002013/3.553, allocations: 0.8529 MB / 2.247 GB, free: 81.68 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001882/3.555, allocations: 0.5946 MB / 2.248 GB, free: 81.08 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.424e-06/3.555, allocations: 4 kB / 2.248 GB, free: 81.08 MB / 1.167 GB Notification: Performance of matching and sorting (n=111) (initialization): time 0.005072/3.56, allocations: 1.695 MB / 2.25 GB, free: 79.37 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.000477/3.561, allocations: 2.401 MB / 2.252 GB, free: 76.83 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.289e-05/3.561, allocations: 8 kB / 2.252 GB, free: 76.82 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001809/3.563, allocations: 0.5833 MB / 2.253 GB, free: 76.24 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001371/3.564, allocations: 243.6 kB / 2.253 GB, free: 76 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001753/3.566, allocations: 1.185 MB / 2.254 GB, free: 74.79 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002466/3.568, allocations: 246.8 kB / 2.254 GB, free: 74.54 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001187/3.568, allocations: 51.95 kB / 2.254 GB, free: 74.49 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.186e-05/3.568, allocations: 4 kB / 2.254 GB, free: 74.49 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004428/3.573, allocations: 1.515 MB / 2.256 GB, free: 72.97 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/3.573, allocations: 4 kB / 2.256 GB, free: 72.97 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001665/3.575, allocations: 0.5677 MB / 2.256 GB, free: 72.4 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001284/3.576, allocations: 239.6 kB / 2.257 GB, free: 72.16 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001622/3.577, allocations: 1.193 MB / 2.258 GB, free: 70.95 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002356/3.58, allocations: 219 kB / 2.258 GB, free: 70.73 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000118/3.58, allocations: 59.88 kB / 2.258 GB, free: 70.67 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$PRE.calDat.nextTimeEvent,calDat.nextTimeEvent,$PRE.calDat.nextTimeEventScaled,calDat.nextTimeEventScaled,$PRE.heaPum.com.isOn,heaPum.com.isOn) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 25} Notification: Performance of prepare postOptimizeDAE: time 0.001094/3.581, allocations: 477.4 kB / 2.258 GB, free: 70.2 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003308/3.581, allocations: 150.2 kB / 2.259 GB, free: 70.05 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004801/3.586, allocations: 1.665 MB / 2.26 GB, free: 68.36 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.33e-05/3.586, allocations: 8 kB / 2.26 GB, free: 68.35 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.634e-06/3.586, allocations: 3.953 kB / 2.26 GB, free: 68.35 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004234/3.591, allocations: 1.457 MB / 2.262 GB, free: 66.86 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007798/3.598, allocations: 3.325 MB / 2.265 GB, free: 63.45 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.087e-06/3.598, allocations: 0 / 2.265 GB, free: 63.45 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001201/3.6, allocations: 187.8 kB / 2.265 GB, free: 63.27 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001734/3.601, allocations: 0.5512 MB / 2.266 GB, free: 62.71 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.628e-05/3.601, allocations: 35.89 kB / 2.266 GB, free: 62.68 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001668/3.603, allocations: 1.174 MB / 2.267 GB, free: 61.48 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/3.603, allocations: 3.953 kB / 2.267 GB, free: 61.48 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004926/3.608, allocations: 1.711 MB / 2.268 GB, free: 59.7 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001107/3.609, allocations: 418.9 kB / 2.269 GB, free: 59.27 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002226/3.609, allocations: 20 kB / 2.269 GB, free: 59.25 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001879/3.611, allocations: 171.7 kB / 2.269 GB, free: 59.09 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001058/3.611, allocations: 52.58 kB / 2.269 GB, free: 59.04 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001077/3.612, allocations: 55.94 kB / 2.269 GB, free: 58.98 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.001356/3.613, allocations: 0.9299 MB / 2.27 GB, free: 58.05 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.4e-07/3.613, allocations: 0 / 2.27 GB, free: 58.05 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.003012/3.616, allocations: 1.072 MB / 2.271 GB, free: 56.98 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,calDat.nextTimeEvent,calDat.nextTimeEventScaled,heaPum.com.isOn) * Number of discrete states: 3 (calDat.nextTimeEvent,heaPum.com.isOn,calDat.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 25} Notification: Performance of Backend phase and start with SimCode phase: time 0.00755/3.624, allocations: 3.669 MB / 2.275 GB, free: 53.45 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.006745/3.63, allocations: 2.066 MB / 2.277 GB, free: 51.39 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 9.097e-06/3.63, allocations: 8.062 kB / 2.277 GB, free: 51.38 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.002166/3.633, allocations: 0.6551 MB / 2.277 GB, free: 50.72 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003794/3.636, allocations: 0.7611 MB / 2.278 GB, free: 49.97 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02219/3.659, allocations: 13.73 MB / 2.291 GB, free: 35.79 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006581/3.659, allocations: 1.298 MB / 2.293 GB, free: 34.46 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.002111/3.661, allocations: 391.9 kB / 2.293 GB, free: 34.07 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008185/3.662, allocations: 0.6319 MB / 2.294 GB, free: 33.44 MB / 1.167 GB Notification: Performance of SimCode: time 1.964e-06/3.662, allocations: 0 / 2.294 GB, free: 33.44 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7138/4.376, allocations: 57.02 MB / 2.349 GB, free: 245.7 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000233/4.376, allocations: 267.7 kB / 2.35 GB, free: 245.3 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.019/8.395, allocations: 0 / 2.35 GB, free: 245.3 MB / 1.167 GB (rm -f Buildings_9_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatPumps_Calibration_ScrollWaterToWater_fmu --startTime=0 --stopTime=142 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatPumps_Calibration_ScrollWaterToWater.fmu > Buildings_9_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater_res.mat does not exist to compare? outputFormat=mat