Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Fluid_HeatPumps_Validation_EquationFitReversible_ScalingFactor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor,fileNamePrefix="Buildings_11_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.005493/0.005493, allocations: 96.56 kB / 15.73 MB, free: 6.043 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.002435/0.002435, allocations: 195.6 kB / 16.68 MB, free: 5.969 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.364/1.364, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.491/2.491, allocations: 469.8 MB / 0.7425 GB, free: 7.336 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001659/0.001659, allocations: 76.08 kB / 1.065 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2535/0.2552, allocations: 159.1 MB / 1.22 GB, free: 14.29 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor): time 0.5516/0.8069, allocations: 115.6 MB / 1.333 GB, free: 8.719 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.027/0.8339, allocations: 20.9 MB / 1.354 GB, free: 9.664 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003279/0.8372, allocations: 115.6 kB / 1.354 GB, free: 9.625 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.003473/0.8408, allocations: 1.648 MB / 1.355 GB, free: 8.645 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.008597/0.8494, allocations: 4.015 MB / 1.359 GB, free: 6.219 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.005936/0.8553, allocations: 2.852 MB / 1.362 GB, free: 4.629 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.008755/0.8641, allocations: 8.081 MB / 1.37 GB, free: 180 kB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003058/0.8671, allocations: 2.679 MB / 1.372 GB, free: 14.43 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005082/0.8722, allocations: 2.99 MB / 1.375 GB, free: 12.66 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002645/0.8749, allocations: 2.374 MB / 1.378 GB, free: 11.18 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 0.000416/0.8753, allocations: 328.9 kB / 1.378 GB, free: 11.18 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003972/0.8793, allocations: 2.041 MB / 1.38 GB, free: 10.15 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 0.0008101/0.8801, allocations: 0.9444 MB / 1.381 GB, free: 9.422 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 0.001723/0.8819, allocations: 1.843 MB / 1.383 GB, free: 8.156 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.006261/0.8881, allocations: 5.568 MB / 1.388 GB, free: 4.328 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.8881, allocations: 3.938 kB / 1.388 GB, free: 4.324 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.282e-06/0.8881, allocations: 0 / 1.388 GB, free: 4.324 MB / 1.076 GB Notification: Performance of Transformations before backend: time 3.266e-05/0.8882, allocations: 0 / 1.388 GB, free: 4.324 MB / 1.076 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.006059/0.8942, allocations: 3.971 MB / 1.392 GB, free: 1.461 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.224e-05/0.8943, allocations: 8.906 kB / 1.392 GB, free: 1.461 MB / 1.076 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003289/0.8946, allocations: 297.8 kB / 1.392 GB, free: 1.23 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005175/0.8998, allocations: 1.046 MB / 1.393 GB, free: 0.7578 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003631/0.9034, allocations: 2.672 MB / 1.396 GB, free: 14.77 MB / 1.092 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002562/0.9037, allocations: 306.5 kB / 1.396 GB, free: 14.55 MB / 1.092 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002592/0.904, allocations: 201.8 kB / 1.396 GB, free: 14.49 MB / 1.092 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004949/0.9089, allocations: 2.792 MB / 1.399 GB, free: 12.71 MB / 1.092 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.413e-05/0.909, allocations: 7.969 kB / 1.399 GB, free: 12.71 MB / 1.092 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002097/0.9092, allocations: 86.17 kB / 1.399 GB, free: 12.64 MB / 1.092 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.293e-05/0.9093, allocations: 69.92 kB / 1.399 GB, free: 12.63 MB / 1.092 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005957/0.9152, allocations: 2.668 MB / 1.402 GB, free: 11.18 MB / 1.092 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.01419/0.9294, allocations: 12.03 MB / 1.414 GB, free: 14.64 MB / 1.107 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004819/0.9342, allocations: 1.782 MB / 1.415 GB, free: 12.85 MB / 1.107 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002535/0.9368, allocations: 1.038 MB / 1.416 GB, free: 11.81 MB / 1.107 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001005/0.9378, allocations: 1.319 MB / 1.418 GB, free: 10.2 MB / 1.107 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002964/0.9408, allocations: 1.294 MB / 1.419 GB, free: 8.852 MB / 1.107 GB Notification: Performance of pre-optimization done (n=115): time 3.997e-06/0.9408, allocations: 0 / 1.419 GB, free: 8.852 MB / 1.107 GB Notification: Performance of matching and sorting (n=115): time 0.008075/0.9489, allocations: 3.029 MB / 1.422 GB, free: 5.816 MB / 1.107 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002348/0.9491, allocations: 487.6 kB / 1.422 GB, free: 5.23 MB / 1.107 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003184/0.9523, allocations: 2.701 MB / 1.425 GB, free: 2.516 MB / 1.107 GB Notification: Performance of collectPreVariables (initialization): time 0.0001319/0.9525, allocations: 57.69 kB / 1.425 GB, free: 2.453 MB / 1.107 GB Notification: Performance of collectInitialEqns (initialization): time 0.001108/0.9536, allocations: 1.329 MB / 1.426 GB, free: 1.113 MB / 1.107 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003721/0.954, allocations: 420.4 kB / 1.427 GB, free: 0.6992 MB / 1.107 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005747/0.9545, allocations: 355.3 kB / 1.427 GB, free: 352 kB / 1.107 GB Notification: Performance of setup shared object (initialization): time 0.000109/0.9546, allocations: 305.1 kB / 1.427 GB, free: 44 kB / 1.107 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002609/0.9573, allocations: 0.9924 MB / 1.428 GB, free: 15.04 MB / 1.123 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003049/0.9603, allocations: 1.523 MB / 1.43 GB, free: 13.3 MB / 1.123 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005224/0.9656, allocations: 2.238 MB / 1.432 GB, free: 10.92 MB / 1.123 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.9656, allocations: 0 / 1.432 GB, free: 10.92 MB / 1.123 GB Notification: Performance of matching and sorting (n=196) (initialization): time 0.006263/0.9718, allocations: 2.679 MB / 1.435 GB, free: 8.223 MB / 1.123 GB Notification: Performance of prepare postOptimizeDAE: time 3.581e-05/0.9719, allocations: 33.7 kB / 1.435 GB, free: 8.184 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.552e-05/0.9719, allocations: 12 kB / 1.435 GB, free: 8.172 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.523e-05/0.9719, allocations: 16 kB / 1.435 GB, free: 8.156 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002145/0.9741, allocations: 491.8 kB / 1.435 GB, free: 7.676 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.433e-05/0.9741, allocations: 19.94 kB / 1.435 GB, free: 7.656 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00221/0.9763, allocations: 342.3 kB / 1.436 GB, free: 7.32 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001522/0.9765, allocations: 71.97 kB / 1.436 GB, free: 7.25 MB / 1.123 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003218/0.9797, allocations: 1.493 MB / 1.437 GB, free: 5.754 MB / 1.123 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002972/0.9827, allocations: 1.512 MB / 1.439 GB, free: 4.027 MB / 1.123 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.005153/0.9879, allocations: 2.243 MB / 1.441 GB, free: 1.637 MB / 1.123 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.717e-06/0.9879, allocations: 4 kB / 1.441 GB, free: 1.633 MB / 1.123 GB Notification: Performance of matching and sorting (n=196) (initialization_lambda0): time 0.006175/0.9941, allocations: 2.664 MB / 1.443 GB, free: 14.95 MB / 1.139 GB Notification: Performance of prepare postOptimizeDAE: time 3.239e-05/0.9941, allocations: 41.69 kB / 1.443 GB, free: 14.91 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.9941, allocations: 12.84 kB / 1.443 GB, free: 14.89 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.675e-05/0.9941, allocations: 20 kB / 1.443 GB, free: 14.88 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002109/0.9963, allocations: 475.3 kB / 1.444 GB, free: 14.41 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.026e-05/0.9963, allocations: 27.86 kB / 1.444 GB, free: 14.38 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0022/0.9985, allocations: 287.4 kB / 1.444 GB, free: 14.1 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001467/0.9987, allocations: 71.97 kB / 1.444 GB, free: 14.03 MB / 1.139 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.0003558/0.999, allocations: 295.7 kB / 1.445 GB, free: 13.73 MB / 1.139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004422/0.9995, allocations: 294.1 kB / 1.445 GB, free: 13.45 MB / 1.139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006034/1.006, allocations: 2.53 MB / 1.447 GB, free: 10.91 MB / 1.139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.572e-05/1.006, allocations: 12 kB / 1.447 GB, free: 10.89 MB / 1.139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/1.006, allocations: 0 / 1.447 GB, free: 10.89 MB / 1.139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005118/1.011, allocations: 2.063 MB / 1.449 GB, free: 8.785 MB / 1.139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009703/1.02, allocations: 5.805 MB / 1.455 GB, free: 2.836 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.887e-06/1.02, allocations: 8 kB / 1.455 GB, free: 2.828 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001781/1.022, allocations: 344.2 kB / 1.455 GB, free: 2.492 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.518e-06/1.022, allocations: 15.94 kB / 1.455 GB, free: 2.477 MB / 1.139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001118/1.022, allocations: 43.91 kB / 1.455 GB, free: 2.434 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-05/1.022, allocations: 11.94 kB / 1.455 GB, free: 2.422 MB / 1.139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.184e-06/1.022, allocations: 11.94 kB / 1.455 GB, free: 2.41 MB / 1.139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008476/1.031, allocations: 3.782 MB / 1.459 GB, free: 14.52 MB / 1.154 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008877/1.032, allocations: 0.6159 MB / 1.46 GB, free: 13.89 MB / 1.154 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003406/1.032, allocations: 31.98 kB / 1.46 GB, free: 13.86 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002024/1.034, allocations: 191.7 kB / 1.46 GB, free: 13.67 MB / 1.154 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002364/1.034, allocations: 120.7 kB / 1.46 GB, free: 13.55 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000143/1.035, allocations: 59.95 kB / 1.46 GB, free: 13.49 MB / 1.154 GB Notification: Performance of sorting global known variables: time 0.002342/1.037, allocations: 1.876 MB / 1.462 GB, free: 11.62 MB / 1.154 GB Notification: Performance of sort global known variables: time 1.4e-07/1.037, allocations: 0 / 1.462 GB, free: 11.62 MB / 1.154 GB Notification: Performance of remove unused functions: time 0.003025/1.04, allocations: 1.497 MB / 1.463 GB, free: 10.12 MB / 1.154 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.01003/1.05, allocations: 4.895 MB / 1.468 GB, free: 5.137 MB / 1.154 GB Notification: Performance of simCode: created initialization part: time 0.008666/1.059, allocations: 3.663 MB / 1.472 GB, free: 1.453 MB / 1.154 GB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/1.059, allocations: 5.375 kB / 1.472 GB, free: 1.449 MB / 1.154 GB Notification: Performance of simCode: created simulation system equations: time 0.002862/1.061, allocations: 1.151 MB / 1.473 GB, free: 308 kB / 1.154 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005255/1.067, allocations: 1.39 MB / 1.474 GB, free: 14.94 MB / 1.17 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03598/1.103, allocations: 22.24 MB / 1.496 GB, free: 8.094 MB / 1.186 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00136/1.104, allocations: 1.769 MB / 1.498 GB, free: 6.293 MB / 1.186 GB Notification: Performance of simCode: alias equations: time 0.002457/1.107, allocations: 0.7313 MB / 1.498 GB, free: 5.578 MB / 1.186 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001606/1.108, allocations: 1.163 MB / 1.5 GB, free: 4.414 MB / 1.186 GB Notification: Performance of SimCode: time 3.61e-07/1.108, allocations: 0 / 1.5 GB, free: 4.414 MB / 1.186 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.955/4.064, allocations: 77.7 MB / 1.575 GB, free: 7.461 MB / 1.264 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.78/23.84, allocations: 14.06 kB / 1.575 GB, free: 7.453 MB / 1.264 GB (rm -f Buildings_11_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.pipe ; mkfifo Buildings_11_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.pipe >> ../files/Buildings_11_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor_res.mat --tempDir=temp_Buildings_11_Buildings_Fluid_HeatPumps_Validation_EquationFitReversible_ScalingFactor_fmu --startTime=0 --stopTime=5000 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Fluid_HeatPumps_Validation_EquationFitReversible_ScalingFactor.fmu > Buildings_11_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.pipe 2>&1)