Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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: translateModel(Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater") translateModel(Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00117/0.00117, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001592/0.001592, allocations: 191.1 kB / 16.25 MB, free: 6.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.369/1.369, allocations: 222.9 MB / 239.9 MB, free: 4.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.786/2.786, allocations: 472.6 MB / 0.7448 GB, free: 4.891 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 64.33 kB / 0.9115 GB, free: 33.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3634/0.3646, allocations: 159.9 MB / 1.068 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater): time 0.1236/0.4883, allocations: 125 MB / 1.19 GB, free: 13.39 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.02182/0.5101, allocations: 15.31 MB / 1.205 GB, free: 14.04 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003151/0.5133, allocations: 71.56 kB / 1.205 GB, free: 13.97 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.003304/0.5167, allocations: 0.8355 MB / 1.206 GB, free: 13.13 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.00828/0.525, allocations: 2.419 MB / 1.208 GB, free: 10.71 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.00645/0.5315, allocations: 1.956 MB / 1.21 GB, free: 8.773 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.007715/0.5392, allocations: 4.826 MB / 1.215 GB, free: 3.93 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003063/0.5423, allocations: 1.685 MB / 1.216 GB, free: 2.211 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00466/0.547, allocations: 1.846 MB / 1.218 GB, free: 372 kB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002333/0.5493, allocations: 1.365 MB / 1.219 GB, free: 14.99 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0004381/0.5498, allocations: 204 kB / 1.22 GB, free: 14.79 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004321/0.5541, allocations: 2.016 MB / 1.221 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0006129/0.5548, allocations: 0.5022 MB / 1.222 GB, free: 12.27 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.001422/0.5562, allocations: 1.077 MB / 1.223 GB, free: 11.19 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.00538/0.5616, allocations: 3.685 MB / 1.227 GB, free: 7.492 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.179e-06/0.5616, allocations: 3.984 kB / 1.227 GB, free: 7.488 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.332e-06/0.5616, allocations: 0 / 1.227 GB, free: 7.488 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 3.577e-05/0.5617, allocations: 0 / 1.227 GB, free: 7.488 MB / 0.9825 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.004406/0.5661, allocations: 2.451 MB / 1.229 GB, free: 4.965 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.5661, allocations: 12.03 kB / 1.229 GB, free: 4.953 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006095/0.5722, allocations: 0.7127 MB / 1.23 GB, free: 4.238 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00335/0.5756, allocations: 1.67 MB / 1.231 GB, free: 2.512 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001655/0.5758, allocations: 136.1 kB / 1.232 GB, free: 2.371 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002405/0.576, allocations: 124 kB / 1.232 GB, free: 2.25 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004348/0.5804, allocations: 1.725 MB / 1.233 GB, free: 436 kB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.92e-05/0.5804, allocations: 3.938 kB / 1.233 GB, free: 432 kB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000159/0.5806, allocations: 63.98 kB / 1.233 GB, free: 368 kB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-05/0.5807, allocations: 36 kB / 1.233 GB, free: 332 kB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005/0.5857, allocations: 1.515 MB / 1.235 GB, free: 14.8 MB / 0.9981 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.01201/0.5977, allocations: 7.537 MB / 1.242 GB, free: 6.852 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004238/0.602, allocations: 1.173 MB / 1.243 GB, free: 5.672 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002024/0.604, allocations: 0.5939 MB / 1.244 GB, free: 5.078 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001499/0.6055, allocations: 1.271 MB / 1.245 GB, free: 3.527 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002454/0.608, allocations: 0.6874 MB / 1.246 GB, free: 2.828 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=80): time 2.995e-06/0.608, allocations: 0 / 1.246 GB, free: 2.828 MB / 0.9981 GB Notification: Performance of matching and sorting (n=80): time 0.5551/1.163, allocations: 3.164 MB / 1.249 GB, free: 179.5 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.294e-05/1.163, allocations: 139 kB / 1.249 GB, free: 179.3 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002055/1.165, allocations: 1.272 MB / 1.25 GB, free: 179.2 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002342/1.166, allocations: 46.92 kB / 1.25 GB, free: 179.2 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006471/1.166, allocations: 0.7169 MB / 1.251 GB, free: 179.1 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003174/1.167, allocations: 285.3 kB / 1.251 GB, free: 178.9 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004012/1.167, allocations: 221.4 kB / 1.252 GB, free: 178.9 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 8.38e-05/1.167, allocations: 345.1 kB / 1.252 GB, free: 178.6 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002133/1.169, allocations: 0.5282 MB / 1.252 GB, free: 178.6 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002252/1.171, allocations: 0.8037 MB / 1.253 GB, free: 178.3 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003952/1.175, allocations: 1.226 MB / 1.254 GB, free: 178.1 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.915e-06/1.175, allocations: 5.5 kB / 1.254 GB, free: 178.1 MB / 0.9981 GB Notification: Performance of matching and sorting (n=119) (initialization): time 0.005372/1.181, allocations: 1.66 MB / 1.256 GB, free: 177.9 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.305e-05/1.181, allocations: 8.719 kB / 1.256 GB, free: 177.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.307e-05/1.181, allocations: 7.344 kB / 1.256 GB, free: 177.9 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001815/1.183, allocations: 0.5586 MB / 1.257 GB, free: 177.9 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001326/1.184, allocations: 252.5 kB / 1.257 GB, free: 177.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001703/1.186, allocations: 1.178 MB / 1.258 GB, free: 177.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001993/1.188, allocations: 226 kB / 1.258 GB, free: 177.3 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001073/1.188, allocations: 67.92 kB / 1.258 GB, free: 177.3 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002284/1.19, allocations: 0.8266 MB / 1.259 GB, free: 176.9 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002003/1.192, allocations: 0.7963 MB / 1.26 GB, free: 176.4 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003673/1.196, allocations: 1.207 MB / 1.261 GB, free: 175.8 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.408e-06/1.196, allocations: 2.125 kB / 1.261 GB, free: 175.8 MB / 0.9981 GB Notification: Performance of matching and sorting (n=119) (initialization_lambda0): time 0.00508/1.201, allocations: 1.641 MB / 1.263 GB, free: 175.2 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.748e-05/1.201, allocations: 6.094 kB / 1.263 GB, free: 175.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/1.201, allocations: 8.109 kB / 1.263 GB, free: 175.2 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001928/1.203, allocations: 0.5725 MB / 1.263 GB, free: 175.1 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001538/1.204, allocations: 246.2 kB / 1.263 GB, free: 175.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002513/1.207, allocations: 1.175 MB / 1.265 GB, free: 174.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002174/1.209, allocations: 199.2 kB / 1.265 GB, free: 174.2 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000126/1.209, allocations: 57.17 kB / 1.265 GB, free: 174.2 MB / 0.9981 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 ($PRE.calDat.nextTimeEvent,$whenCondition1,heaPum.com.isOn,$PRE.heaPum.com.isOn,calDat.nextTimeEventScaled,$PRE.calDat.nextTimeEventScaled,calDat.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 90 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,25)} Notification: Performance of prepare postOptimizeDAE: time 0.0003553/1.21, allocations: 241 kB / 1.265 GB, free: 174 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002986/1.21, allocations: 147.7 kB / 1.265 GB, free: 173.9 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01398/1.224, allocations: 2.123 MB / 1.267 GB, free: 173.3 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.133e-05/1.224, allocations: 8.922 kB / 1.267 GB, free: 173.3 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.778e-06/1.224, allocations: 0.5156 kB / 1.267 GB, free: 173.3 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01361/1.238, allocations: 1.955 MB / 1.269 GB, free: 172.7 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01022/1.248, allocations: 3.643 MB / 1.273 GB, free: 170.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.14e-05/1.248, allocations: 1.625 kB / 1.273 GB, free: 170.8 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001187/1.249, allocations: 179.5 kB / 1.273 GB, free: 170.8 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001917/1.251, allocations: 0.5515 MB / 1.273 GB, free: 170.7 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001231/1.251, allocations: 37.86 kB / 1.273 GB, free: 170.7 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001823/1.253, allocations: 1.158 MB / 1.275 GB, free: 169.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.499e-06/1.253, allocations: 2.938 kB / 1.275 GB, free: 169.9 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005278/1.258, allocations: 1.591 MB / 1.276 GB, free: 169.2 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009265/1.259, allocations: 384.3 kB / 1.277 GB, free: 168.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004084/1.26, allocations: 16.61 kB / 1.277 GB, free: 168.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001979/1.262, allocations: 157.8 kB / 1.277 GB, free: 168.9 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001315/1.262, allocations: 55.67 kB / 1.277 GB, free: 168.9 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001512/1.262, allocations: 55.83 kB / 1.277 GB, free: 168.9 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001523/1.264, allocations: 0.8713 MB / 1.278 GB, free: 168.5 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.5e-07/1.264, allocations: 0 / 1.278 GB, free: 168.5 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.002783/1.266, allocations: 0.9633 MB / 1.279 GB, free: 168.3 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (54): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,25)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00224/1.269, allocations: 0.8788 MB / 1.279 GB, free: 168.1 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.007634/1.276, allocations: 2.074 MB / 1.281 GB, free: 167.5 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 7.214e-06/1.276, allocations: 1.469 kB / 1.281 GB, free: 167.5 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.002314/1.279, allocations: 0.6302 MB / 1.282 GB, free: 167.3 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003768/1.282, allocations: 0.7722 MB / 1.283 GB, free: 167 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006062/1.289, allocations: 3.316 MB / 1.286 GB, free: 165.1 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008471/1.289, allocations: 1.266 MB / 1.287 GB, free: 164.3 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002099/1.291, allocations: 369.2 kB / 1.288 GB, free: 164.2 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004415/1.292, allocations: 143.1 kB / 1.288 GB, free: 164.2 MB / 0.9981 GB Notification: Performance of SimCode: time 5.51e-07/1.292, allocations: 0 / 1.288 GB, free: 164.2 MB / 0.9981 GB Notification: Performance of Templates: time 0.0538/1.346, allocations: 39.57 MB / 1.326 GB, free: 133.2 MB / 0.9981 GB make -j1 -f Buildings_1.6_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater.makefile (rm -f Buildings_1.6_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater.pipe >> ../files/Buildings_1.6_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater.sim & ./Buildings_1.6_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater.pipe 2>&1)