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.001264/0.001264, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00133/0.00133, allocations: 191 kB / 16.25 MB, free: 6.625 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.29/1.29, allocations: 222.9 MB / 239.9 MB, free: 4.523 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.107/2.107, allocations: 390.2 MB / 0.6644 GB, free: 0.5703 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001423/0.001423, allocations: 59.91 kB / 0.8121 GB, free: 14.7 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5082/0.5096, allocations: 140.4 MB / 0.9492 GB, free: 9.215 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.04714/0.5568, allocations: 62.11 MB / 1.01 GB, free: 3.766 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.01489/0.5717, allocations: 13.54 MB / 1.023 GB, free: 6.184 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001843/0.5736, allocations: 59.62 kB / 1.023 GB, free: 6.125 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.002201/0.5758, allocations: 0.8394 MB / 1.024 GB, free: 5.281 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.004933/0.5808, allocations: 2.224 MB / 1.026 GB, free: 3.051 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.003153/0.5839, allocations: 1.499 MB / 1.028 GB, free: 1.566 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.004562/0.5885, allocations: 4.306 MB / 1.032 GB, free: 13.25 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001894/0.5904, allocations: 1.412 MB / 1.033 GB, free: 11.8 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003383/0.5938, allocations: 1.663 MB / 1.035 GB, free: 10.14 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001866/0.5957, allocations: 1.334 MB / 1.036 GB, free: 8.797 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0004561/0.5962, allocations: 172 kB / 1.036 GB, free: 8.629 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00271/0.5989, allocations: 1.439 MB / 1.038 GB, free: 7.188 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0005345/0.5994, allocations: 0.5062 MB / 1.038 GB, free: 6.68 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.001199/0.6006, allocations: 1.019 MB / 1.039 GB, free: 5.656 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.003534/0.6042, allocations: 3.147 MB / 1.042 GB, free: 2.5 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.6042, allocations: 0 / 1.042 GB, free: 2.5 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.333e-06/0.6042, allocations: 0 / 1.042 GB, free: 2.5 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.211e-05/0.6042, allocations: 0 / 1.042 GB, free: 2.5 MB / 0.795 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.003865/0.6081, allocations: 2.337 MB / 1.045 GB, free: 108 kB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.6082, allocations: 12.03 kB / 1.045 GB, free: 96 kB / 0.795 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001872/0.6083, allocations: 164.8 kB / 1.045 GB, free: 15.92 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001236/0.6096, allocations: 318.4 kB / 1.045 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0018/0.6114, allocations: 1.439 MB / 1.046 GB, free: 14.12 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001423/0.6116, allocations: 169.3 kB / 1.047 GB, free: 13.94 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001445/0.6117, allocations: 112 kB / 1.047 GB, free: 13.83 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002419/0.6141, allocations: 1.437 MB / 1.048 GB, free: 12.3 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.773e-05/0.6142, allocations: 4 kB / 1.048 GB, free: 12.3 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001118/0.6143, allocations: 51.98 kB / 1.048 GB, free: 12.25 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.22e-05/0.6143, allocations: 28 kB / 1.048 GB, free: 12.22 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002738/0.6171, allocations: 1.339 MB / 1.049 GB, free: 10.88 MB / 0.8106 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.006705/0.6238, allocations: 6.62 MB / 1.056 GB, free: 3.809 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001904/0.6257, allocations: 1.168 MB / 1.057 GB, free: 2.562 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001129/0.6268, allocations: 0.5609 MB / 1.058 GB, free: 1.996 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006701/0.6275, allocations: 1.145 MB / 1.059 GB, free: 0.5898 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.021e-05/0.6276, allocations: 51.2 kB / 1.059 GB, free: 0.5312 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=77): time 2.274e-06/0.6276, allocations: 0 / 1.059 GB, free: 0.5312 MB / 0.8106 GB Notification: Performance of matching and sorting (n=77): time 0.003577/0.6312, allocations: 1.585 MB / 1.06 GB, free: 14.94 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.838e-05/0.6312, allocations: 115.4 kB / 1.06 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001604/0.6329, allocations: 1.389 MB / 1.062 GB, free: 13.4 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 7.595e-05/0.6329, allocations: 53.64 kB / 1.062 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004453/0.6334, allocations: 0.7085 MB / 1.063 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.000186/0.6336, allocations: 268 kB / 1.063 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002648/0.6339, allocations: 174.5 kB / 1.063 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.637e-05/0.634, allocations: 338 kB / 1.063 GB, free: 11.85 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001091/0.6351, allocations: 0.4888 MB / 1.064 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001235/0.6363, allocations: 0.7229 MB / 1.064 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002209/0.6385, allocations: 1.133 MB / 1.066 GB, free: 9.348 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.069e-06/0.6385, allocations: 0 / 1.066 GB, free: 9.348 MB / 0.8262 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.00271/0.6412, allocations: 1.362 MB / 1.067 GB, free: 7.973 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/0.6413, allocations: 5.562 kB / 1.067 GB, free: 7.969 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.17e-05/0.6413, allocations: 8 kB / 1.067 GB, free: 7.961 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.838e-05/0.6413, allocations: 11.94 kB / 1.067 GB, free: 7.949 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001094/0.6424, allocations: 276 kB / 1.067 GB, free: 7.68 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.805e-05/0.6424, allocations: 11.94 kB / 1.067 GB, free: 7.668 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001103/0.6435, allocations: 195 kB / 1.067 GB, free: 7.477 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.214e-05/0.6436, allocations: 32 kB / 1.067 GB, free: 7.445 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001452/0.6451, allocations: 0.7985 MB / 1.068 GB, free: 6.645 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001229/0.6463, allocations: 0.719 MB / 1.069 GB, free: 5.836 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002167/0.6485, allocations: 1.117 MB / 1.07 GB, free: 4.652 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.208e-06/0.6485, allocations: 0 / 1.07 GB, free: 4.652 MB / 0.8262 GB Notification: Performance of matching and sorting (n=109) (initialization_lambda0): time 0.002613/0.6511, allocations: 1.347 MB / 1.071 GB, free: 3.297 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 8.827e-06/0.6512, allocations: 12.06 kB / 1.071 GB, free: 3.285 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.6512, allocations: 4 kB / 1.071 GB, free: 3.281 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.204e-06/0.6512, allocations: 8 kB / 1.071 GB, free: 3.273 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001084/0.6523, allocations: 271.6 kB / 1.072 GB, free: 3.008 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.045e-05/0.6523, allocations: 15.94 kB / 1.072 GB, free: 2.992 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00106/0.6534, allocations: 179.1 kB / 1.072 GB, free: 2.816 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.366e-05/0.6534, allocations: 35.98 kB / 1.072 GB, free: 2.781 MB / 0.8262 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.0002151/0.6537, allocations: 240 kB / 1.072 GB, free: 2.539 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000222/0.6539, allocations: 146.2 kB / 1.072 GB, free: 2.395 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002759/0.6567, allocations: 1.474 MB / 1.074 GB, free: 0.8906 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.274e-05/0.6567, allocations: 15.88 kB / 1.074 GB, free: 0.875 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.6567, allocations: 0 / 1.074 GB, free: 0.875 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002193/0.6589, allocations: 1.109 MB / 1.075 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004606/0.6635, allocations: 3.094 MB / 1.078 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.783e-06/0.6635, allocations: 4 kB / 1.078 GB, free: 12.51 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008662/0.6644, allocations: 191.7 kB / 1.078 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.458e-06/0.6644, allocations: 8 kB / 1.078 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.916e-05/0.6645, allocations: 27.92 kB / 1.078 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.885e-06/0.6645, allocations: 11.94 kB / 1.078 GB, free: 12.28 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.039e-06/0.6645, allocations: 4 kB / 1.078 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003755/0.6683, allocations: 2.072 MB / 1.08 GB, free: 10.13 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00051/0.6688, allocations: 382.8 kB / 1.08 GB, free: 9.734 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002698/0.6691, allocations: 27.84 kB / 1.08 GB, free: 9.707 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001171/0.6702, allocations: 143.8 kB / 1.081 GB, free: 9.566 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001749/0.6704, allocations: 84.33 kB / 1.081 GB, free: 9.48 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.587e-05/0.6705, allocations: 43.97 kB / 1.081 GB, free: 9.438 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.001254/0.6718, allocations: 1.064 MB / 1.082 GB, free: 8.379 MB / 0.8419 GB Notification: Performance of sort global known variables: time 3.41e-07/0.6718, allocations: 4 kB / 1.082 GB, free: 8.375 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001696/0.6735, allocations: 0.7954 MB / 1.082 GB, free: 7.578 MB / 0.8419 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.004773/0.6783, allocations: 2.948 MB / 1.085 GB, free: 4.559 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.003936/0.6822, allocations: 1.873 MB / 1.087 GB, free: 2.691 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 5.62e-06/0.6822, allocations: 8.125 kB / 1.087 GB, free: 2.684 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001342/0.6836, allocations: 0.6404 MB / 1.088 GB, free: 2.043 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003076/0.6867, allocations: 0.8377 MB / 1.089 GB, free: 1.227 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02185/0.7085, allocations: 14.1 MB / 1.102 GB, free: 2.43 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006777/0.7092, allocations: 1.273 MB / 1.104 GB, free: 1.129 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.001493/0.7107, allocations: 401.8 kB / 1.104 GB, free: 0.7305 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000747/0.7115, allocations: 0.6203 MB / 1.105 GB, free: 112 kB / 0.8575 GB Notification: Performance of SimCode: time 4.7e-07/0.7115, allocations: 3.938 kB / 1.105 GB, free: 108 kB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.318/3.03, allocations: 45.74 MB / 1.149 GB, free: 2.945 MB / 0.9044 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002414/3.03, allocations: 250.8 kB / 1.15 GB, free: 2.691 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.068/6.099, allocations: 3.938 kB / 1.15 GB, free: 2.688 MB / 0.9044 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)