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: "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatPumps_Validation_EquationFitReversible_ScalingFactor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatPumps_Validation_EquationFitReversible_ScalingFactor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001027/0.001027, allocations: 89.89 kB / 15.36 MB, free: 0.7383 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.007633/0.007633, allocations: 171.5 kB / 16.26 MB, free: 6.613 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.31/1.31, allocations: 223.3 MB / 240.3 MB, free: 5.238 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.238/2.238, allocations: 390.9 MB / 0.6664 GB, free: 2.363 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002918/0.0002918, allocations: 8 kB / 0.8161 GB, free: 13.19 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5334/0.5337, allocations: 142.4 MB / 0.9552 GB, free: 7.688 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor): time 0.08965/0.6234, allocations: 113 MB / 1.066 GB, free: 14.03 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.024/0.6474, allocations: 20.74 MB / 1.086 GB, free: 9.23 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002617/0.6501, allocations: 99.38 kB / 1.086 GB, free: 9.133 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.003032/0.6531, allocations: 1.379 MB / 1.087 GB, free: 7.746 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.007781/0.6609, allocations: 3.678 MB / 1.091 GB, free: 4.055 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.005571/0.6665, allocations: 2.633 MB / 1.093 GB, free: 1.453 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.009665/0.6761, allocations: 10.4 MB / 1.104 GB, free: 7.023 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002601/0.6788, allocations: 2.218 MB / 1.106 GB, free: 4.754 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003522/0.6823, allocations: 2.465 MB / 1.108 GB, free: 2.277 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002281/0.6846, allocations: 2.248 MB / 1.11 GB, free: 20 kB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0002871/0.6849, allocations: 136 kB / 1.11 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003479/0.6884, allocations: 1.828 MB / 1.112 GB, free: 14.05 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.000622/0.689, allocations: 0.7354 MB / 1.113 GB, free: 13.32 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.001448/0.6905, allocations: 1.646 MB / 1.115 GB, free: 11.66 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.004717/0.6952, allocations: 5.268 MB / 1.12 GB, free: 6.371 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 3.035e-06/0.6952, allocations: 0 / 1.12 GB, free: 6.371 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.263e-06/0.6952, allocations: 0 / 1.12 GB, free: 6.371 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 2.852e-05/0.6952, allocations: 4 kB / 1.12 GB, free: 6.367 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: 494 * Number of variables: 494 Notification: Performance of Generate backend data structure: time 0.005129/0.7004, allocations: 3.229 MB / 1.123 GB, free: 3.066 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.7004, allocations: 12.03 kB / 1.123 GB, free: 3.055 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003411/0.7008, allocations: 294.7 kB / 1.123 GB, free: 2.758 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002497/0.7033, allocations: 0.6439 MB / 1.124 GB, free: 2.109 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003456/0.7067, allocations: 2.584 MB / 1.126 GB, free: 15.46 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002597/0.707, allocations: 306.6 kB / 1.127 GB, free: 15.13 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002898/0.7073, allocations: 200 kB / 1.127 GB, free: 14.94 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00424/0.7116, allocations: 2.606 MB / 1.129 GB, free: 12.21 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.271e-05/0.7116, allocations: 7.938 kB / 1.129 GB, free: 12.2 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002082/0.7118, allocations: 91.94 kB / 1.129 GB, free: 12.11 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.132e-05/0.7119, allocations: 59.98 kB / 1.129 GB, free: 12.05 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004504/0.7164, allocations: 2.297 MB / 1.132 GB, free: 9.75 MB / 0.8887 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.01244/0.7289, allocations: 11.47 MB / 1.143 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002688/0.7316, allocations: 1.359 MB / 1.144 GB, free: 12.41 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001646/0.7332, allocations: 0.8431 MB / 1.145 GB, free: 11.56 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008533/0.7341, allocations: 1.331 MB / 1.146 GB, free: 9.941 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002028/0.7361, allocations: 1.091 MB / 1.147 GB, free: 8.793 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=115): time 2.956e-06/0.7361, allocations: 0 / 1.147 GB, free: 8.793 MB / 0.9044 GB Notification: Performance of matching and sorting (n=115): time 0.00528/0.7414, allocations: 2.504 MB / 1.15 GB, free: 6.285 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001646/0.7416, allocations: 479.7 kB / 1.15 GB, free: 5.707 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003124/0.7447, allocations: 2.674 MB / 1.153 GB, free: 3.02 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0001342/0.7449, allocations: 57.7 kB / 1.153 GB, free: 2.957 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.001012/0.7459, allocations: 1.307 MB / 1.154 GB, free: 1.637 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003377/0.7462, allocations: 410.2 kB / 1.155 GB, free: 1.23 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001825/0.7464, allocations: 129.6 kB / 1.155 GB, free: 1.098 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 7.737e-05/0.7465, allocations: 305.1 kB / 1.155 GB, free: 0.7969 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00168/0.7482, allocations: 0.8081 MB / 1.156 GB, free: 15.98 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002035/0.7503, allocations: 1.344 MB / 1.157 GB, free: 14.42 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003427/0.7537, allocations: 1.938 MB / 1.159 GB, free: 12.34 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.812e-06/0.7537, allocations: 7.938 kB / 1.159 GB, free: 12.33 MB / 0.92 GB Notification: Performance of matching and sorting (n=196) (initialization): time 0.004343/0.7581, allocations: 2.33 MB / 1.161 GB, free: 9.984 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002132/0.7583, allocations: 419.9 kB / 1.162 GB, free: 9.43 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.476e-05/0.7583, allocations: 15.94 kB / 1.162 GB, free: 9.414 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.269e-05/0.7583, allocations: 16 kB / 1.162 GB, free: 9.398 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001708/0.76, allocations: 439.3 kB / 1.162 GB, free: 8.969 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.197e-05/0.7601, allocations: 19.94 kB / 1.162 GB, free: 8.949 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002056/0.7621, allocations: 333.7 kB / 1.163 GB, free: 8.621 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001339/0.7623, allocations: 71.97 kB / 1.163 GB, free: 8.551 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 6.022e-06/0.7623, allocations: 4 kB / 1.163 GB, free: 8.547 MB / 0.92 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003925/0.7662, allocations: 2.055 MB / 1.165 GB, free: 6.484 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/0.7662, allocations: 8 kB / 1.165 GB, free: 6.477 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.7663, allocations: 20 kB / 1.165 GB, free: 6.457 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00165/0.7679, allocations: 427.8 kB / 1.165 GB, free: 6.039 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.059e-05/0.768, allocations: 23.92 kB / 1.165 GB, free: 6.016 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001836/0.7698, allocations: 310.1 kB / 1.165 GB, free: 5.711 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001251/0.7699, allocations: 63.98 kB / 1.165 GB, free: 5.648 MB / 0.92 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 (uMod.count,$PRE.uMod.count,uMod.T_start,$PRE.uMod.T_start,reaToInt.y,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009762/0.7709, allocations: 0.7035 MB / 1.166 GB, free: 4.934 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003458/0.7713, allocations: 280.5 kB / 1.166 GB, free: 4.656 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004167/0.7754, allocations: 2.169 MB / 1.169 GB, free: 2.473 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.796e-05/0.7755, allocations: 19.98 kB / 1.169 GB, free: 2.453 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.7755, allocations: 4 kB / 1.169 GB, free: 2.449 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003242/0.7787, allocations: 1.719 MB / 1.17 GB, free: 0.6797 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007548/0.7863, allocations: 5.292 MB / 1.175 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.067e-06/0.7863, allocations: 8 kB / 1.175 GB, free: 11.24 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001307/0.7876, allocations: 291.6 kB / 1.176 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.04e-05/0.7877, allocations: 8 kB / 1.176 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.219e-05/0.7878, allocations: 35.92 kB / 1.176 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.968e-06/0.7878, allocations: 11.98 kB / 1.176 GB, free: 10.9 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.434e-06/0.7878, allocations: 11.94 kB / 1.176 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00558/0.7934, allocations: 3.203 MB / 1.179 GB, free: 7.586 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009332/0.7943, allocations: 0.63 MB / 1.179 GB, free: 6.934 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003193/0.7946, allocations: 31.94 kB / 1.18 GB, free: 6.902 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001818/0.7965, allocations: 186.2 kB / 1.18 GB, free: 6.723 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002241/0.7967, allocations: 112.7 kB / 1.18 GB, free: 6.613 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001251/0.7968, allocations: 63.95 kB / 1.18 GB, free: 6.551 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.002375/0.7992, allocations: 1.857 MB / 1.182 GB, free: 4.695 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.8e-07/0.7992, allocations: 0 / 1.182 GB, free: 4.695 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.003021/0.8022, allocations: 1.431 MB / 1.183 GB, free: 3.262 MB / 0.9356 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006959/0.8092, allocations: 4.301 MB / 1.187 GB, free: 14.88 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.005934/0.8152, allocations: 3.117 MB / 1.19 GB, free: 11.73 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 6.693e-06/0.8152, allocations: 4.672 kB / 1.19 GB, free: 11.73 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.001932/0.8171, allocations: 0.9602 MB / 1.191 GB, free: 10.77 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007946/0.8251, allocations: 1.392 MB / 1.193 GB, free: 9.398 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03979/0.8649, allocations: 25.59 MB / 1.218 GB, free: 13.66 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001227/0.8661, allocations: 1.767 MB / 1.219 GB, free: 11.87 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.002828/0.869, allocations: 0.7104 MB / 1.22 GB, free: 11.18 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001609/0.8706, allocations: 1.171 MB / 1.221 GB, free: 10 MB / 0.9825 GB Notification: Performance of SimCode: time 5.81e-07/0.8706, allocations: 0 / 1.221 GB, free: 10 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.257/2.127, allocations: 80.57 MB / 1.3 GB, free: 241.3 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001442/2.127, allocations: 272.9 kB / 1.3 GB, free: 240.9 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.948/6.075, allocations: 0 / 1.3 GB, free: 240.9 MB / 0.9981 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatPumps_Validation_EquationFitReversible_ScalingFactor_fmu --startTime=0 --stopTime=5000 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatPumps_Validation_EquationFitReversible_ScalingFactor.fmu > Buildings_9_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.pipe 2>&1)