Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.Examples.EquationFitReversible,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible",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.007427/0.007427, allocations: 101.7 kB / 15.73 MB, free: 6.039 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.001682/0.001682, allocations: 199.5 kB / 16.67 MB, free: 5.977 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.345/1.345, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.161/2.161, allocations: 390.3 MB / 0.6648 GB, free: 212 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 66.61 kB / 0.9504 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2293/0.2307, allocations: 140.4 MB / 1.087 GB, free: 1.984 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.0565/0.2872, allocations: 62.64 MB / 1.149 GB, free: 3.129 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.01579/0.3031, allocations: 13.65 MB / 1.162 GB, free: 5.441 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001768/0.3049, allocations: 67.62 kB / 1.162 GB, free: 5.375 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.002111/0.307, allocations: 0.9433 MB / 1.163 GB, free: 4.426 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.005123/0.3122, allocations: 2.383 MB / 1.165 GB, free: 2.031 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.003485/0.3157, allocations: 1.639 MB / 1.167 GB, free: 416 kB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.004496/0.3202, allocations: 4.294 MB / 1.171 GB, free: 12.1 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001598/0.3218, allocations: 1.409 MB / 1.172 GB, free: 10.65 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002804/0.3246, allocations: 1.635 MB / 1.174 GB, free: 9.016 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00138/0.326, allocations: 1.292 MB / 1.175 GB, free: 7.719 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0002253/0.3262, allocations: 176 kB / 1.175 GB, free: 7.547 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002473/0.3287, allocations: 1.427 MB / 1.177 GB, free: 6.117 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0004103/0.3291, allocations: 0.4984 MB / 1.177 GB, free: 5.617 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0008906/0.33, allocations: 1.015 MB / 1.178 GB, free: 4.598 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.003386/0.3334, allocations: 3.163 MB / 1.181 GB, free: 1.426 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.3335, allocations: 4 kB / 1.181 GB, free: 1.422 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.873e-06/0.3335, allocations: 4 kB / 1.181 GB, free: 1.418 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 2.289e-05/0.3335, allocations: 0 / 1.181 GB, free: 1.418 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: 265 * Number of variables: 265 Notification: Performance of Generate backend data structure: time 0.003889/0.3374, allocations: 2.337 MB / 1.184 GB, free: 15.02 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.6e-05/0.3374, allocations: 8.031 kB / 1.184 GB, free: 15.02 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001839/0.3376, allocations: 168.8 kB / 1.184 GB, free: 14.84 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001314/0.3389, allocations: 330.3 kB / 1.184 GB, free: 14.52 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002093/0.341, allocations: 1.466 MB / 1.186 GB, free: 13 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00015/0.3412, allocations: 165.5 kB / 1.186 GB, free: 12.82 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001641/0.3414, allocations: 111.9 kB / 1.186 GB, free: 12.71 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002515/0.3439, allocations: 1.434 MB / 1.187 GB, free: 11.19 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.754e-05/0.3439, allocations: 3.938 kB / 1.187 GB, free: 11.18 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001157/0.3441, allocations: 44 kB / 1.187 GB, free: 11.14 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.381e-05/0.3441, allocations: 28 kB / 1.187 GB, free: 11.11 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002986/0.3471, allocations: 1.346 MB / 1.189 GB, free: 9.762 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.006887/0.354, allocations: 6.627 MB / 1.195 GB, free: 2.691 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002047/0.356, allocations: 1.167 MB / 1.196 GB, free: 1.441 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001245/0.3573, allocations: 0.5658 MB / 1.197 GB, free: 0.875 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007627/0.3581, allocations: 1.149 MB / 1.198 GB, free: 15.47 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.332e-05/0.3581, allocations: 51.22 kB / 1.198 GB, free: 15.41 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=77): time 2.404e-06/0.3581, allocations: 0 / 1.198 GB, free: 15.41 MB / 0.9669 GB Notification: Performance of matching and sorting (n=77): time 0.003973/0.3621, allocations: 1.581 MB / 1.2 GB, free: 13.82 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.225e-05/0.3622, allocations: 115.5 kB / 1.2 GB, free: 13.68 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00154/0.3637, allocations: 1.405 MB / 1.201 GB, free: 12.27 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 8.232e-05/0.3638, allocations: 41.7 kB / 1.201 GB, free: 12.22 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004966/0.3643, allocations: 0.7164 MB / 1.202 GB, free: 11.5 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.000213/0.3645, allocations: 264.1 kB / 1.202 GB, free: 11.23 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002771/0.3648, allocations: 178.5 kB / 1.202 GB, free: 11.05 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001117/0.3649, allocations: 341.9 kB / 1.203 GB, free: 10.71 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00121/0.3662, allocations: 0.4965 MB / 1.203 GB, free: 10.21 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001362/0.3675, allocations: 0.7196 MB / 1.204 GB, free: 9.398 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002427/0.37, allocations: 1.129 MB / 1.205 GB, free: 8.207 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.938e-06/0.37, allocations: 0 / 1.205 GB, free: 8.207 MB / 0.9669 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.002998/0.373, allocations: 1.351 MB / 1.206 GB, free: 6.848 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.389e-05/0.373, allocations: 8 kB / 1.206 GB, free: 6.84 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.327e-06/0.373, allocations: 4 kB / 1.206 GB, free: 6.836 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.985e-05/0.3731, allocations: 11.94 kB / 1.206 GB, free: 6.824 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001164/0.3742, allocations: 275.8 kB / 1.206 GB, free: 6.555 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.485e-05/0.3743, allocations: 15.94 kB / 1.206 GB, free: 6.539 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001029/0.3753, allocations: 147 kB / 1.207 GB, free: 6.395 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.268e-05/0.3754, allocations: 35.98 kB / 1.207 GB, free: 6.359 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001565/0.377, allocations: 0.8024 MB / 1.207 GB, free: 5.555 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001331/0.3783, allocations: 0.7268 MB / 1.208 GB, free: 4.73 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002367/0.3807, allocations: 1.117 MB / 1.209 GB, free: 3.555 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.575e-06/0.3807, allocations: 4 kB / 1.209 GB, free: 3.551 MB / 0.9669 GB Notification: Performance of matching and sorting (n=109) (initialization_lambda0): time 0.00291/0.3836, allocations: 1.346 MB / 1.211 GB, free: 2.195 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.282e-05/0.3836, allocations: 8 kB / 1.211 GB, free: 2.188 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.3836, allocations: 7.938 kB / 1.211 GB, free: 2.18 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.376e-06/0.3836, allocations: 8.562 kB / 1.211 GB, free: 2.172 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001128/0.3848, allocations: 275.6 kB / 1.211 GB, free: 1.902 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.305e-05/0.3848, allocations: 15.88 kB / 1.211 GB, free: 1.887 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001024/0.3858, allocations: 143.2 kB / 1.211 GB, free: 1.746 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.454e-05/0.3859, allocations: 35.98 kB / 1.211 GB, free: 1.711 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 2 (intGreThr.y,reaToInt.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (109): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 0 * 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.0002661/0.3862, allocations: 240 kB / 1.211 GB, free: 1.469 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002489/0.3864, allocations: 146.2 kB / 1.211 GB, free: 1.324 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003075/0.3895, allocations: 1.474 MB / 1.213 GB, free: 15.82 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-05/0.3896, allocations: 15.94 kB / 1.213 GB, free: 15.8 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.3896, allocations: 0 / 1.213 GB, free: 15.8 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002413/0.392, allocations: 1.105 MB / 1.214 GB, free: 14.67 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005136/0.3971, allocations: 3.102 MB / 1.217 GB, free: 11.45 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.494e-06/0.3972, allocations: 4 kB / 1.217 GB, free: 11.44 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009123/0.3981, allocations: 183.7 kB / 1.217 GB, free: 11.26 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.056e-05/0.3981, allocations: 11.98 kB / 1.217 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.524e-05/0.3982, allocations: 23.94 kB / 1.217 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.146e-05/0.3982, allocations: 16.08 kB / 1.217 GB, free: 11.21 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.3982, allocations: 11.94 kB / 1.217 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004079/0.4023, allocations: 2.056 MB / 1.219 GB, free: 9.066 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006535/0.4029, allocations: 386.7 kB / 1.22 GB, free: 8.668 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001982/0.4031, allocations: 23.94 kB / 1.22 GB, free: 8.645 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001097/0.4043, allocations: 103.9 kB / 1.22 GB, free: 8.543 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001724/0.4044, allocations: 88.33 kB / 1.22 GB, free: 8.453 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.651e-05/0.4045, allocations: 47.95 kB / 1.22 GB, free: 8.406 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.001332/0.4059, allocations: 1.079 MB / 1.221 GB, free: 7.332 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4059, allocations: 0 / 1.221 GB, free: 7.332 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.001784/0.4077, allocations: 0.7955 MB / 1.222 GB, free: 6.535 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 2 (heaPum.vol1.dynBal.U,heaPum.vol2.dynBal.U) * Number of discrete variables: 2 (reaToInt.y,intGreThr.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * 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.005176/0.4128, allocations: 2.974 MB / 1.225 GB, free: 3.492 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.004175/0.417, allocations: 1.814 MB / 1.226 GB, free: 1.684 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 9.157e-06/0.4171, allocations: 7.859 kB / 1.226 GB, free: 1.676 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.00148/0.4185, allocations: 0.6365 MB / 1.227 GB, free: 1.039 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003485/0.422, allocations: 0.8314 MB / 1.228 GB, free: 228 kB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01876/0.4408, allocations: 12.44 MB / 1.24 GB, free: 3.34 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007794/0.4416, allocations: 1.281 MB / 1.241 GB, free: 2.027 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.00151/0.4431, allocations: 412.1 kB / 1.242 GB, free: 1.617 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008015/0.4439, allocations: 0.6164 MB / 1.242 GB, free: 1 MB / 0.9981 GB Notification: Performance of SimCode: time 1.142e-06/0.444, allocations: 0 / 1.242 GB, free: 1 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.978/2.422, allocations: 46.91 MB / 1.288 GB, free: 156.4 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.24/17.66, allocations: 13.8 kB / 1.288 GB, free: 156.4 MB / 1.014 GB (rm -f Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible.fmu > Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe 2>&1)