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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001135/0.001136, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001167/0.001167, allocations: 195 kB / 16.53 MB, free: 6.664 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.244/1.244, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.361/2.361, allocations: 437 MB / 0.7104 GB, free: 5.055 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 55.91 kB / 0.8693 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.528/0.5293, allocations: 151.6 MB / 1.017 GB, free: 2.637 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.05563/0.585, allocations: 62.65 MB / 1.079 GB, free: 3.773 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01581/0.6008, allocations: 13.65 MB / 1.092 GB, free: 6.082 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001655/0.6025, allocations: 63.69 kB / 1.092 GB, free: 6.02 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0023/0.6048, allocations: 0.9433 MB / 1.093 GB, free: 5.07 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0051/0.61, allocations: 2.398 MB / 1.095 GB, free: 2.664 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.00331/0.6133, allocations: 1.622 MB / 1.097 GB, free: 1.055 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.004291/0.6176, allocations: 4.279 MB / 1.101 GB, free: 12.76 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001803/0.6194, allocations: 1.412 MB / 1.102 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002887/0.6223, allocations: 1.635 MB / 1.104 GB, free: 9.68 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001722/0.624, allocations: 1.292 MB / 1.105 GB, free: 8.383 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0003999/0.6244, allocations: 172 kB / 1.105 GB, free: 8.215 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002624/0.6271, allocations: 1.431 MB / 1.107 GB, free: 6.781 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.000485/0.6276, allocations: 0.5062 MB / 1.107 GB, free: 6.273 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.001164/0.6287, allocations: 1.007 MB / 1.108 GB, free: 5.262 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.003681/0.6324, allocations: 3.132 MB / 1.111 GB, free: 2.121 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.6324, allocations: 3.984 kB / 1.111 GB, free: 2.117 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.202e-06/0.6324, allocations: 0 / 1.111 GB, free: 2.117 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.023e-05/0.6325, allocations: 0 / 1.111 GB, free: 2.117 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.004212/0.6367, allocations: 2.333 MB / 1.114 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.6368, allocations: 15.97 kB / 1.114 GB, free: 15.71 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001882/0.6369, allocations: 164.8 kB / 1.114 GB, free: 15.54 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001302/0.6383, allocations: 322.4 kB / 1.114 GB, free: 15.22 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001992/0.6403, allocations: 1.416 MB / 1.115 GB, free: 13.75 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001462/0.6404, allocations: 157.5 kB / 1.116 GB, free: 13.59 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001494/0.6406, allocations: 108 kB / 1.116 GB, free: 13.48 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00254/0.6431, allocations: 1.438 MB / 1.117 GB, free: 11.95 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.351e-05/0.6432, allocations: 0 / 1.117 GB, free: 11.95 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001145/0.6433, allocations: 51.98 kB / 1.117 GB, free: 11.9 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.713e-05/0.6433, allocations: 32 kB / 1.117 GB, free: 11.87 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002995/0.6463, allocations: 1.343 MB / 1.119 GB, free: 10.53 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.006905/0.6532, allocations: 6.663 MB / 1.125 GB, free: 3.422 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002007/0.6553, allocations: 1.168 MB / 1.126 GB, free: 2.172 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001224/0.6565, allocations: 0.5609 MB / 1.127 GB, free: 1.605 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007068/0.6572, allocations: 1.149 MB / 1.128 GB, free: 204 kB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.759e-05/0.6572, allocations: 43.22 kB / 1.128 GB, free: 152 kB / 0.8731 GB Notification: Performance of pre-optimization done (n=77): time 1.814e-06/0.6573, allocations: 0 / 1.128 GB, free: 152 kB / 0.8731 GB Notification: Performance of matching and sorting (n=77): time 0.003885/0.6611, allocations: 1.593 MB / 1.129 GB, free: 14.55 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.31e-05/0.6612, allocations: 111.5 kB / 1.13 GB, free: 14.41 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001572/0.6628, allocations: 1.408 MB / 1.131 GB, free: 13 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 7.559e-05/0.6629, allocations: 41.7 kB / 1.131 GB, free: 12.95 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004923/0.6634, allocations: 0.7202 MB / 1.132 GB, free: 12.22 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001999/0.6636, allocations: 264.1 kB / 1.132 GB, free: 11.96 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002774/0.6639, allocations: 174.5 kB / 1.132 GB, free: 11.78 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001026/0.664, allocations: 341.9 kB / 1.132 GB, free: 11.44 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001212/0.6652, allocations: 0.4965 MB / 1.133 GB, free: 10.94 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001337/0.6665, allocations: 0.7195 MB / 1.134 GB, free: 10.13 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002439/0.669, allocations: 1.129 MB / 1.135 GB, free: 8.938 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.669, allocations: 0 / 1.135 GB, free: 8.938 MB / 0.8887 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.002926/0.6719, allocations: 1.362 MB / 1.136 GB, free: 7.562 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/0.672, allocations: 9.562 kB / 1.136 GB, free: 7.555 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.266e-06/0.672, allocations: 7.938 kB / 1.136 GB, free: 7.547 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.861e-05/0.672, allocations: 8 kB / 1.136 GB, free: 7.539 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001148/0.6731, allocations: 272 kB / 1.136 GB, free: 7.273 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.677e-05/0.6732, allocations: 15.92 kB / 1.136 GB, free: 7.258 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009724/0.6742, allocations: 155 kB / 1.136 GB, free: 7.105 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.82e-05/0.6742, allocations: 39.98 kB / 1.137 GB, free: 7.066 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001512/0.6758, allocations: 0.7883 MB / 1.137 GB, free: 6.277 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001319/0.6771, allocations: 0.7269 MB / 1.138 GB, free: 5.457 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002373/0.6795, allocations: 1.125 MB / 1.139 GB, free: 4.273 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.917e-06/0.6795, allocations: 4 kB / 1.139 GB, free: 4.27 MB / 0.8887 GB Notification: Performance of matching and sorting (n=109) (initialization_lambda0): time 0.002852/0.6823, allocations: 1.343 MB / 1.14 GB, free: 2.914 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.04e-05/0.6824, allocations: 8 kB / 1.14 GB, free: 2.906 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.6824, allocations: 4.562 kB / 1.14 GB, free: 2.902 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.566e-06/0.6824, allocations: 12 kB / 1.14 GB, free: 2.891 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0011/0.6835, allocations: 267.6 kB / 1.141 GB, free: 2.629 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.323e-05/0.6835, allocations: 11.98 kB / 1.141 GB, free: 2.617 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009785/0.6845, allocations: 147.2 kB / 1.141 GB, free: 2.473 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.657e-05/0.6846, allocations: 35.98 kB / 1.141 GB, free: 2.438 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.0002107/0.6848, allocations: 240 kB / 1.141 GB, free: 2.195 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002389/0.685, allocations: 150.1 kB / 1.141 GB, free: 2.047 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002998/0.6881, allocations: 1.474 MB / 1.143 GB, free: 0.543 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.196e-05/0.6881, allocations: 11.94 kB / 1.143 GB, free: 0.5312 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.6881, allocations: 3.938 kB / 1.143 GB, free: 0.5273 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002395/0.6905, allocations: 1.105 MB / 1.144 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004896/0.6954, allocations: 3.102 MB / 1.147 GB, free: 12.17 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.572e-06/0.6954, allocations: 4 kB / 1.147 GB, free: 12.17 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009064/0.6963, allocations: 200.2 kB / 1.147 GB, free: 11.97 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.267e-06/0.6963, allocations: 8 kB / 1.147 GB, free: 11.96 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.846e-05/0.6964, allocations: 19.98 kB / 1.147 GB, free: 11.95 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.688e-06/0.6964, allocations: 11.94 kB / 1.147 GB, free: 11.93 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.9e-06/0.6964, allocations: 7.938 kB / 1.147 GB, free: 11.93 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004031/0.7005, allocations: 2.068 MB / 1.149 GB, free: 9.781 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004862/0.701, allocations: 382.8 kB / 1.149 GB, free: 9.387 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002043/0.7012, allocations: 20 kB / 1.149 GB, free: 9.367 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001081/0.7023, allocations: 107.7 kB / 1.15 GB, free: 9.262 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001689/0.7024, allocations: 88.41 kB / 1.15 GB, free: 9.172 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.074e-05/0.7025, allocations: 39.97 kB / 1.15 GB, free: 9.133 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001271/0.7038, allocations: 1.079 MB / 1.151 GB, free: 8.059 MB / 0.9044 GB Notification: Performance of sort global known variables: time 4.61e-07/0.7038, allocations: 3.938 kB / 1.151 GB, free: 8.055 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.001625/0.7054, allocations: 0.7955 MB / 1.152 GB, free: 7.258 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.004992/0.7104, allocations: 2.98 MB / 1.154 GB, free: 4.199 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.00422/0.7147, allocations: 1.869 MB / 1.156 GB, free: 2.34 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 6.642e-06/0.7147, allocations: 11.98 kB / 1.156 GB, free: 2.328 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.001434/0.7161, allocations: 0.6365 MB / 1.157 GB, free: 1.691 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003231/0.7194, allocations: 0.8371 MB / 1.158 GB, free: 0.8789 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01844/0.7378, allocations: 13.68 MB / 1.171 GB, free: 2.484 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007554/0.7386, allocations: 1.281 MB / 1.172 GB, free: 1.176 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.001442/0.74, allocations: 408.1 kB / 1.173 GB, free: 0.7734 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007851/0.7408, allocations: 0.6203 MB / 1.173 GB, free: 156 kB / 0.92 GB Notification: Performance of SimCode: time 2.41e-07/0.7408, allocations: 4 kB / 1.173 GB, free: 152 kB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.88/2.621, allocations: 46.59 MB / 1.219 GB, free: 2.09 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.965/12.59, allocations: 16.28 kB / 1.219 GB, free: 2.078 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)