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: 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_9_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_9_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.319/2.319, allocations: 387.1 MB / 399.7 MB, free: 9.492 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.001415/0.001415, allocations: 173 kB / 492.3 MB, free: 0.6328 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.755/1.755, allocations: 221.3 MB / 0.7872 GB, free: 12.89 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.0009418/0.0009417, allocations: 84.02 kB / 0.9267 GB, free: 13.96 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.333e-05/5.347e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3686/0.3687, allocations: 142.3 MB / 1.212 GB, free: 38.53 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.34/1.709, allocations: 439.6 MB / 1.642 GB, free: 7.211 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002574/1.709, allocations: 90.83 kB / 1.642 GB, free: 7.168 MB / 1.057 GB Notification: Performance of FrontEnd - DAE generated: time 2.778/4.487, allocations: 0.5666 GB / 2.208 GB, free: 240 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.214e-06/4.487, allocations: 0 / 2.208 GB, free: 240 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0002089/4.488, allocations: 46 kB / 2.208 GB, free: 240 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.005837/4.493, allocations: 1.959 MB / 2.21 GB, free: 239.5 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.687e-05/4.493, allocations: 10.08 kB / 2.21 GB, free: 239.5 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005686/4.499, allocations: 0.679 MB / 2.211 GB, free: 239.4 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005452/4.505, allocations: 1.881 MB / 2.213 GB, free: 239 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001888/4.505, allocations: 130.2 kB / 2.213 GB, free: 239 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002875/4.505, allocations: 123.3 kB / 2.213 GB, free: 239 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003674/4.509, allocations: 1.566 MB / 2.215 GB, free: 238.7 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.213e-05/4.509, allocations: 6.703 kB / 2.215 GB, free: 238.7 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001943/4.509, allocations: 59.53 kB / 2.215 GB, free: 238.7 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001114/4.509, allocations: 55.02 kB / 2.215 GB, free: 238.7 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00277/4.512, allocations: 1.194 MB / 2.216 GB, free: 238.7 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.01357/4.526, allocations: 7.518 MB / 2.223 GB, free: 235.3 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002816/4.528, allocations: 0.9189 MB / 2.224 GB, free: 235.3 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001173/4.53, allocations: 476.8 kB / 2.225 GB, free: 235.3 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001946/4.532, allocations: 1.27 MB / 2.226 GB, free: 233.9 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00136/4.533, allocations: 0.5737 MB / 2.226 GB, free: 233.8 MB / 1.151 GB Notification: Performance of pre-optimization done (n=79): time 6.161e-06/4.533, allocations: 0 / 2.226 GB, free: 233.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=79): time 0.00507/4.538, allocations: 1.212 MB / 2.228 GB, free: 233.7 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.627e-05/4.538, allocations: 163.9 kB / 2.228 GB, free: 233.5 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002572/4.541, allocations: 1.16 MB / 2.229 GB, free: 233.3 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0002018/4.541, allocations: 47.52 kB / 2.229 GB, free: 233.3 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009049/4.542, allocations: 0.7432 MB / 2.23 GB, free: 233.1 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003944/4.542, allocations: 267.5 kB / 2.23 GB, free: 233 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.828e-05/4.542, allocations: 21.19 kB / 2.23 GB, free: 233 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001391/4.542, allocations: 340 kB / 2.23 GB, free: 232.7 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008135/4.543, allocations: 387.4 kB / 2.231 GB, free: 232.7 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001079/4.544, allocations: 0.6826 MB / 2.231 GB, free: 232.3 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009154/4.545, allocations: 438.2 kB / 2.232 GB, free: 232.3 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.135e-06/4.545, allocations: 4.109 kB / 2.232 GB, free: 232.3 MB / 1.151 GB Notification: Performance of matching and sorting (n=111) (initialization): time 0.003053/4.548, allocations: 1.321 MB / 2.233 GB, free: 232.2 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008952/4.549, allocations: 2.408 MB / 2.235 GB, free: 229.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.57e-05/4.549, allocations: 3.938 kB / 2.235 GB, free: 229.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001809/4.551, allocations: 0.524 MB / 2.236 GB, free: 229.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001305/4.552, allocations: 242.8 kB / 2.236 GB, free: 229.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00143/4.554, allocations: 1.093 MB / 2.237 GB, free: 229.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00281/4.557, allocations: 247.2 kB / 2.237 GB, free: 229.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000145/4.557, allocations: 57.17 kB / 2.237 GB, free: 229.2 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/4.557, allocations: 7.75 kB / 2.237 GB, free: 229.2 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002306/4.559, allocations: 1.16 MB / 2.239 GB, free: 229.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/4.559, allocations: 7.438 kB / 2.239 GB, free: 229.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001521/4.561, allocations: 0.5157 MB / 2.239 GB, free: 229.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001213/4.562, allocations: 235.4 kB / 2.239 GB, free: 229.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001246/4.563, allocations: 1.09 MB / 2.24 GB, free: 228.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002587/4.566, allocations: 227.1 kB / 2.241 GB, free: 228.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001212/4.566, allocations: 52.91 kB / 2.241 GB, free: 228.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.0004419/4.566, allocations: 165.4 kB / 2.241 GB, free: 228.4 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003686/4.567, allocations: 156.8 kB / 2.241 GB, free: 228.4 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002662/4.569, allocations: 1.351 MB / 2.242 GB, free: 228.3 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.648e-05/4.57, allocations: 7.75 kB / 2.242 GB, free: 228.3 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.207e-06/4.57, allocations: 7.109 kB / 2.242 GB, free: 228.3 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001679/4.571, allocations: 1.114 MB / 2.243 GB, free: 228.1 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006545/4.578, allocations: 3.003 MB / 2.246 GB, free: 227.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.003e-05/4.578, allocations: 3.688 kB / 2.246 GB, free: 227.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001201/4.579, allocations: 179.2 kB / 2.246 GB, free: 227.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001635/4.581, allocations: 0.4948 MB / 2.247 GB, free: 227.7 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001234/4.581, allocations: 38.83 kB / 2.247 GB, free: 227.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001567/4.582, allocations: 1.071 MB / 2.248 GB, free: 227.1 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.328e-06/4.582, allocations: 6.844 kB / 2.248 GB, free: 227.1 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003394/4.586, allocations: 1.377 MB / 2.249 GB, free: 226.8 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001495/4.587, allocations: 425.2 kB / 2.25 GB, free: 226.6 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003528/4.588, allocations: 17.3 kB / 2.25 GB, free: 226.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002019/4.59, allocations: 165.9 kB / 2.25 GB, free: 226.6 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002196/4.59, allocations: 55.59 kB / 2.25 GB, free: 226.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001708/4.59, allocations: 55.27 kB / 2.25 GB, free: 226.6 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.002255/4.592, allocations: 0.899 MB / 2.251 GB, free: 226.5 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.6e-07/4.592, allocations: 0 / 2.251 GB, free: 226.5 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.005615/4.598, allocations: 1.083 MB / 2.252 GB, free: 226.4 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.004495/4.603, allocations: 1.198 MB / 2.253 GB, free: 226.2 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.00506/4.608, allocations: 1.651 MB / 2.255 GB, free: 226.1 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.144e-05/4.608, allocations: 1.031 kB / 2.255 GB, free: 226.1 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.001286/4.609, allocations: 0.5063 MB / 2.255 GB, free: 226.1 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00483/4.614, allocations: 0.7556 MB / 2.256 GB, free: 226.1 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005027/4.619, allocations: 1.949 MB / 2.258 GB, free: 225.5 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001347/4.62, allocations: 1.304 MB / 2.259 GB, free: 224.8 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.002818/4.623, allocations: 490.5 kB / 2.26 GB, free: 224.8 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000303/4.623, allocations: 110.5 kB / 2.26 GB, free: 224.8 MB / 1.151 GB Notification: Performance of SimCode: time 1.172e-06/4.623, allocations: 0 / 2.26 GB, free: 224.8 MB / 1.151 GB Notification: Performance of Templates: time 0.07377/4.697, allocations: 44.97 MB / 2.304 GB, free: 223.5 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater.makefile (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 & ./Buildings_9_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatPumps_Calibration_ScrollWaterToWater.csv","../files/Buildings_9_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches