Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum.m1_flow|heaPum.m2_flow|heaPum.sta_a1.T|heaPum.sta_b1.T|heaPum.sta_a2.T|heaPum.sta_b2.T|heaPum.QCon_flow|heaPum.QEva_flow|heaPum.P",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater") translateModel(Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum.m1_flow|heaPum.m2_flow|heaPum.sta_a1.T|heaPum.sta_b1.T|heaPum.sta_a2.T|heaPum.sta_b2.T|heaPum.QCon_flow|heaPum.QEva_flow|heaPum.P",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.396/2.396, allocations: 390.5 MB / 398 MB, free: 10.99 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.001171/0.001171, allocations: 179.2 kB / 491.2 MB, free: 1.605 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.651/1.651, allocations: 221.5 MB / 0.7868 GB, free: 13.3 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.000859/0.0008589, allocations: 99.47 kB / 0.9269 GB, free: 13.78 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.252e-05/1.254e-05, allocations: 4 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2794/0.2795, allocations: 143 MB / 1.212 GB, free: 39.55 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.334/1.614, allocations: 439.8 MB / 1.642 GB, free: 7.457 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002917/1.614, allocations: 87.64 kB / 1.642 GB, free: 7.414 MB / 1.057 GB Notification: Performance of FrontEnd - DAE generated: time 2.919/4.533, allocations: 0.5637 GB / 2.206 GB, free: 238.9 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.373e-06/4.533, allocations: 0.9375 kB / 2.206 GB, free: 238.9 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0002087/4.533, allocations: 47.66 kB / 2.206 GB, free: 238.9 MB / 1.151 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.007209/4.54, allocations: 1.956 MB / 2.207 GB, free: 238.4 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 7.588e-05/4.541, allocations: 12.81 kB / 2.208 GB, free: 238.4 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005845/4.546, allocations: 0.6908 MB / 2.208 GB, free: 238.3 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006046/4.552, allocations: 1.877 MB / 2.21 GB, free: 237.9 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001815/4.553, allocations: 87 kB / 2.21 GB, free: 237.9 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002518/4.553, allocations: 75.34 kB / 2.21 GB, free: 237.9 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002746/4.556, allocations: 1.109 MB / 2.211 GB, free: 237.9 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003023/4.559, allocations: 1.386 MB / 2.213 GB, free: 237.6 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.308e-05/4.559, allocations: 3.984 kB / 2.213 GB, free: 237.6 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001326/4.559, allocations: 7 kB / 2.213 GB, free: 237.6 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.346e-05/4.559, allocations: 54.56 kB / 2.213 GB, free: 237.6 MB / 1.151 GB Warning: The model contains alias variables with conflicting start and/or 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.01339/4.572, allocations: 7.276 MB / 2.22 GB, free: 234.3 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002379/4.575, allocations: 0.9028 MB / 2.221 GB, free: 234.3 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009991/4.576, allocations: 463.3 kB / 2.221 GB, free: 234.3 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001679/4.578, allocations: 1.269 MB / 2.222 GB, free: 232.9 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001416/4.579, allocations: 0.5474 MB / 2.223 GB, free: 232.8 MB / 1.151 GB Notification: Performance of pre-optimization done (n=79): time 7.855e-06/4.579, allocations: 0 / 2.223 GB, free: 232.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=79): time 0.006447/4.585, allocations: 1.283 MB / 2.224 GB, free: 232.7 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.043e-05/4.586, allocations: 172 kB / 2.224 GB, free: 232.5 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002318/4.588, allocations: 0.9999 MB / 2.225 GB, free: 232.4 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001924/4.588, allocations: 29.89 kB / 2.225 GB, free: 232.3 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009265/4.589, allocations: 0.7403 MB / 2.226 GB, free: 232.1 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003431/4.589, allocations: 265.6 kB / 2.226 GB, free: 232 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.033e-05/4.589, allocations: 0 / 2.226 GB, free: 232 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001099/4.59, allocations: 337 kB / 2.227 GB, free: 231.6 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007013/4.59, allocations: 380.4 kB / 2.227 GB, free: 231.6 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009252/4.591, allocations: 0.6622 MB / 2.228 GB, free: 231.3 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002434/4.594, allocations: 0.5449 MB / 2.228 GB, free: 231.3 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.095e-06/4.594, allocations: 2.312 kB / 2.228 GB, free: 231.3 MB / 1.151 GB Notification: Performance of matching and sorting (n=111) (initialization): time 0.004534/4.598, allocations: 1.368 MB / 2.229 GB, free: 231.2 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008146/4.599, allocations: 2.386 MB / 2.232 GB, free: 228.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.288e-05/4.599, allocations: 11.14 kB / 2.232 GB, free: 228.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001359/4.6, allocations: 436.8 kB / 2.232 GB, free: 228.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001453/4.602, allocations: 244.1 kB / 2.232 GB, free: 228.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001939/4.604, allocations: 1.145 MB / 2.234 GB, free: 228.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002886/4.607, allocations: 218.5 kB / 2.234 GB, free: 228.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001636/4.607, allocations: 58.17 kB / 2.234 GB, free: 228.2 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.86e-05/4.607, allocations: 4.062 kB / 2.234 GB, free: 228.2 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003604/4.611, allocations: 1.188 MB / 2.235 GB, free: 228.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.359e-05/4.611, allocations: 6.156 kB / 2.235 GB, free: 228.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001123/4.612, allocations: 436.6 kB / 2.235 GB, free: 228.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001328/4.613, allocations: 240.8 kB / 2.236 GB, free: 228.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001721/4.615, allocations: 1.144 MB / 2.237 GB, free: 227.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002554/4.617, allocations: 195.5 kB / 2.237 GB, free: 227.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001397/4.618, allocations: 58.31 kB / 2.237 GB, free: 227.6 MB / 1.151 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 () * 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.0004691/4.618, allocations: 131.1 kB / 2.237 GB, free: 227.5 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003962/4.618, allocations: 142.8 kB / 2.237 GB, free: 227.4 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003159/4.622, allocations: 1.286 MB / 2.239 GB, free: 227.3 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.818e-05/4.622, allocations: 15.38 kB / 2.239 GB, free: 227.3 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/4.622, allocations: 0 / 2.239 GB, free: 227.3 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002201/4.624, allocations: 1.098 MB / 2.24 GB, free: 227.1 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006584/4.63, allocations: 2.805 MB / 2.242 GB, free: 226.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.686e-06/4.63, allocations: 2 kB / 2.242 GB, free: 226.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001171/4.632, allocations: 184 kB / 2.243 GB, free: 226.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001108/4.633, allocations: 436.8 kB / 2.243 GB, free: 226.7 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001024/4.633, allocations: 23.75 kB / 2.243 GB, free: 226.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001723/4.635, allocations: 1.142 MB / 2.244 GB, free: 226.2 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.424e-06/4.635, allocations: 4.312 kB / 2.244 GB, free: 226.2 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003149/4.638, allocations: 1.346 MB / 2.245 GB, free: 225.9 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001366/4.639, allocations: 409.3 kB / 2.246 GB, free: 225.7 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006154/4.64, allocations: 6.844 kB / 2.246 GB, free: 225.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002393/4.642, allocations: 147.9 kB / 2.246 GB, free: 225.7 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001563/4.642, allocations: 63.97 kB / 2.246 GB, free: 225.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001792/4.643, allocations: 59.42 kB / 2.246 GB, free: 225.7 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.002026/4.645, allocations: 0.7547 MB / 2.247 GB, free: 225.6 MB / 1.151 GB Notification: Performance of sort global known variables: time 2.61e-07/4.645, allocations: 0 / 2.247 GB, free: 225.6 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.005322/4.65, allocations: 1.034 MB / 2.248 GB, free: 225.5 MB / 1.151 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) * 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.003737/4.654, allocations: 1.179 MB / 2.249 GB, free: 225.3 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.003865/4.658, allocations: 1.562 MB / 2.25 GB, free: 225.2 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.24e-05/4.658, allocations: 3.906 kB / 2.25 GB, free: 225.2 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.001025/4.659, allocations: 496.9 kB / 2.251 GB, free: 225.2 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004329/4.663, allocations: 0.6473 MB / 2.252 GB, free: 225.2 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005943/4.669, allocations: 1.894 MB / 2.253 GB, free: 224.6 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001504/4.67, allocations: 1.307 MB / 2.255 GB, free: 223.9 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.003544/4.674, allocations: 453 kB / 2.255 GB, free: 223.9 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004483/4.674, allocations: 106.1 kB / 2.255 GB, free: 223.9 MB / 1.151 GB Notification: Performance of SimCode: time 1.413e-06/4.674, allocations: 0 / 2.255 GB, free: 223.9 MB / 1.151 GB Notification: Performance of Templates: time 0.06844/4.743, allocations: 38.36 MB / 2.293 GB, free: 222.9 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater.sim & ./Buildings_latest_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatPumps_Calibration_ScrollWaterToWater.csv","../files/Buildings_latest_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches