Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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.Validation.ScrollWaterToWater_Dynamic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum.QCon_flow|heaPum1.QCon_flow|appCap.y|heaPum.com.y",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic") translateModel(Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum.QCon_flow|heaPum1.QCon_flow|appCap.y|heaPum.com.y",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001048/0.001048, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001083/0.001083, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.373/1.373, allocations: 223.2 MB / 239.9 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.403/2.403, allocations: 390.3 MB / 0.6653 GB, free: 2.867 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003866/0.0003868, allocations: 15.98 kB / 0.8145 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6903/0.6907, allocations: 142.3 MB / 0.9535 GB, free: 8.117 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic): time 0.1123/0.8031, allocations: 109.4 MB / 1.06 GB, free: 2.5 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.03242/0.8355, allocations: 21.37 MB / 1.081 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004441/0.84, allocations: 119.2 kB / 1.081 GB, free: 12.98 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.005118/0.8452, allocations: 1.453 MB / 1.083 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.01311/0.8583, allocations: 4.194 MB / 1.087 GB, free: 7.312 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.009618/0.8679, allocations: 3.132 MB / 1.09 GB, free: 4.23 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.01031/0.8782, allocations: 5.083 MB / 1.095 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005011/0.8833, allocations: 2.27 MB / 1.097 GB, free: 12.83 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005824/0.8891, allocations: 2.417 MB / 1.099 GB, free: 10.4 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003082/0.8923, allocations: 1.571 MB / 1.101 GB, free: 8.824 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0009621/0.8932, allocations: 132 kB / 1.101 GB, free: 8.695 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005512/0.8988, allocations: 1.751 MB / 1.103 GB, free: 6.941 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.001123/0.8999, allocations: 0.568 MB / 1.103 GB, free: 6.371 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.001529/0.9014, allocations: 0.7266 MB / 1.104 GB, free: 5.637 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.006756/0.9082, allocations: 4.565 MB / 1.109 GB, free: 1.062 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.9082, allocations: 4 kB / 1.109 GB, free: 1.059 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.204e-06/0.9082, allocations: 0 / 1.109 GB, free: 1.059 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 0.0002125/0.9085, allocations: 0 / 1.109 GB, free: 1.059 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 579 * Number of variables: 579 Notification: Performance of Generate backend data structure: time 0.007334/0.9158, allocations: 3.343 MB / 1.112 GB, free: 13.61 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.9159, allocations: 12.03 kB / 1.112 GB, free: 13.6 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01112/0.927, allocations: 1.448 MB / 1.113 GB, free: 12.15 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00689/0.9339, allocations: 2.721 MB / 1.116 GB, free: 9.352 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003213/0.9343, allocations: 255.9 kB / 1.116 GB, free: 9.086 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006347/0.9349, allocations: 239.9 kB / 1.116 GB, free: 8.852 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008627/0.9435, allocations: 3.194 MB / 1.119 GB, free: 5.469 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.907e-05/0.9436, allocations: 11.94 kB / 1.119 GB, free: 5.457 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003878/0.944, allocations: 108 kB / 1.12 GB, free: 5.352 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.751e-05/0.9441, allocations: 71.92 kB / 1.12 GB, free: 5.281 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009671/0.9538, allocations: 2.877 MB / 1.122 GB, free: 2.387 MB / 0.8731 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.02346/0.9773, allocations: 13.73 MB / 1.136 GB, free: 4.008 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004353/0.9817, allocations: 1.506 MB / 1.137 GB, free: 2.496 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001707/0.9834, allocations: 1.773 MB / 1.139 GB, free: 344 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003701/0.9871, allocations: 1.22 MB / 1.14 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=126): time 3.606e-06/0.9871, allocations: 0 / 1.14 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of matching and sorting (n=130): time 0.05472/1.042, allocations: 11.81 MB / 1.152 GB, free: 3.074 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002823/1.042, allocations: 0.5862 MB / 1.152 GB, free: 2.355 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00464/1.047, allocations: 2.686 MB / 1.155 GB, free: 15.65 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.000497/1.047, allocations: 61.7 kB / 1.155 GB, free: 15.58 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.001398/1.049, allocations: 1.321 MB / 1.156 GB, free: 14.25 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005465/1.049, allocations: 457.5 kB / 1.157 GB, free: 13.8 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001222/1.049, allocations: 36 kB / 1.157 GB, free: 13.76 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001563/1.05, allocations: 377.8 kB / 1.157 GB, free: 13.39 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003708/1.053, allocations: 1.003 MB / 1.158 GB, free: 12.38 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004098/1.057, allocations: 1.581 MB / 1.16 GB, free: 10.56 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003819/1.061, allocations: 1.137 MB / 1.161 GB, free: 9.414 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.783e-06/1.061, allocations: 0 / 1.161 GB, free: 9.414 MB / 0.92 GB Notification: Performance of matching and sorting (n=223) (initialization): time 0.02277/1.084, allocations: 4.233 MB / 1.165 GB, free: 5.156 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 0.001879/1.086, allocations: 5.241 MB / 1.17 GB, free: 15.51 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.049e-05/1.086, allocations: 12 kB / 1.17 GB, free: 15.5 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003912/1.09, allocations: 1.176 MB / 1.171 GB, free: 14.32 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002682/1.093, allocations: 467.2 kB / 1.172 GB, free: 13.86 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003905/1.097, allocations: 2.387 MB / 1.174 GB, free: 11.43 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004828/1.101, allocations: 407.2 kB / 1.174 GB, free: 11.03 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002653/1.102, allocations: 111.8 kB / 1.175 GB, free: 10.92 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.336e-05/1.102, allocations: 4 kB / 1.175 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02202/1.124, allocations: 3.953 MB / 1.178 GB, free: 6.945 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.772e-05/1.124, allocations: 12 kB / 1.178 GB, free: 6.934 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003849/1.128, allocations: 1.173 MB / 1.18 GB, free: 5.758 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002639/1.13, allocations: 463.2 kB / 1.18 GB, free: 5.305 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003873/1.134, allocations: 2.378 MB / 1.182 GB, free: 2.875 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004618/1.139, allocations: 377.5 kB / 1.183 GB, free: 2.508 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003653/1.139, allocations: 104 kB / 1.183 GB, free: 2.406 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$PRE.heaPum.com.isOn,heaPum.com.isOn,$PRE.heaPum1.com.isOn,heaPum1.com.isOn,$PRE.N.T_start,N.T_start,$PRE.N.count,N.count,realToInteger.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (164): * Single equations (assignments): 161 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 25,4 27} Notification: Performance of prepare postOptimizeDAE: time 0.001592/1.141, allocations: 0.701 MB / 1.183 GB, free: 1.695 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007071/1.142, allocations: 276.6 kB / 1.184 GB, free: 1.422 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0154/1.157, allocations: 3.039 MB / 1.187 GB, free: 14.36 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.174e-05/1.157, allocations: 23.95 kB / 1.187 GB, free: 14.34 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.695e-05/1.157, allocations: 4 kB / 1.187 GB, free: 14.33 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01403/1.171, allocations: 2.634 MB / 1.189 GB, free: 11.64 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02035/1.191, allocations: 7.05 MB / 1.196 GB, free: 4.418 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.617e-05/1.192, allocations: 8 kB / 1.196 GB, free: 4.41 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001665/1.193, allocations: 280.2 kB / 1.196 GB, free: 4.137 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003309/1.197, allocations: 1.016 MB / 1.197 GB, free: 3.117 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001338/1.197, allocations: 51.94 kB / 1.197 GB, free: 3.066 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003305/1.2, allocations: 2.158 MB / 1.2 GB, free: 0.8594 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.845e-06/1.2, allocations: 8 kB / 1.2 GB, free: 0.8516 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01926/1.219, allocations: 5.024 MB / 1.204 GB, free: 11.41 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001807/1.221, allocations: 0.6769 MB / 1.205 GB, free: 10.71 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005862/1.222, allocations: 40 kB / 1.205 GB, free: 10.68 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003188/1.225, allocations: 302.1 kB / 1.205 GB, free: 10.38 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001966/1.225, allocations: 116.7 kB / 1.206 GB, free: 10.27 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001445/1.225, allocations: 79.92 kB / 1.206 GB, free: 10.19 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.003087/1.228, allocations: 1.894 MB / 1.208 GB, free: 8.297 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.8e-07/1.228, allocations: 0 / 1.208 GB, free: 8.297 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.004392/1.233, allocations: 1.496 MB / 1.209 GB, free: 6.801 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 2 (heaPum1.con.vol.dynBal.U,heaPum1.eva.vol.dynBal.U) * Number of discrete variables: 6 ($whenCondition1,heaPum.com.isOn,heaPum1.com.isOn,N.T_start,N.count,realToInteger.y) * Number of discrete states: 3 (N.count,heaPum1.com.isOn,heaPum.com.isOn) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (80): * Single equations (assignments): 74 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 19,4 25} Notification: Performance of Backend phase and start with SimCode phase: time 0.001629/1.234, allocations: 0.8128 MB / 1.21 GB, free: 5.992 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.01233/1.247, allocations: 3.768 MB / 1.213 GB, free: 2.199 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.476e-05/1.247, allocations: 8.688 kB / 1.213 GB, free: 2.191 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.003652/1.25, allocations: 1.095 MB / 1.215 GB, free: 1.098 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006978/1.257, allocations: 1.466 MB / 1.216 GB, free: 15.66 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01101/1.268, allocations: 5.821 MB / 1.222 GB, free: 9.719 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001239/1.27, allocations: 1.774 MB / 1.223 GB, free: 7.914 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.003338/1.273, allocations: 0.6586 MB / 1.224 GB, free: 7.258 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005416/1.274, allocations: 235.3 kB / 1.224 GB, free: 7.027 MB / 0.9825 GB Notification: Performance of SimCode: time 5.41e-07/1.274, allocations: 0 / 1.224 GB, free: 7.027 MB / 0.9825 GB Notification: Performance of Templates: time 0.6324/1.906, allocations: 72.04 MB / 1.295 GB, free: 249.1 MB / 0.9981 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.makefile (rm -f Buildings_9_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.sim & ./Buildings_9_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatPumps_Validation_ScrollWaterToWater_Dynamic.csv","../files/Buildings_9_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches