Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible") translateModel(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007582/0.0007581, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.0008212/0.0008214, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.357/1.357, allocations: 205.4 MB / 222.1 MB, free: 5.66 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.568/1.568, allocations: 292.7 MB / 0.5499 GB, free: 14.57 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005193/0.0005193, allocations: 14.75 kB / 0.6737 GB, free: 26.06 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2297/0.2302, allocations: 116.3 MB / 0.7873 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.05045/0.2807, allocations: 57.75 MB / 0.8437 GB, free: 2.051 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.01585/0.2966, allocations: 12.68 MB / 0.8561 GB, free: 5.348 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002244/0.2989, allocations: 51.69 kB / 0.8561 GB, free: 5.297 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.002198/0.3011, allocations: 0.695 MB / 0.8568 GB, free: 4.598 MB / 0.67 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.005487/0.3066, allocations: 1.846 MB / 0.8586 GB, free: 2.742 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.003551/0.3102, allocations: 1.219 MB / 0.8598 GB, free: 1.539 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.005691/0.3159, allocations: 4.668 MB / 0.8643 GB, free: 12.86 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001752/0.3177, allocations: 1.055 MB / 0.8654 GB, free: 11.77 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002509/0.3202, allocations: 1.33 MB / 0.8667 GB, free: 10.43 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001461/0.3217, allocations: 1.175 MB / 0.8678 GB, free: 9.254 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.0001589/0.3218, allocations: 79.98 kB / 0.8679 GB, free: 9.176 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002247/0.3241, allocations: 0.955 MB / 0.8688 GB, free: 8.219 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.0003724/0.3245, allocations: 382.5 kB / 0.8692 GB, free: 7.844 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.000418/0.3249, allocations: 384.8 kB / 0.8695 GB, free: 7.461 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.002281/0.3272, allocations: 2.303 MB / 0.8718 GB, free: 5.152 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.3272, allocations: 0 / 0.8718 GB, free: 5.152 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.583e-06/0.3272, allocations: 4 kB / 0.8718 GB, free: 5.148 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 2.966e-05/0.3272, allocations: 4 kB / 0.8718 GB, free: 5.145 MB / 0.6856 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.00365/0.3309, allocations: 2.037 MB / 0.8738 GB, free: 3.055 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.3309, allocations: 12.03 kB / 0.8738 GB, free: 3.043 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001196/0.3321, allocations: 349.4 kB / 0.8741 GB, free: 2.699 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002092/0.3342, allocations: 1.37 MB / 0.8755 GB, free: 1.277 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001601/0.3344, allocations: 157.5 kB / 0.8756 GB, free: 1.109 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001453/0.3346, allocations: 104 kB / 0.8757 GB, free: 1.008 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002687/0.3373, allocations: 1.484 MB / 0.8772 GB, free: 15.43 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.677e-05/0.3373, allocations: 0 / 0.8772 GB, free: 15.43 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001119/0.3374, allocations: 51.94 kB / 0.8772 GB, free: 15.38 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.019e-05/0.3375, allocations: 31.98 kB / 0.8773 GB, free: 15.35 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002945/0.3404, allocations: 1.429 MB / 0.8786 GB, free: 13.92 MB / 0.7012 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.007944/0.3484, allocations: 6.651 MB / 0.8851 GB, free: 6.828 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001971/0.3504, allocations: 1.213 MB / 0.8863 GB, free: 5.531 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001199/0.3516, allocations: 0.6047 MB / 0.8869 GB, free: 4.926 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007995/0.3524, allocations: 1.145 MB / 0.888 GB, free: 3.523 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.601e-05/0.3525, allocations: 51.09 kB / 0.8881 GB, free: 3.461 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=77): time 3.337e-06/0.3525, allocations: 0 / 0.8881 GB, free: 3.461 MB / 0.7012 GB Notification: Performance of matching and sorting (n=77): time 0.003934/0.3564, allocations: 1.734 MB / 0.8898 GB, free: 1.723 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.817e-05/0.3565, allocations: 111.5 kB / 0.8899 GB, free: 1.59 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001884/0.3584, allocations: 1.369 MB / 0.8912 GB, free: 216 kB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.0001174/0.3585, allocations: 49.7 kB / 0.8913 GB, free: 160 kB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006225/0.3591, allocations: 0.7124 MB / 0.892 GB, free: 15.43 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.000259/0.3594, allocations: 268.1 kB / 0.8922 GB, free: 15.17 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.335e-05/0.3595, allocations: 16 kB / 0.8922 GB, free: 15.15 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001326/0.3596, allocations: 345.9 kB / 0.8926 GB, free: 14.81 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001174/0.3608, allocations: 0.5289 MB / 0.8931 GB, free: 14.28 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001284/0.3621, allocations: 0.7659 MB / 0.8938 GB, free: 13.43 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001198/0.3633, allocations: 0.5807 MB / 0.8944 GB, free: 12.84 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.003e-06/0.3633, allocations: 4 kB / 0.8944 GB, free: 12.84 MB / 0.7169 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.002958/0.3663, allocations: 1.436 MB / 0.8958 GB, free: 11.39 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001484/0.3664, allocations: 232.9 kB / 0.896 GB, free: 11.1 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/0.3665, allocations: 4 kB / 0.896 GB, free: 11.09 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.699e-05/0.3665, allocations: 12 kB / 0.896 GB, free: 11.08 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001167/0.3677, allocations: 291.6 kB / 0.8963 GB, free: 10.8 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.69e-05/0.3677, allocations: 15.94 kB / 0.8963 GB, free: 10.78 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001249/0.369, allocations: 222.9 kB / 0.8965 GB, free: 10.56 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.693e-05/0.369, allocations: 43.94 kB / 0.8966 GB, free: 10.52 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.113e-05/0.3691, allocations: 7.125 kB / 0.8966 GB, free: 10.52 MB / 0.7169 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002611/0.3717, allocations: 1.285 MB / 0.8979 GB, free: 9.234 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.3717, allocations: 4 kB / 0.8979 GB, free: 9.23 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.075e-05/0.3717, allocations: 8 kB / 0.8979 GB, free: 9.223 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001075/0.3728, allocations: 299.7 kB / 0.8981 GB, free: 8.93 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.281e-05/0.3728, allocations: 8 kB / 0.8982 GB, free: 8.922 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001277/0.3741, allocations: 215 kB / 0.8984 GB, free: 8.711 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.519e-05/0.3742, allocations: 35.98 kB / 0.8984 GB, free: 8.676 MB / 0.7169 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 (reaToInt.y,intGreThr.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008058/0.375, allocations: 456.8 kB / 0.8988 GB, free: 8.219 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002294/0.3752, allocations: 158 kB / 0.899 GB, free: 8.062 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003005/0.3783, allocations: 1.568 MB / 0.9005 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.589e-05/0.3783, allocations: 11.98 kB / 0.9005 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.3783, allocations: 0 / 0.9005 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002301/0.3806, allocations: 1.21 MB / 0.9017 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005369/0.386, allocations: 3.145 MB / 0.9048 GB, free: 1.945 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.256e-05/0.386, allocations: 15.94 kB / 0.9048 GB, free: 1.93 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009153/0.3869, allocations: 224 kB / 0.905 GB, free: 1.711 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.273e-05/0.387, allocations: 11.94 kB / 0.905 GB, free: 1.699 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.496e-05/0.387, allocations: 16 kB / 0.905 GB, free: 1.684 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-05/0.3871, allocations: 11.98 kB / 0.905 GB, free: 1.672 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.093e-06/0.3871, allocations: 7.938 kB / 0.9051 GB, free: 1.664 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004081/0.3912, allocations: 2.201 MB / 0.9072 GB, free: 15.38 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008103/0.392, allocations: 398.7 kB / 0.9076 GB, free: 14.97 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002301/0.3922, allocations: 28.05 kB / 0.9076 GB, free: 14.95 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001098/0.3933, allocations: 162.8 kB / 0.9078 GB, free: 14.79 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001766/0.3935, allocations: 84.34 kB / 0.9078 GB, free: 14.71 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.812e-05/0.3936, allocations: 47.97 kB / 0.9079 GB, free: 14.66 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.001347/0.395, allocations: 0.9791 MB / 0.9088 GB, free: 13.68 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.21e-07/0.395, allocations: 0 / 0.9088 GB, free: 13.68 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.002067/0.397, allocations: 0.8068 MB / 0.9096 GB, free: 12.88 MB / 0.7325 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008364/0.3979, allocations: 435.9 kB / 0.91 GB, free: 12.45 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.004251/0.4022, allocations: 1.947 MB / 0.9119 GB, free: 10.5 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 9.458e-06/0.4022, allocations: 4 kB / 0.912 GB, free: 10.5 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.001516/0.4037, allocations: 0.6874 MB / 0.9126 GB, free: 9.812 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003213/0.4069, allocations: 0.6908 MB / 0.9133 GB, free: 9.129 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004623/0.4116, allocations: 3.237 MB / 0.9165 GB, free: 5.805 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007975/0.4124, allocations: 1.269 MB / 0.9177 GB, free: 4.508 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001704/0.4141, allocations: 391 kB / 0.9181 GB, free: 4.121 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003488/0.4145, allocations: 111.4 kB / 0.9182 GB, free: 4.012 MB / 0.7325 GB Notification: Performance of SimCode: time 8.22e-07/0.4145, allocations: 0 / 0.9182 GB, free: 4.012 MB / 0.7325 GB Notification: Performance of Templates: time 0.4088/0.8233, allocations: 28 MB / 0.9455 GB, free: 124.6 MB / 0.7325 GB make -j1 -f Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.makefile Environment - environmentSimulation: (rm -f Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.sim & ./Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe 2>&1) Environment - environmentSimulation: