Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.Examples.EquationFitReversible,fileNamePrefix="Buildings_10_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible,fileNamePrefix="Buildings_10_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.001177/0.001177, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001063/0.001063, allocations: 191.8 kB / 16.13 MB, free: 6.699 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.318/1.318, allocations: 222.9 MB / 239.8 MB, free: 4.641 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.587/2.587, allocations: 437 MB / 0.7099 GB, free: 5.387 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001417/0.001417, allocations: 59.91 kB / 0.8687 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6841/0.6856, allocations: 151.6 MB / 1.017 GB, free: 2.809 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.05856/0.7442, allocations: 62.24 MB / 1.077 GB, free: 4.355 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.02017/0.7644, allocations: 13.71 MB / 1.091 GB, free: 6.605 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002141/0.7666, allocations: 55.69 kB / 1.091 GB, free: 6.551 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.002327/0.7689, allocations: 0.8042 MB / 1.092 GB, free: 5.742 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.005178/0.7741, allocations: 2.216 MB / 1.094 GB, free: 3.516 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.003705/0.7778, allocations: 1.471 MB / 1.095 GB, free: 2.059 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.006161/0.784, allocations: 5.476 MB / 1.101 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001668/0.7857, allocations: 1.208 MB / 1.102 GB, free: 11.33 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002428/0.7881, allocations: 1.404 MB / 1.103 GB, free: 9.918 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001515/0.7897, allocations: 1.299 MB / 1.104 GB, free: 8.613 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001939/0.7899, allocations: 88 kB / 1.105 GB, free: 8.527 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002695/0.7926, allocations: 1.317 MB / 1.106 GB, free: 7.207 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0004009/0.793, allocations: 438.3 kB / 1.106 GB, free: 6.777 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.001131/0.7941, allocations: 0.921 MB / 1.107 GB, free: 5.852 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.003892/0.798, allocations: 3.077 MB / 1.11 GB, free: 2.766 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.798, allocations: 0 / 1.11 GB, free: 2.766 MB / 0.8575 GB Notification: Performance of FrontEnd: time 8.81e-07/0.7981, allocations: 0 / 1.11 GB, free: 2.766 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 2.69e-05/0.7981, allocations: 0 / 1.11 GB, free: 2.766 MB / 0.8575 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.004484/0.8026, allocations: 2.341 MB / 1.112 GB, free: 372 kB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.686e-05/0.8026, allocations: 12.03 kB / 1.112 GB, free: 360 kB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002109/0.8029, allocations: 160.8 kB / 1.113 GB, free: 188 kB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001399/0.8043, allocations: 322.4 kB / 1.113 GB, free: 15.87 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002198/0.8065, allocations: 1.442 MB / 1.114 GB, free: 14.38 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001633/0.8067, allocations: 173.3 kB / 1.115 GB, free: 14.19 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001641/0.8068, allocations: 111.9 kB / 1.115 GB, free: 14.08 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002756/0.8096, allocations: 1.434 MB / 1.116 GB, free: 12.56 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.96e-05/0.8096, allocations: 4 kB / 1.116 GB, free: 12.55 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001243/0.8098, allocations: 48 kB / 1.116 GB, free: 12.51 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.033e-05/0.8098, allocations: 31.94 kB / 1.116 GB, free: 12.48 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003052/0.8129, allocations: 1.343 MB / 1.117 GB, free: 11.14 MB / 0.8731 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.008205/0.8211, allocations: 6.624 MB / 1.124 GB, free: 4.07 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002187/0.8233, allocations: 1.17 MB / 1.125 GB, free: 2.82 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001284/0.8246, allocations: 0.5604 MB / 1.126 GB, free: 2.258 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008962/0.8255, allocations: 1.149 MB / 1.127 GB, free: 0.8516 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.58e-05/0.8256, allocations: 51.16 kB / 1.127 GB, free: 0.793 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=77): time 2.425e-06/0.8256, allocations: 0 / 1.127 GB, free: 0.793 MB / 0.8731 GB Notification: Performance of matching and sorting (n=77): time 0.004105/0.8297, allocations: 1.585 MB / 1.128 GB, free: 15.2 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.196e-05/0.8297, allocations: 111.5 kB / 1.128 GB, free: 15.07 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001801/0.8316, allocations: 1.401 MB / 1.13 GB, free: 13.66 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 8.941e-05/0.8317, allocations: 45.7 kB / 1.13 GB, free: 13.61 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005851/0.8322, allocations: 0.7086 MB / 1.131 GB, free: 12.89 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002393/0.8325, allocations: 264.1 kB / 1.131 GB, free: 12.62 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003115/0.8328, allocations: 182.5 kB / 1.131 GB, free: 12.44 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001237/0.8329, allocations: 334 kB / 1.131 GB, free: 12.11 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001242/0.8342, allocations: 0.4927 MB / 1.132 GB, free: 11.61 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001387/0.8356, allocations: 0.7229 MB / 1.132 GB, free: 10.79 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002517/0.8381, allocations: 1.136 MB / 1.134 GB, free: 9.594 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.574e-06/0.8381, allocations: 8 kB / 1.134 GB, free: 9.586 MB / 0.8887 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.003127/0.8413, allocations: 1.347 MB / 1.135 GB, free: 8.23 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.941e-05/0.8413, allocations: 10.34 kB / 1.135 GB, free: 8.223 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/0.8413, allocations: 4 kB / 1.135 GB, free: 8.219 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.332e-05/0.8413, allocations: 12 kB / 1.135 GB, free: 8.207 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001237/0.8426, allocations: 268.2 kB / 1.135 GB, free: 7.945 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.815e-05/0.8426, allocations: 19.88 kB / 1.135 GB, free: 7.926 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001244/0.8439, allocations: 191 kB / 1.135 GB, free: 7.738 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.173e-05/0.844, allocations: 39.98 kB / 1.135 GB, free: 7.699 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001681/0.8457, allocations: 0.7946 MB / 1.136 GB, free: 6.902 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001392/0.8471, allocations: 0.7191 MB / 1.137 GB, free: 6.086 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002473/0.8495, allocations: 1.125 MB / 1.138 GB, free: 4.902 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.755e-06/0.8495, allocations: 0 / 1.138 GB, free: 4.902 MB / 0.8887 GB Notification: Performance of matching and sorting (n=109) (initialization_lambda0): time 0.003126/0.8527, allocations: 1.355 MB / 1.139 GB, free: 3.539 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.309e-05/0.8527, allocations: 8 kB / 1.139 GB, free: 3.531 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.8527, allocations: 7.984 kB / 1.139 GB, free: 3.523 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.809e-06/0.8527, allocations: 8 kB / 1.139 GB, free: 3.516 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001157/0.8539, allocations: 271.6 kB / 1.14 GB, free: 3.25 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.499e-05/0.8539, allocations: 11.94 kB / 1.14 GB, free: 3.238 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001235/0.8552, allocations: 179.1 kB / 1.14 GB, free: 3.062 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.051e-05/0.8553, allocations: 39.98 kB / 1.14 GB, free: 3.023 MB / 0.8887 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.0003093/0.8556, allocations: 240 kB / 1.14 GB, free: 2.781 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003177/0.8559, allocations: 146.2 kB / 1.14 GB, free: 2.637 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003289/0.8592, allocations: 1.482 MB / 1.142 GB, free: 1.125 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.738e-05/0.8592, allocations: 8 kB / 1.142 GB, free: 1.117 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/0.8592, allocations: 7.938 kB / 1.142 GB, free: 1.109 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002473/0.8617, allocations: 1.101 MB / 1.143 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005831/0.8676, allocations: 3.09 MB / 1.146 GB, free: 12.77 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.005e-05/0.8676, allocations: 8.031 kB / 1.146 GB, free: 12.76 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009576/0.8686, allocations: 187.7 kB / 1.146 GB, free: 12.58 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.146e-05/0.8686, allocations: 8 kB / 1.146 GB, free: 12.57 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.632e-05/0.8687, allocations: 23.98 kB / 1.146 GB, free: 12.55 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.22e-05/0.8687, allocations: 15.92 kB / 1.146 GB, free: 12.53 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.631e-06/0.8687, allocations: 7.938 kB / 1.146 GB, free: 12.52 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0044/0.8731, allocations: 2.068 MB / 1.148 GB, free: 10.38 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007088/0.8738, allocations: 386.7 kB / 1.148 GB, free: 9.98 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000339/0.8742, allocations: 19.98 kB / 1.148 GB, free: 9.961 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001393/0.8756, allocations: 147.7 kB / 1.149 GB, free: 9.816 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002008/0.8758, allocations: 80.34 kB / 1.149 GB, free: 9.734 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001033/0.8759, allocations: 39.97 kB / 1.149 GB, free: 9.695 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001616/0.8775, allocations: 1.072 MB / 1.15 GB, free: 8.629 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.7e-07/0.8775, allocations: 0 / 1.15 GB, free: 8.629 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.002106/0.8796, allocations: 0.7916 MB / 1.15 GB, free: 7.836 MB / 0.9044 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.005594/0.8852, allocations: 2.96 MB / 1.153 GB, free: 4.793 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.004389/0.8896, allocations: 1.814 MB / 1.155 GB, free: 2.984 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/0.8897, allocations: 3.859 kB / 1.155 GB, free: 2.98 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.001592/0.8913, allocations: 0.6366 MB / 1.156 GB, free: 2.348 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003976/0.8953, allocations: 0.7905 MB / 1.156 GB, free: 1.57 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02659/0.9219, allocations: 14.11 MB / 1.17 GB, free: 2.758 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001055/0.9229, allocations: 1.277 MB / 1.172 GB, free: 1.453 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.002011/0.925, allocations: 405.1 kB / 1.172 GB, free: 1.051 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001024/0.926, allocations: 0.6164 MB / 1.173 GB, free: 444 kB / 0.92 GB Notification: Performance of SimCode: time 1.042e-06/0.926, allocations: 0 / 1.173 GB, free: 444 kB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07757/1.004, allocations: 44.61 MB / 1.216 GB, free: 4.348 MB / 0.9669 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001949/1.004, allocations: 255.5 kB / 1.216 GB, free: 4.09 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.967/3.971, allocations: 0 / 1.216 GB, free: 4.09 MB / 0.9669 GB (rm -f Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; mkfifo Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe >> ../files/Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible.fmu > Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe 2>&1)