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.001637/0.001642, allocations: 108 kB / 15.6 MB, free: 132 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.001846/0.001846, allocations: 193.8 kB / 16.53 MB, free: 6.391 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.344/1.344, allocations: 222.9 MB / 240.2 MB, free: 4.426 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.351/2.351, allocations: 390.2 MB / 0.6647 GB, free: 424 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 63.91 kB / 0.8126 GB, free: 14.39 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5706/0.5719, allocations: 140.4 MB / 0.9497 GB, free: 9.223 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.06215/0.6341, allocations: 62.63 MB / 1.011 GB, free: 3.039 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.01786/0.652, allocations: 13.66 MB / 1.024 GB, free: 5.348 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002136/0.6542, allocations: 59.69 kB / 1.024 GB, free: 5.289 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.002519/0.6567, allocations: 0.955 MB / 1.025 GB, free: 4.328 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.006011/0.6628, allocations: 2.382 MB / 1.028 GB, free: 1.934 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.003976/0.6668, allocations: 1.632 MB / 1.029 GB, free: 324 kB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.005784/0.6725, allocations: 4.276 MB / 1.033 GB, free: 12.03 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002406/0.675, allocations: 1.4 MB / 1.035 GB, free: 10.59 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003572/0.6786, allocations: 1.642 MB / 1.036 GB, free: 8.953 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001949/0.6805, allocations: 1.292 MB / 1.038 GB, free: 7.656 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0004549/0.681, allocations: 176 kB / 1.038 GB, free: 7.484 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003017/0.684, allocations: 1.423 MB / 1.039 GB, free: 6.059 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0005714/0.6846, allocations: 0.514 MB / 1.04 GB, free: 5.543 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.001395/0.686, allocations: 1.003 MB / 1.041 GB, free: 4.535 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.00439/0.6904, allocations: 3.135 MB / 1.044 GB, free: 1.391 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.6904, allocations: 0 / 1.044 GB, free: 1.391 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.913e-06/0.6904, allocations: 0 / 1.044 GB, free: 1.391 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.744e-05/0.6905, allocations: 0 / 1.044 GB, free: 1.391 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.004049/0.6945, allocations: 2.333 MB / 1.046 GB, free: 15 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.6946, allocations: 8.031 kB / 1.046 GB, free: 14.99 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001934/0.6948, allocations: 172.8 kB / 1.046 GB, free: 14.81 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001334/0.6961, allocations: 314.4 kB / 1.046 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002005/0.6981, allocations: 1.408 MB / 1.048 GB, free: 13.04 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001648/0.6983, allocations: 161.5 kB / 1.048 GB, free: 12.87 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001507/0.6985, allocations: 111.9 kB / 1.048 GB, free: 12.76 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002614/0.7011, allocations: 1.438 MB / 1.049 GB, free: 11.23 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.531e-05/0.7011, allocations: 4 kB / 1.049 GB, free: 11.23 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001149/0.7012, allocations: 48 kB / 1.049 GB, free: 11.18 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.09e-05/0.7013, allocations: 31.94 kB / 1.049 GB, free: 11.15 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003064/0.7044, allocations: 1.335 MB / 1.051 GB, free: 9.812 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.007182/0.7115, allocations: 6.675 MB / 1.057 GB, free: 2.691 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002094/0.7137, allocations: 1.165 MB / 1.058 GB, free: 1.449 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001264/0.7149, allocations: 0.5648 MB / 1.059 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007508/0.7157, allocations: 1.145 MB / 1.06 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.154e-05/0.7157, allocations: 43.22 kB / 1.06 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=77): time 2.284e-06/0.7157, allocations: 0 / 1.06 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of matching and sorting (n=77): time 0.004053/0.7198, allocations: 1.593 MB / 1.062 GB, free: 13.83 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.297e-05/0.7199, allocations: 115.4 kB / 1.062 GB, free: 13.69 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001621/0.7215, allocations: 1.401 MB / 1.063 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 8.226e-05/0.7216, allocations: 45.7 kB / 1.063 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005312/0.7221, allocations: 0.7163 MB / 1.064 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002276/0.7224, allocations: 264.1 kB / 1.064 GB, free: 11.24 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002896/0.7227, allocations: 178.5 kB / 1.064 GB, free: 11.06 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001102/0.7228, allocations: 337.9 kB / 1.065 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001265/0.7241, allocations: 0.4927 MB / 1.065 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001447/0.7255, allocations: 0.7195 MB / 1.066 GB, free: 9.41 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002515/0.728, allocations: 1.129 MB / 1.067 GB, free: 8.223 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.728, allocations: 0 / 1.067 GB, free: 8.223 MB / 0.8262 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.003091/0.7311, allocations: 1.358 MB / 1.068 GB, free: 6.855 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.7312, allocations: 4 kB / 1.068 GB, free: 6.852 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.838e-06/0.7312, allocations: 4 kB / 1.068 GB, free: 6.848 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.21e-05/0.7312, allocations: 15.94 kB / 1.068 GB, free: 6.832 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001172/0.7324, allocations: 279.9 kB / 1.069 GB, free: 6.559 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.471e-05/0.7324, allocations: 11.94 kB / 1.069 GB, free: 6.547 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001111/0.7335, allocations: 155 kB / 1.069 GB, free: 6.395 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.407e-05/0.7336, allocations: 39.98 kB / 1.069 GB, free: 6.355 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001768/0.7354, allocations: 0.7907 MB / 1.07 GB, free: 5.562 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00141/0.7368, allocations: 0.7191 MB / 1.07 GB, free: 4.75 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002526/0.7394, allocations: 1.125 MB / 1.071 GB, free: 3.559 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.258e-06/0.7394, allocations: 3.984 kB / 1.071 GB, free: 3.555 MB / 0.8262 GB Notification: Performance of matching and sorting (n=109) (initialization_lambda0): time 0.00325/0.7426, allocations: 1.343 MB / 1.073 GB, free: 2.207 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.7427, allocations: 11.94 kB / 1.073 GB, free: 2.195 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.7427, allocations: 4.562 kB / 1.073 GB, free: 2.191 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.15e-05/0.7427, allocations: 15.94 kB / 1.073 GB, free: 2.176 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001205/0.7439, allocations: 267.6 kB / 1.073 GB, free: 1.914 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.409e-05/0.7439, allocations: 11.94 kB / 1.073 GB, free: 1.902 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001136/0.7451, allocations: 143.2 kB / 1.073 GB, free: 1.762 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.646e-05/0.7452, allocations: 35.98 kB / 1.073 GB, free: 1.727 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.0002915/0.7455, allocations: 240 kB / 1.073 GB, free: 1.484 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002858/0.7457, allocations: 150.1 kB / 1.074 GB, free: 1.336 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003258/0.749, allocations: 1.474 MB / 1.075 GB, free: 15.83 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.446e-05/0.749, allocations: 11.94 kB / 1.075 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.179e-06/0.749, allocations: 0 / 1.075 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002484/0.7515, allocations: 1.113 MB / 1.076 GB, free: 14.67 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005462/0.757, allocations: 3.094 MB / 1.079 GB, free: 11.45 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.556e-06/0.757, allocations: 7.938 kB / 1.079 GB, free: 11.45 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000963/0.758, allocations: 196.3 kB / 1.079 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.06e-05/0.758, allocations: 8 kB / 1.079 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.685e-05/0.7581, allocations: 23.92 kB / 1.079 GB, free: 11.22 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.186e-05/0.7581, allocations: 11.94 kB / 1.079 GB, free: 11.21 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.7581, allocations: 4 kB / 1.079 GB, free: 11.21 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004414/0.7626, allocations: 2.075 MB / 1.081 GB, free: 9.059 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006328/0.7632, allocations: 378.8 kB / 1.082 GB, free: 8.668 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000234/0.7634, allocations: 19.94 kB / 1.082 GB, free: 8.648 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001159/0.7646, allocations: 99.86 kB / 1.082 GB, free: 8.551 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001795/0.7648, allocations: 88.41 kB / 1.082 GB, free: 8.461 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.436e-05/0.7649, allocations: 35.97 kB / 1.082 GB, free: 8.426 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.001444/0.7663, allocations: 1.079 MB / 1.083 GB, free: 7.352 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.41e-07/0.7664, allocations: 0 / 1.083 GB, free: 7.352 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001872/0.7682, allocations: 0.8032 MB / 1.084 GB, free: 6.547 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.00531/0.7736, allocations: 2.987 MB / 1.087 GB, free: 3.488 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.004704/0.7783, allocations: 1.873 MB / 1.089 GB, free: 1.621 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 7.264e-06/0.7783, allocations: 8.125 kB / 1.089 GB, free: 1.613 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001515/0.7798, allocations: 0.6365 MB / 1.089 GB, free: 0.9766 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00361/0.7834, allocations: 0.824 MB / 1.09 GB, free: 180 kB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01951/0.803, allocations: 13.68 MB / 1.103 GB, free: 1.793 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008254/0.8038, allocations: 1.277 MB / 1.105 GB, free: 500 kB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.001726/0.8055, allocations: 408.2 kB / 1.105 GB, free: 84 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008968/0.8065, allocations: 0.6164 MB / 1.106 GB, free: 15.46 MB / 0.8731 GB Notification: Performance of SimCode: time 1.793e-06/0.8065, allocations: 4 kB / 1.106 GB, free: 15.46 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09644/0.9029, allocations: 46.56 MB / 1.151 GB, free: 1.426 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.324/10.23, allocations: 10.5 kB / 1.151 GB, free: 1.418 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)