Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_Buildings_Fluid_HeatPumps_Validation_EquationFitReversible_ScalingFactor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor,fileNamePrefix="Buildings_latest_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.001045/0.001045, allocations: 90.67 kB / 15.36 MB, free: 0.7344 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.007859/0.007859, allocations: 171.5 kB / 16.26 MB, free: 6.68 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.323/1.323, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.561/2.561, allocations: 462.6 MB / 0.7364 GB, free: 15.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0002931/0.0002931, allocations: 14.39 kB / 0.9029 GB, free: 36.37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2443/0.2446, allocations: 159.6 MB / 1.059 GB, free: 4.922 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor): time 0.1028/0.3474, allocations: 113 MB / 1.169 GB, free: 3.535 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.02731/0.3748, allocations: 20.74 MB / 1.189 GB, free: 14.73 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00321/0.378, allocations: 99.38 kB / 1.189 GB, free: 14.64 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.003726/0.3817, allocations: 1.379 MB / 1.191 GB, free: 13.25 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.009083/0.3908, allocations: 3.678 MB / 1.194 GB, free: 9.559 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.006194/0.3971, allocations: 2.635 MB / 1.197 GB, free: 6.953 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0104/0.4075, allocations: 10.42 MB / 1.207 GB, free: 12.51 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00324/0.4107, allocations: 2.216 MB / 1.209 GB, free: 10.24 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004235/0.415, allocations: 2.458 MB / 1.212 GB, free: 7.773 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003173/0.4182, allocations: 2.259 MB / 1.214 GB, free: 5.504 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0005305/0.4187, allocations: 136 kB / 1.214 GB, free: 5.371 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003774/0.4225, allocations: 1.809 MB / 1.216 GB, free: 3.559 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0007532/0.4232, allocations: 0.7431 MB / 1.217 GB, free: 2.812 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.001679/0.4249, allocations: 1.642 MB / 1.218 GB, free: 1.156 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.004829/0.4298, allocations: 5.264 MB / 1.223 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.4298, allocations: 0 / 1.223 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.542e-06/0.4298, allocations: 0 / 1.223 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 2.76e-05/0.4298, allocations: 4 kB / 1.223 GB, free: 11.87 MB / 0.9825 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.005225/0.435, allocations: 3.225 MB / 1.226 GB, free: 8.574 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.4351, allocations: 12.02 kB / 1.226 GB, free: 8.562 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003408/0.4354, allocations: 286.7 kB / 1.227 GB, free: 8.273 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00245/0.4379, allocations: 0.6483 MB / 1.227 GB, free: 7.621 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003527/0.4414, allocations: 2.595 MB / 1.23 GB, free: 4.957 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002594/0.4417, allocations: 302.6 kB / 1.23 GB, free: 4.637 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002861/0.442, allocations: 200 kB / 1.23 GB, free: 4.441 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004199/0.4462, allocations: 2.598 MB / 1.233 GB, free: 1.719 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.29e-05/0.4463, allocations: 11.83 kB / 1.233 GB, free: 1.707 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002089/0.4465, allocations: 95.97 kB / 1.233 GB, free: 1.613 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.856e-05/0.4465, allocations: 71.88 kB / 1.233 GB, free: 1.543 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00444/0.451, allocations: 2.29 MB / 1.235 GB, free: 15.25 MB / 0.9981 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.0124/0.4634, allocations: 11.48 MB / 1.247 GB, free: 3.273 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002663/0.4661, allocations: 1.348 MB / 1.248 GB, free: 1.91 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001659/0.4677, allocations: 0.8586 MB / 1.249 GB, free: 1.051 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4459/0.9137, allocations: 1.314 MB / 1.25 GB, free: 181.6 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002466/0.9162, allocations: 1.094 MB / 1.251 GB, free: 181.4 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=115): time 3.447e-06/0.9162, allocations: 0.9375 kB / 1.251 GB, free: 181.4 MB / 0.9981 GB Notification: Performance of matching and sorting (n=115): time 0.005705/0.9219, allocations: 2.497 MB / 1.253 GB, free: 181.4 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.401e-05/0.922, allocations: 484.9 kB / 1.254 GB, free: 180.8 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002885/0.9249, allocations: 2.677 MB / 1.257 GB, free: 180.6 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001348/0.9251, allocations: 55.45 kB / 1.257 GB, free: 180.6 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008222/0.9259, allocations: 1.323 MB / 1.258 GB, free: 180.3 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002809/0.9262, allocations: 398.7 kB / 1.258 GB, free: 180 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001818/0.9264, allocations: 131 kB / 1.258 GB, free: 180 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 3.396e-05/0.9264, allocations: 305.4 kB / 1.259 GB, free: 179.7 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001652/0.9281, allocations: 0.8073 MB / 1.26 GB, free: 179.7 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001884/0.93, allocations: 1.343 MB / 1.261 GB, free: 179.1 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003218/0.9332, allocations: 1.939 MB / 1.263 GB, free: 178.7 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.603e-06/0.9332, allocations: 2 kB / 1.263 GB, free: 178.7 MB / 0.9981 GB Notification: Performance of matching and sorting (n=196) (initialization): time 0.004359/0.9376, allocations: 2.331 MB / 1.265 GB, free: 178.4 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001562/0.9377, allocations: 427.2 kB / 1.265 GB, free: 177.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.805e-05/0.9378, allocations: 10.34 kB / 1.265 GB, free: 177.9 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.354e-05/0.9378, allocations: 18.88 kB / 1.265 GB, free: 177.9 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001846/0.9396, allocations: 428.3 kB / 1.266 GB, free: 177.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.287e-05/0.9397, allocations: 24.02 kB / 1.266 GB, free: 177.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002204/0.9419, allocations: 343.2 kB / 1.266 GB, free: 177.8 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000163/0.9421, allocations: 72.31 kB / 1.266 GB, free: 177.8 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 8.126e-06/0.9421, allocations: 3.375 kB / 1.266 GB, free: 177.8 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004182/0.9463, allocations: 2.052 MB / 1.268 GB, free: 177.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.743e-05/0.9463, allocations: 12.25 kB / 1.268 GB, free: 177.6 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/0.9463, allocations: 18.42 kB / 1.268 GB, free: 177.6 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001774/0.9481, allocations: 425.1 kB / 1.269 GB, free: 177.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.503e-05/0.9481, allocations: 26.08 kB / 1.269 GB, free: 177.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002052/0.9502, allocations: 311.6 kB / 1.269 GB, free: 177.5 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001659/0.9504, allocations: 69.41 kB / 1.269 GB, free: 177.5 MB / 0.9981 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.001274/0.9517, allocations: 0.6916 MB / 1.27 GB, free: 177.3 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004394/0.9521, allocations: 278.4 kB / 1.27 GB, free: 177.2 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004577/0.9567, allocations: 2.182 MB / 1.272 GB, free: 176.9 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.881e-05/0.9567, allocations: 13.44 kB / 1.272 GB, free: 176.9 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.174e-06/0.9567, allocations: 1.344 kB / 1.272 GB, free: 176.9 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003299/0.96, allocations: 1.725 MB / 1.274 GB, free: 176.1 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008512/0.9686, allocations: 5.276 MB / 1.279 GB, free: 173.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.364e-05/0.9686, allocations: 7.547 kB / 1.279 GB, free: 173.6 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001457/0.9701, allocations: 288.6 kB / 1.279 GB, free: 173.6 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.349e-05/0.9701, allocations: 9.531 kB / 1.279 GB, free: 173.6 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.967e-05/0.9702, allocations: 41.34 kB / 1.279 GB, free: 173.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.67e-05/0.9702, allocations: 16.23 kB / 1.279 GB, free: 173.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.642e-06/0.9702, allocations: 7.375 kB / 1.279 GB, free: 173.5 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005817/0.976, allocations: 3.192 MB / 1.282 GB, free: 172 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009714/0.977, allocations: 0.6348 MB / 1.283 GB, free: 171.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003443/0.9774, allocations: 31.62 kB / 1.283 GB, free: 171.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001912/0.9793, allocations: 181.6 kB / 1.283 GB, free: 171.5 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002555/0.9796, allocations: 115 kB / 1.283 GB, free: 171.5 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001355/0.9797, allocations: 65.64 kB / 1.283 GB, free: 171.5 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.00252/0.9822, allocations: 1.854 MB / 1.285 GB, free: 170.8 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.21e-07/0.9822, allocations: 0 / 1.285 GB, free: 170.8 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003373/0.9856, allocations: 1.438 MB / 1.287 GB, free: 170.5 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.00668/0.9923, allocations: 4.293 MB / 1.291 GB, free: 168.4 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.005585/0.9979, allocations: 3.122 MB / 1.294 GB, free: 167.2 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.9979, allocations: 4.406 kB / 1.294 GB, free: 167.2 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001754/0.9997, allocations: 0.9655 MB / 1.295 GB, free: 166.9 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007982/1.008, allocations: 1.404 MB / 1.296 GB, free: 166.5 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03631/1.044, allocations: 25.58 MB / 1.321 GB, free: 142.2 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009857/1.045, allocations: 1.767 MB / 1.323 GB, free: 140.4 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002704/1.048, allocations: 0.7119 MB / 1.324 GB, free: 139.7 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001375/1.049, allocations: 1.167 MB / 1.325 GB, free: 138.6 MB / 0.9981 GB Notification: Performance of SimCode: time 6.01e-07/1.049, allocations: 4 kB / 1.325 GB, free: 138.6 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.962/3.011, allocations: 80.56 MB / 1.403 GB, free: 58.85 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001823/3.011, allocations: 278.2 kB / 1.404 GB, free: 58.49 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.601/6.612, allocations: 0 / 1.404 GB, free: 58.49 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatPumps_Validation_EquationFitReversible_ScalingFactor_fmu --startTime=0 --stopTime=5000 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_HeatPumps_Validation_EquationFitReversible_ScalingFactor.fmu > Buildings_latest_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.pipe 2>&1)