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.0009811/0.0009854, allocations: 92.16 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001228/0.001228, allocations: 172.4 kB / 16.92 MB, free: 6.652 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.393/1.393, allocations: 223.3 MB / 241 MB, free: 5.34 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.422/2.422, allocations: 390.9 MB / 0.667 GB, free: 2.422 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003638/0.0003636, allocations: 8 kB / 0.8166 GB, free: 13.33 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7983/0.7987, allocations: 142.4 MB / 0.9557 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater): time 0.1185/0.9173, allocations: 123.4 MB / 1.076 GB, free: 3.707 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.02332/0.9406, allocations: 15.39 MB / 1.091 GB, free: 4.27 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00336/0.944, allocations: 67.56 kB / 1.091 GB, free: 4.203 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.00308/0.9472, allocations: 0.7965 MB / 1.092 GB, free: 3.402 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.008334/0.9555, allocations: 2.389 MB / 1.094 GB, free: 1.008 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.00579/0.9613, allocations: 1.921 MB / 1.096 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.008217/0.9695, allocations: 6.014 MB / 1.102 GB, free: 9.074 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002844/0.9724, allocations: 1.366 MB / 1.103 GB, free: 7.676 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003775/0.9762, allocations: 1.485 MB / 1.105 GB, free: 6.184 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002611/0.9789, allocations: 1.244 MB / 1.106 GB, free: 4.934 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0002778/0.9792, allocations: 72 kB / 1.106 GB, free: 4.863 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00447/0.9836, allocations: 1.791 MB / 1.108 GB, free: 3.07 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0004977/0.9842, allocations: 370.3 kB / 1.108 GB, free: 2.707 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.001446/0.9856, allocations: 0.95 MB / 1.109 GB, free: 1.746 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.004005/0.9896, allocations: 2.779 MB / 1.112 GB, free: 14.96 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.9897, allocations: 0 / 1.112 GB, free: 14.96 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.452e-06/0.9897, allocations: 7.938 kB / 1.112 GB, free: 14.95 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 3.685e-05/0.9897, allocations: 0 / 1.112 GB, free: 14.95 MB / 0.8731 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.004224/0.9939, allocations: 2.062 MB / 1.114 GB, free: 12.82 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/0.994, allocations: 8.031 kB / 1.114 GB, free: 12.81 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005782/0.9998, allocations: 0.755 MB / 1.115 GB, free: 12.05 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003364/1.003, allocations: 1.662 MB / 1.116 GB, free: 10.34 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001407/1.003, allocations: 136.1 kB / 1.116 GB, free: 10.2 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002207/1.004, allocations: 128 kB / 1.117 GB, free: 10.07 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004091/1.008, allocations: 1.752 MB / 1.118 GB, free: 8.219 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.084e-05/1.008, allocations: 0 / 1.118 GB, free: 8.219 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001558/1.008, allocations: 59.98 kB / 1.118 GB, free: 8.16 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.207e-05/1.008, allocations: 39.88 kB / 1.118 GB, free: 8.121 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00481/1.013, allocations: 1.535 MB / 1.12 GB, free: 6.578 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.01091/1.024, allocations: 7.564 MB / 1.127 GB, free: 14.61 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004079/1.028, allocations: 1.19 MB / 1.128 GB, free: 13.41 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001988/1.03, allocations: 0.5961 MB / 1.129 GB, free: 12.81 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001337/1.031, allocations: 1.275 MB / 1.13 GB, free: 11.26 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002291/1.033, allocations: 0.7147 MB / 1.131 GB, free: 10.53 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=80): time 3.105e-06/1.033, allocations: 0 / 1.131 GB, free: 10.53 MB / 0.8887 GB Notification: Performance of matching and sorting (n=80): time 0.01926/1.053, allocations: 3.253 MB / 1.134 GB, free: 7.25 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.488e-05/1.053, allocations: 149.1 kB / 1.134 GB, free: 7.074 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002233/1.055, allocations: 1.274 MB / 1.136 GB, free: 5.785 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0002333/1.055, allocations: 45.7 kB / 1.136 GB, free: 5.734 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006866/1.056, allocations: 0.7231 MB / 1.136 GB, free: 5.004 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003246/1.056, allocations: 280 kB / 1.137 GB, free: 4.727 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001388/1.057, allocations: 81.67 kB / 1.137 GB, free: 4.641 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001262/1.057, allocations: 341.9 kB / 1.137 GB, free: 4.301 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001973/1.059, allocations: 0.5328 MB / 1.137 GB, free: 3.77 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002209/1.061, allocations: 0.8139 MB / 1.138 GB, free: 2.848 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00405/1.065, allocations: 1.256 MB / 1.139 GB, free: 1.508 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.056e-05/1.065, allocations: 0 / 1.139 GB, free: 1.508 MB / 0.8887 GB Notification: Performance of matching and sorting (n=119) (initialization): time 0.005548/1.071, allocations: 1.691 MB / 1.141 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002673/1.071, allocations: 273.5 kB / 1.141 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.977e-05/1.071, allocations: 8 kB / 1.141 GB, free: 15.44 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002223/1.073, allocations: 0.5658 MB / 1.142 GB, free: 14.88 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00139/1.075, allocations: 251.6 kB / 1.142 GB, free: 14.63 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00217/1.077, allocations: 1.175 MB / 1.143 GB, free: 13.43 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002333/1.079, allocations: 238.8 kB / 1.144 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001771/1.079, allocations: 55.95 kB / 1.144 GB, free: 13.14 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.306e-05/1.079, allocations: 4 kB / 1.144 GB, free: 13.14 MB / 0.9044 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005154/1.084, allocations: 1.515 MB / 1.145 GB, free: 11.62 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.237e-05/1.084, allocations: 8 kB / 1.145 GB, free: 11.61 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002024/1.087, allocations: 0.5752 MB / 1.146 GB, free: 11.03 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001392/1.088, allocations: 251.6 kB / 1.146 GB, free: 10.79 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00209/1.09, allocations: 1.166 MB / 1.147 GB, free: 9.594 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002294/1.092, allocations: 227 kB / 1.147 GB, free: 9.371 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001858/1.093, allocations: 55.94 kB / 1.147 GB, free: 9.316 MB / 0.9044 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.001101/1.094, allocations: 484.5 kB / 1.148 GB, free: 8.836 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004795/1.094, allocations: 150.2 kB / 1.148 GB, free: 8.688 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01332/1.107, allocations: 2.169 MB / 1.15 GB, free: 6.5 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-05/1.108, allocations: 8 kB / 1.15 GB, free: 6.492 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.01e-05/1.108, allocations: 4 kB / 1.15 GB, free: 6.488 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01312/1.121, allocations: 2.001 MB / 1.152 GB, free: 4.453 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009797/1.131, allocations: 3.68 MB / 1.156 GB, free: 0.5977 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.228e-06/1.131, allocations: 0 / 1.156 GB, free: 0.5977 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001173/1.132, allocations: 183.9 kB / 1.156 GB, free: 428 kB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002066/1.134, allocations: 0.5516 MB / 1.156 GB, free: 15.86 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001341/1.134, allocations: 35.94 kB / 1.156 GB, free: 15.82 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002124/1.136, allocations: 1.162 MB / 1.158 GB, free: 14.64 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.542e-06/1.136, allocations: 7.984 kB / 1.158 GB, free: 14.63 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005667/1.142, allocations: 1.62 MB / 1.159 GB, free: 12.97 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001161/1.143, allocations: 414.8 kB / 1.159 GB, free: 12.54 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004318/1.143, allocations: 16 kB / 1.16 GB, free: 12.53 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002125/1.146, allocations: 163.7 kB / 1.16 GB, free: 12.37 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001538/1.146, allocations: 56.52 kB / 1.16 GB, free: 12.31 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001626/1.146, allocations: 55.92 kB / 1.16 GB, free: 12.26 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.001779/1.148, allocations: 0.8673 MB / 1.161 GB, free: 11.39 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.8e-07/1.148, allocations: 0 / 1.161 GB, free: 11.39 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.003548/1.151, allocations: 0.9587 MB / 1.162 GB, free: 10.43 MB / 0.92 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.002545/1.154, allocations: 0.8794 MB / 1.162 GB, free: 9.73 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.007841/1.162, allocations: 2.053 MB / 1.164 GB, free: 7.684 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.387e-05/1.162, allocations: 8 kB / 1.164 GB, free: 7.676 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.002466/1.164, allocations: 0.6438 MB / 1.165 GB, free: 7.035 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004986/1.169, allocations: 0.7539 MB / 1.166 GB, free: 6.289 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007623/1.177, allocations: 3.424 MB / 1.169 GB, free: 2.809 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001129/1.178, allocations: 1.255 MB / 1.17 GB, free: 1.527 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006265/1.179, allocations: 159.3 kB / 1.171 GB, free: 1.371 MB / 0.92 GB Notification: Performance of SimCode: time 7.01e-07/1.179, allocations: 3.938 kB / 1.171 GB, free: 1.367 MB / 0.92 GB Notification: Performance of Templates: time 0.05804/1.237, allocations: 37.04 MB / 1.207 GB, free: 12.5 MB / 0.9669 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.HeatPumps.Calibration.ScrollWaterToWater.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches