Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_Buildings_Fluid_HeatPumps_Validation_EquationFitReversible_ScalingFactor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor,fileNamePrefix="Buildings_10_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.001018/0.001018, allocations: 91.84 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.007998/0.007998, allocations: 172.1 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.307/1.307, allocations: 223.3 MB / 240.3 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.355/2.355, allocations: 437.8 MB / 0.7121 GB, free: 6.98 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0002897/0.0002898, allocations: 8 kB / 0.8729 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5553/0.5556, allocations: 153.8 MB / 1.023 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor): time 0.09861/0.6542, allocations: 113 MB / 1.134 GB, free: 14.43 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.02588/0.6802, allocations: 20.74 MB / 1.154 GB, free: 9.648 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002782/0.683, allocations: 103.4 kB / 1.154 GB, free: 9.547 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.003171/0.6862, allocations: 1.371 MB / 1.155 GB, free: 8.168 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.008195/0.6944, allocations: 3.682 MB / 1.159 GB, free: 4.469 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.005702/0.7001, allocations: 2.632 MB / 1.161 GB, free: 1.867 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.01034/0.7104, allocations: 10.41 MB / 1.172 GB, free: 7.422 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003003/0.7135, allocations: 2.21 MB / 1.174 GB, free: 5.16 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004481/0.7179, allocations: 2.462 MB / 1.176 GB, free: 2.688 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002803/0.7208, allocations: 2.256 MB / 1.178 GB, free: 432 kB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.0003001/0.7211, allocations: 136 kB / 1.178 GB, free: 296 kB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003625/0.7247, allocations: 1.812 MB / 1.18 GB, free: 14.47 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0006814/0.7254, allocations: 0.7431 MB / 1.181 GB, free: 13.73 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.001669/0.7271, allocations: 1.642 MB / 1.183 GB, free: 12.07 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.005518/0.7326, allocations: 5.264 MB / 1.188 GB, free: 6.789 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.7326, allocations: 0 / 1.188 GB, free: 6.789 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.603e-06/0.7326, allocations: 4 kB / 1.188 GB, free: 6.785 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 3.366e-05/0.7327, allocations: 0 / 1.188 GB, free: 6.785 MB / 0.9356 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.005635/0.7383, allocations: 3.233 MB / 1.191 GB, free: 3.48 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.7384, allocations: 12.03 kB / 1.191 GB, free: 3.469 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003507/0.7387, allocations: 290.7 kB / 1.191 GB, free: 3.176 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002612/0.7413, allocations: 0.6444 MB / 1.192 GB, free: 2.527 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003708/0.7451, allocations: 2.586 MB / 1.194 GB, free: 15.87 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002723/0.7453, allocations: 302.6 kB / 1.195 GB, free: 15.55 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002988/0.7456, allocations: 203.9 kB / 1.195 GB, free: 15.35 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004469/0.7501, allocations: 2.602 MB / 1.197 GB, free: 12.62 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.382e-05/0.7502, allocations: 7.938 kB / 1.197 GB, free: 12.62 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002152/0.7504, allocations: 87.98 kB / 1.197 GB, free: 12.53 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.668e-05/0.7505, allocations: 75.86 kB / 1.197 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004706/0.7552, allocations: 2.293 MB / 1.2 GB, free: 10.16 MB / 0.9512 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.01306/0.7683, allocations: 11.48 MB / 1.211 GB, free: 14.18 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002831/0.7711, allocations: 1.352 MB / 1.212 GB, free: 12.83 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001728/0.7728, allocations: 0.8509 MB / 1.213 GB, free: 11.97 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009207/0.7738, allocations: 1.319 MB / 1.214 GB, free: 10.36 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002152/0.7759, allocations: 1.103 MB / 1.215 GB, free: 9.203 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=115): time 3.316e-06/0.7759, allocations: 0 / 1.215 GB, free: 9.203 MB / 0.9669 GB Notification: Performance of matching and sorting (n=115): time 0.005665/0.7816, allocations: 2.504 MB / 1.218 GB, free: 6.691 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001872/0.7818, allocations: 475.7 kB / 1.218 GB, free: 6.113 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003734/0.7856, allocations: 2.674 MB / 1.221 GB, free: 3.426 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.0001566/0.7857, allocations: 57.7 kB / 1.221 GB, free: 3.363 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.001089/0.7868, allocations: 1.307 MB / 1.222 GB, free: 2.043 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003778/0.7872, allocations: 406.1 kB / 1.223 GB, free: 1.641 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000201/0.7874, allocations: 137.6 kB / 1.223 GB, free: 1.5 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 8.087e-05/0.7875, allocations: 305.1 kB / 1.223 GB, free: 1.199 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001777/0.7893, allocations: 0.8003 MB / 1.224 GB, free: 408 kB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002154/0.7915, allocations: 1.344 MB / 1.225 GB, free: 14.83 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003624/0.7951, allocations: 1.938 MB / 1.227 GB, free: 12.75 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.514e-06/0.7951, allocations: 4 kB / 1.227 GB, free: 12.74 MB / 0.9825 GB Notification: Performance of matching and sorting (n=196) (initialization): time 0.004728/0.7998, allocations: 2.327 MB / 1.229 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002432/0.8001, allocations: 421.9 kB / 1.23 GB, free: 9.84 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.629e-05/0.8001, allocations: 16 kB / 1.23 GB, free: 9.824 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.487e-05/0.8002, allocations: 16 kB / 1.23 GB, free: 9.809 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001793/0.802, allocations: 439.3 kB / 1.23 GB, free: 9.379 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.931e-05/0.802, allocations: 19.94 kB / 1.23 GB, free: 9.359 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002362/0.8044, allocations: 333.7 kB / 1.231 GB, free: 9.031 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001501/0.8045, allocations: 71.97 kB / 1.231 GB, free: 8.961 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 8.216e-06/0.8045, allocations: 4 kB / 1.231 GB, free: 8.957 MB / 0.9825 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004155/0.8087, allocations: 2.055 MB / 1.233 GB, free: 6.895 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.492e-05/0.8087, allocations: 15.98 kB / 1.233 GB, free: 6.879 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.602e-05/0.8087, allocations: 16 kB / 1.233 GB, free: 6.863 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001744/0.8105, allocations: 432.1 kB / 1.233 GB, free: 6.441 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.557e-05/0.8105, allocations: 27.92 kB / 1.233 GB, free: 6.414 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002227/0.8128, allocations: 294.2 kB / 1.233 GB, free: 6.125 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000141/0.8129, allocations: 75.97 kB / 1.233 GB, free: 6.051 MB / 0.9825 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.001134/0.8141, allocations: 0.6957 MB / 1.234 GB, free: 5.344 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004469/0.8145, allocations: 284.5 kB / 1.234 GB, free: 5.062 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0044/0.8189, allocations: 2.172 MB / 1.236 GB, free: 2.883 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-05/0.819, allocations: 19.92 kB / 1.237 GB, free: 2.863 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.819, allocations: 4 kB / 1.237 GB, free: 2.859 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003387/0.8224, allocations: 1.719 MB / 1.238 GB, free: 1.09 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008239/0.8306, allocations: 5.292 MB / 1.243 GB, free: 11.66 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.764e-06/0.8306, allocations: 4 kB / 1.243 GB, free: 11.65 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001383/0.832, allocations: 288 kB / 1.244 GB, free: 11.37 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.386e-05/0.832, allocations: 12 kB / 1.244 GB, free: 11.36 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001026/0.8322, allocations: 35.98 kB / 1.244 GB, free: 11.32 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.245e-05/0.8322, allocations: 19.86 kB / 1.244 GB, free: 11.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/0.8322, allocations: 8 kB / 1.244 GB, free: 11.3 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005856/0.838, allocations: 3.203 MB / 1.247 GB, free: 7.996 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001063/0.8391, allocations: 0.626 MB / 1.247 GB, free: 7.348 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004105/0.8395, allocations: 32 kB / 1.247 GB, free: 7.316 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002042/0.8416, allocations: 193.9 kB / 1.248 GB, free: 7.129 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002345/0.8418, allocations: 108.7 kB / 1.248 GB, free: 7.023 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001383/0.842, allocations: 59.95 kB / 1.248 GB, free: 6.965 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.002658/0.8446, allocations: 1.865 MB / 1.25 GB, free: 5.102 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.7e-07/0.8447, allocations: 0 / 1.25 GB, free: 5.102 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003364/0.848, allocations: 1.431 MB / 1.251 GB, free: 3.668 MB / 0.9981 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.404/1.252, allocations: 4.282 MB / 1.255 GB, free: 220.4 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.006744/1.259, allocations: 3.126 MB / 1.258 GB, free: 220 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 8.506e-06/1.259, allocations: 3.406 kB / 1.258 GB, free: 220 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.002097/1.261, allocations: 0.9608 MB / 1.259 GB, free: 219.7 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008599/1.27, allocations: 1.398 MB / 1.261 GB, free: 219.4 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04028/1.31, allocations: 25.59 MB / 1.286 GB, free: 203.7 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00107/1.311, allocations: 1.765 MB / 1.287 GB, free: 202.9 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002945/1.314, allocations: 0.7017 MB / 1.288 GB, free: 202.7 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001324/1.315, allocations: 1.179 MB / 1.289 GB, free: 201.8 MB / 0.9981 GB Notification: Performance of SimCode: time 4.21e-07/1.315, allocations: 0 / 1.289 GB, free: 201.8 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.37/3.685, allocations: 80.58 MB / 1.368 GB, free: 128.1 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002428/3.685, allocations: 283.2 kB / 1.368 GB, free: 127.7 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.086/7.771, allocations: 2.5 kB / 1.368 GB, free: 127.7 MB / 0.9981 GB (rm -f Buildings_10_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.pipe ; mkfifo Buildings_10_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.pipe >> ../files/Buildings_10_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_HeatPumps_Validation_EquationFitReversible_ScalingFactor_fmu --startTime=0 --stopTime=5000 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_HeatPumps_Validation_EquationFitReversible_ScalingFactor.fmu > Buildings_10_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.pipe 2>&1)