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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000924/0.0009238, allocations: 99.55 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.0008823/0.0008823, 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.522/1.522, allocations: 223.2 MB / 239.9 MB, free: 5.309 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.394/2.394, allocations: 390.3 MB / 0.6653 GB, free: 2.887 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000472/0.0004723, allocations: 12 kB / 0.8145 GB, free: 14.3 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7226/0.7231, allocations: 142.3 MB / 0.9535 GB, free: 8.043 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater): time 0.1015/0.8246, allocations: 105.5 MB / 1.057 GB, free: 6.395 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.01898/0.8436, allocations: 13.15 MB / 1.069 GB, free: 9.215 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002261/0.8459, allocations: 59.56 kB / 1.069 GB, free: 9.156 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.002667/0.8486, allocations: 0.8317 MB / 1.07 GB, free: 8.32 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.007135/0.8558, allocations: 2.282 MB / 1.073 GB, free: 6.031 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.006055/0.8618, allocations: 1.975 MB / 1.074 GB, free: 4.086 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.005494/0.8673, allocations: 2.761 MB / 1.077 GB, free: 1.324 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002125/0.8695, allocations: 1.244 MB / 1.078 GB, free: 60 kB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002789/0.8723, allocations: 1.323 MB / 1.08 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001648/0.874, allocations: 0.8477 MB / 1.08 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0002497/0.8742, allocations: 72 kB / 1.081 GB, free: 13.81 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003277/0.8775, allocations: 1.213 MB / 1.082 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0006611/0.8782, allocations: 346.6 kB / 1.082 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.001216/0.8794, allocations: 416.7 kB / 1.082 GB, free: 11.84 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.005086/0.8845, allocations: 2.57 MB / 1.085 GB, free: 9.266 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.299e-06/0.8846, allocations: 0 / 1.085 GB, free: 9.266 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.856e-06/0.8846, allocations: 0 / 1.085 GB, free: 9.266 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.541e-05/0.8846, allocations: 0 / 1.085 GB, free: 9.266 MB / 0.8419 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.004604/0.8893, allocations: 2.034 MB / 1.087 GB, free: 7.16 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.764e-05/0.8893, allocations: 8.031 kB / 1.087 GB, free: 7.152 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005772/0.8951, allocations: 0.7469 MB / 1.088 GB, free: 6.402 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003402/0.8985, allocations: 1.554 MB / 1.089 GB, free: 4.793 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001787/0.8988, allocations: 132.1 kB / 1.089 GB, free: 4.656 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000288/0.8991, allocations: 128 kB / 1.089 GB, free: 4.531 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00429/0.9034, allocations: 1.728 MB / 1.091 GB, free: 2.703 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.511e-05/0.9034, allocations: 0 / 1.091 GB, free: 2.703 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001563/0.9036, allocations: 56 kB / 1.091 GB, free: 2.648 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.905e-05/0.9036, allocations: 39.94 kB / 1.091 GB, free: 2.609 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004695/0.9083, allocations: 1.527 MB / 1.093 GB, free: 1.074 MB / 0.8419 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.01098/0.9193, allocations: 7.611 MB / 1.1 GB, free: 9.059 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004135/0.9235, allocations: 1.191 MB / 1.101 GB, free: 7.859 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001399/0.9249, allocations: 1.271 MB / 1.103 GB, free: 6.312 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002316/0.9272, allocations: 0.699 MB / 1.103 GB, free: 5.602 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=80): time 3.307e-06/0.9273, allocations: 3.938 kB / 1.103 GB, free: 5.598 MB / 0.8575 GB Notification: Performance of matching and sorting (n=80): time 0.01832/0.9456, allocations: 3.226 MB / 1.106 GB, free: 2.34 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.654e-05/0.9457, allocations: 137.2 kB / 1.107 GB, free: 2.176 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002101/0.9478, allocations: 1.309 MB / 1.108 GB, free: 0.8516 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0002033/0.948, allocations: 45.7 kB / 1.108 GB, free: 0.8008 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006937/0.9487, allocations: 0.7308 MB / 1.109 GB, free: 64 kB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003495/0.9491, allocations: 280 kB / 1.109 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.366e-05/0.9492, allocations: 20 kB / 1.109 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001385/0.9493, allocations: 345.9 kB / 1.109 GB, free: 15.42 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001991/0.9513, allocations: 0.5289 MB / 1.11 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002184/0.9535, allocations: 0.8028 MB / 1.11 GB, free: 13.98 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002007/0.9555, allocations: 0.5729 MB / 1.111 GB, free: 13.41 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.384e-06/0.9556, allocations: 4 kB / 1.111 GB, free: 13.41 MB / 0.8731 GB Notification: Performance of matching and sorting (n=119) (initialization): time 0.00536/0.9609, allocations: 1.679 MB / 1.113 GB, free: 11.71 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008112/0.9618, allocations: 2.398 MB / 1.115 GB, free: 9.176 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.171e-05/0.9618, allocations: 7.938 kB / 1.115 GB, free: 9.168 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002001/0.9638, allocations: 0.5665 MB / 1.116 GB, free: 8.602 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001435/0.9652, allocations: 255.6 kB / 1.116 GB, free: 8.352 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002401/0.9677, allocations: 1.171 MB / 1.117 GB, free: 7.156 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003085/0.9708, allocations: 246.6 kB / 1.117 GB, free: 6.914 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002793/0.9711, allocations: 51.95 kB / 1.117 GB, free: 6.863 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/0.9711, allocations: 4 kB / 1.117 GB, free: 6.859 MB / 0.8731 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005262/0.9764, allocations: 1.516 MB / 1.119 GB, free: 5.336 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.404e-05/0.9765, allocations: 4 kB / 1.119 GB, free: 5.332 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001945/0.9784, allocations: 0.571 MB / 1.119 GB, free: 4.758 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001397/0.9798, allocations: 247.6 kB / 1.12 GB, free: 4.516 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001961/0.9818, allocations: 1.173 MB / 1.121 GB, free: 3.316 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002149/0.984, allocations: 226.9 kB / 1.121 GB, free: 3.094 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000131/0.9841, allocations: 59.94 kB / 1.121 GB, free: 3.035 MB / 0.8731 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 (91): * Single equations (assignments): 90 * 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.0008757/0.985, allocations: 471.7 kB / 1.121 GB, free: 2.566 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000301/0.9853, allocations: 146.2 kB / 1.122 GB, free: 2.422 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0129/0.9982, allocations: 2.165 MB / 1.124 GB, free: 244 kB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-05/0.9983, allocations: 8 kB / 1.124 GB, free: 236 kB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.9983, allocations: 0 / 1.124 GB, free: 236 kB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0124/1.011, allocations: 2.013 MB / 1.126 GB, free: 14.18 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009237/1.02, allocations: 3.676 MB / 1.129 GB, free: 10.33 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.039e-05/1.02, allocations: 4 kB / 1.129 GB, free: 10.33 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001137/1.021, allocations: 179.9 kB / 1.129 GB, free: 10.15 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00189/1.023, allocations: 0.5553 MB / 1.13 GB, free: 9.594 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001043/1.023, allocations: 35.95 kB / 1.13 GB, free: 9.559 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001994/1.025, allocations: 1.162 MB / 1.131 GB, free: 8.371 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.681e-06/1.025, allocations: 7.953 kB / 1.131 GB, free: 8.363 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005288/1.031, allocations: 1.696 MB / 1.133 GB, free: 6.578 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009576/1.032, allocations: 422.8 kB / 1.133 GB, free: 6.145 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002174/1.032, allocations: 16 kB / 1.133 GB, free: 6.129 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001749/1.034, allocations: 163.8 kB / 1.133 GB, free: 5.969 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001096/1.034, allocations: 56.53 kB / 1.133 GB, free: 5.914 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001168/1.034, allocations: 55.92 kB / 1.133 GB, free: 5.859 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.001283/1.035, allocations: 0.8946 MB / 1.134 GB, free: 4.965 MB / 0.8887 GB Notification: Performance of sort global known variables: time 2.31e-07/1.035, allocations: 0 / 1.134 GB, free: 4.965 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.003077/1.038, allocations: 0.9704 MB / 1.135 GB, free: 3.992 MB / 0.8887 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 (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.002039/1.04, allocations: 0.8948 MB / 1.136 GB, free: 3.27 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.007058/1.047, allocations: 2.037 MB / 1.138 GB, free: 1.238 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 7.414e-06/1.047, allocations: 0 / 1.138 GB, free: 1.238 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.002322/1.05, allocations: 0.6437 MB / 1.139 GB, free: 0.5938 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003623/1.053, allocations: 0.7377 MB / 1.139 GB, free: 15.87 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006364/1.06, allocations: 3.226 MB / 1.143 GB, free: 12.6 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009065/1.061, allocations: 1.29 MB / 1.144 GB, free: 11.28 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.001978/1.063, allocations: 370.3 kB / 1.144 GB, free: 10.91 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000361/1.063, allocations: 143.3 kB / 1.144 GB, free: 10.77 MB / 0.9044 GB Notification: Performance of SimCode: time 9.02e-07/1.063, allocations: 4 kB / 1.144 GB, free: 10.77 MB / 0.9044 GB Notification: Performance of Templates: time 0.06026/1.123, allocations: 37.94 MB / 1.181 GB, free: 5.211 MB / 0.9356 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