Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.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.EquationFitReversible_ScalingFactor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum1.QLoa_flow|heaPum.QLoa_flow|heaPum1.P|heaPum.P|capErr.y|heaPum1.COP|heaPum.COP|heaPum1.dp1|heaPum.dp2",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor") translateModel(Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum1.QLoa_flow|heaPum.QLoa_flow|heaPum1.P|heaPum.P|capErr.y|heaPum1.COP|heaPum.COP|heaPum1.dp1|heaPum.dp2",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001183/0.001183, 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.001388/0.001388, 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.355/1.355, allocations: 223.2 MB / 239.9 MB, free: 5.328 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.345/2.345, allocations: 390.3 MB / 0.6653 GB, free: 3.004 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003183/0.0003183, allocations: 11.94 kB / 0.8145 GB, free: 14.32 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.666/0.6663, allocations: 142.3 MB / 0.9535 GB, free: 8.109 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor): time 0.09491/0.7613, allocations: 96.59 MB / 1.048 GB, free: 15.39 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.02815/0.7895, allocations: 17.96 MB / 1.065 GB, free: 13.4 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004103/0.7936, allocations: 95.38 kB / 1.065 GB, free: 13.3 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.004909/0.7986, allocations: 1.43 MB / 1.067 GB, free: 11.87 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.01121/0.8098, allocations: 3.704 MB / 1.07 GB, free: 8.156 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.007519/0.8173, allocations: 2.712 MB / 1.073 GB, free: 5.496 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.00894/0.8263, allocations: 4.748 MB / 1.078 GB, free: 0.7383 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003206/0.8295, allocations: 2.02 MB / 1.08 GB, free: 14.69 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004528/0.8341, allocations: 2.176 MB / 1.082 GB, free: 12.5 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002334/0.8364, allocations: 1.556 MB / 1.083 GB, free: 10.94 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0003751/0.8368, allocations: 120 kB / 1.083 GB, free: 10.82 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003341/0.8402, allocations: 1.217 MB / 1.085 GB, free: 9.605 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0009781/0.8412, allocations: 0.6305 MB / 1.085 GB, free: 8.973 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.001356/0.8425, allocations: 0.6641 MB / 1.086 GB, free: 8.301 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.006641/0.8492, allocations: 3.867 MB / 1.09 GB, free: 4.426 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.8492, allocations: 4 kB / 1.09 GB, free: 4.422 MB / 0.8419 GB Notification: Performance of FrontEnd: time 3.767e-06/0.8492, allocations: 0 / 1.09 GB, free: 4.422 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 8.384e-05/0.8493, allocations: 3.938 kB / 1.09 GB, free: 4.418 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: 494 * Number of variables: 494 Notification: Performance of Generate backend data structure: time 0.009573/0.8589, allocations: 3.205 MB / 1.093 GB, free: 1.141 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.862e-05/0.859, allocations: 12.03 kB / 1.093 GB, free: 1.129 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004663/0.8636, allocations: 0.644 MB / 1.094 GB, free: 492 kB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007805/0.8715, allocations: 2.556 MB / 1.096 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004742/0.872, allocations: 298.7 kB / 1.096 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005431/0.8725, allocations: 212 kB / 1.096 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004992/0.8775, allocations: 2.466 MB / 1.099 GB, free: 10.74 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.877e-05/0.8776, allocations: 11.92 kB / 1.099 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002087/0.8778, allocations: 84 kB / 1.099 GB, free: 10.65 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-05/0.8779, allocations: 56 kB / 1.099 GB, free: 10.59 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004395/0.8823, allocations: 2.087 MB / 1.101 GB, free: 8.504 MB / 0.8575 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.01526/0.8976, allocations: 10.95 MB / 1.112 GB, free: 13.05 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002611/0.9002, allocations: 1.201 MB / 1.113 GB, free: 11.84 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009493/0.9012, allocations: 1.335 MB / 1.114 GB, free: 10.21 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002232/0.9034, allocations: 0.9821 MB / 1.115 GB, free: 9.184 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=115): time 5.059e-06/0.9035, allocations: 0 / 1.115 GB, free: 9.184 MB / 0.8731 GB Notification: Performance of matching and sorting (n=115): time 0.005416/0.9089, allocations: 2.18 MB / 1.117 GB, free: 6.992 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001883/0.9091, allocations: 483.7 kB / 1.118 GB, free: 6.41 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003459/0.9126, allocations: 2.529 MB / 1.12 GB, free: 3.867 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0002751/0.9129, allocations: 57.7 kB / 1.12 GB, free: 3.805 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.001123/0.914, allocations: 1.311 MB / 1.122 GB, free: 2.48 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004419/0.9145, allocations: 402.3 kB / 1.122 GB, free: 2.082 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.709e-05/0.9146, allocations: 28 kB / 1.122 GB, free: 2.055 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001485/0.9147, allocations: 365.9 kB / 1.122 GB, free: 1.691 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001557/0.9163, allocations: 0.691 MB / 1.123 GB, free: 1 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001925/0.9182, allocations: 1.215 MB / 1.124 GB, free: 15.56 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001676/0.9199, allocations: 0.8122 MB / 1.125 GB, free: 14.75 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.769e-06/0.9199, allocations: 8 kB / 1.125 GB, free: 14.74 MB / 0.8887 GB Notification: Performance of matching and sorting (n=196) (initialization): time 0.004665/0.9246, allocations: 2.108 MB / 1.127 GB, free: 12.61 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 0.001319/0.926, allocations: 4.318 MB / 1.131 GB, free: 7.984 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.098e-05/0.926, allocations: 15.95 kB / 1.131 GB, free: 7.969 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.031e-05/0.926, allocations: 20 kB / 1.131 GB, free: 7.949 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001885/0.9279, allocations: 415.4 kB / 1.132 GB, free: 7.543 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.63e-05/0.928, allocations: 23.92 kB / 1.132 GB, free: 7.52 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002455/0.9304, allocations: 329.7 kB / 1.132 GB, free: 7.195 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001497/0.9306, allocations: 75.91 kB / 1.132 GB, free: 7.121 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.063e-05/0.9306, allocations: 4 kB / 1.132 GB, free: 7.117 MB / 0.8887 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00388/0.9345, allocations: 1.836 MB / 1.134 GB, free: 5.273 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.389e-05/0.9345, allocations: 12.09 kB / 1.134 GB, free: 5.262 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.004e-05/0.9345, allocations: 24 kB / 1.134 GB, free: 5.238 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001668/0.9362, allocations: 423.4 kB / 1.134 GB, free: 4.824 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.564e-05/0.9363, allocations: 19.94 kB / 1.134 GB, free: 4.805 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002356/0.9386, allocations: 306 kB / 1.135 GB, free: 4.504 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000136/0.9388, allocations: 75.91 kB / 1.135 GB, free: 4.43 MB / 0.8887 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,reaToInt.y,$PRE.uMod.T_start,uMod.T_start,$PRE.uMod.count,uMod.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (195): * Single equations (assignments): 194 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001304/0.9401, allocations: 0.6895 MB / 1.135 GB, free: 3.73 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005278/0.9406, allocations: 284.5 kB / 1.136 GB, free: 3.449 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003936/0.9446, allocations: 1.952 MB / 1.138 GB, free: 1.484 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-05/0.9446, allocations: 12 kB / 1.138 GB, free: 1.473 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.9446, allocations: 0 / 1.138 GB, free: 1.473 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002913/0.9475, allocations: 1.513 MB / 1.139 GB, free: 15.91 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008504/0.956, allocations: 4.78 MB / 1.144 GB, free: 10.98 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.407e-05/0.9561, allocations: 7.938 kB / 1.144 GB, free: 10.98 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001357/0.9575, allocations: 288.3 kB / 1.144 GB, free: 10.7 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.83e-05/0.9575, allocations: 8 kB / 1.144 GB, free: 10.69 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001081/0.9576, allocations: 35.98 kB / 1.144 GB, free: 10.65 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.524e-05/0.9576, allocations: 27.88 kB / 1.144 GB, free: 10.62 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.865e-06/0.9576, allocations: 7.938 kB / 1.144 GB, free: 10.62 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005748/0.9634, allocations: 3.373 MB / 1.147 GB, free: 6.93 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001444/0.9649, allocations: 0.587 MB / 1.148 GB, free: 6.32 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006192/0.9655, allocations: 39.94 kB / 1.148 GB, free: 6.281 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002151/0.9677, allocations: 168.9 kB / 1.148 GB, free: 6.117 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002363/0.9679, allocations: 128.7 kB / 1.148 GB, free: 5.988 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001597/0.9681, allocations: 59.95 kB / 1.148 GB, free: 5.93 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.003012/0.9711, allocations: 1.747 MB / 1.15 GB, free: 4.184 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2.41e-07/0.9711, allocations: 0 / 1.15 GB, free: 4.184 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.004411/0.9755, allocations: 1.415 MB / 1.151 GB, free: 2.766 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 (heaPum.vol1.dynBal.U,heaPum.vol2.dynBal.U,heaPum1.vol1.dynBal.U,heaPum1.vol2.dynBal.U) * Number of discrete variables: 4 ($whenCondition1,reaToInt.y,uMod.T_start,uMod.count) * Number of discrete states: 1 (uMod.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (117): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001364/0.9769, allocations: 0.655 MB / 1.152 GB, free: 2.117 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.005985/0.9829, allocations: 2.789 MB / 1.155 GB, free: 15.31 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.088e-05/0.9829, allocations: 4.672 kB / 1.155 GB, free: 15.3 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.001912/0.9849, allocations: 0.8508 MB / 1.156 GB, free: 14.46 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006103/0.991, allocations: 1.297 MB / 1.157 GB, free: 13.18 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00902/1, allocations: 5.609 MB / 1.162 GB, free: 7.457 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001643/1.002, allocations: 1.819 MB / 1.164 GB, free: 5.609 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.003692/1.005, allocations: 0.7055 MB / 1.165 GB, free: 4.93 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000769/1.006, allocations: 207.4 kB / 1.165 GB, free: 4.727 MB / 0.92 GB Notification: Performance of SimCode: time 6.92e-07/1.006, allocations: 0 / 1.165 GB, free: 4.727 MB / 0.92 GB Notification: Performance of Templates: time 0.07982/1.086, allocations: 50.86 MB / 1.215 GB, free: 2.445 MB / 0.9669 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.makefile (rm -f Buildings_9_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.sim & ./Buildings_9_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatPumps_Validation_EquationFitReversible_ScalingFactor.csv","../files/Buildings_9_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches