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.001298/0.001298, allocations: 109.4 kB / 15.69 MB, free: 128 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.001345/0.001345, allocations: 186 kB / 16.62 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.426/1.426, allocations: 205.1 MB / 222.5 MB, free: 4.59 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.767/1.767, allocations: 292.3 MB / 0.549 GB, free: 12.75 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.001385/0.001385, allocations: 72.45 kB / 0.6722 GB, free: 25.96 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2122/0.2136, allocations: 114.5 MB / 0.7841 GB, free: 12.75 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.06005/0.2737, allocations: 62.63 MB / 0.8453 GB, free: 13.89 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.01886/0.2926, allocations: 13.57 MB / 0.8585 GB, free: 288 kB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002266/0.2949, allocations: 59.69 kB / 0.8586 GB, free: 228 kB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.002955/0.2979, allocations: 0.9433 MB / 0.8595 GB, free: 15.27 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.006318/0.3043, allocations: 2.367 MB / 0.8618 GB, free: 12.89 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.004348/0.3086, allocations: 1.629 MB / 0.8634 GB, free: 11.28 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.005765/0.3144, allocations: 4.262 MB / 0.8676 GB, free: 7.008 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002193/0.3166, allocations: 1.421 MB / 0.869 GB, free: 5.547 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003628/0.3203, allocations: 1.64 MB / 0.8706 GB, free: 3.906 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001904/0.3222, allocations: 1.292 MB / 0.8718 GB, free: 2.609 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.0003146/0.3225, allocations: 176 kB / 0.872 GB, free: 2.438 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002988/0.3255, allocations: 1.431 MB / 0.8734 GB, free: 1.004 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.000608/0.3261, allocations: 0.5023 MB / 0.8739 GB, free: 0.5 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.001359/0.3275, allocations: 0.9992 MB / 0.8749 GB, free: 15.5 MB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.00561/0.3331, allocations: 3.17 MB / 0.8779 GB, free: 12.32 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.3331, allocations: 0 / 0.8779 GB, free: 12.32 MB / 0.7012 GB Notification: Performance of FrontEnd: time 1.753e-06/0.3332, allocations: 0 / 0.8779 GB, free: 12.32 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 3.846e-05/0.3332, allocations: 4 kB / 0.878 GB, free: 12.31 MB / 0.7012 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.004686/0.3379, allocations: 2.337 MB / 0.8802 GB, free: 9.922 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 6.382e-05/0.338, allocations: 8.031 kB / 0.8802 GB, free: 9.914 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00151/0.3395, allocations: 318.3 kB / 0.8805 GB, free: 9.602 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003375/0.3429, allocations: 1.455 MB / 0.882 GB, free: 8.094 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001911/0.3431, allocations: 165.4 kB / 0.8821 GB, free: 7.918 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001713/0.3433, allocations: 112 kB / 0.8822 GB, free: 7.809 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00325/0.3465, allocations: 1.438 MB / 0.8836 GB, free: 6.281 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.191e-05/0.3466, allocations: 3.938 kB / 0.8836 GB, free: 6.277 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001315/0.3467, allocations: 47.98 kB / 0.8837 GB, free: 6.23 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.841e-05/0.3468, allocations: 28 kB / 0.8837 GB, free: 6.203 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003372/0.3502, allocations: 1.346 MB / 0.885 GB, free: 4.855 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.009271/0.3595, allocations: 6.612 MB / 0.8915 GB, free: 13.8 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002199/0.3617, allocations: 1.176 MB / 0.8926 GB, free: 12.55 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001285/0.363, allocations: 0.5688 MB / 0.8932 GB, free: 11.98 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008835/0.3639, allocations: 1.141 MB / 0.8943 GB, free: 10.58 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.772e-05/0.364, allocations: 43.22 kB / 0.8943 GB, free: 10.53 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=77): time 3.576e-06/0.364, allocations: 0 / 0.8943 GB, free: 10.53 MB / 0.7169 GB Notification: Performance of matching and sorting (n=77): time 0.004275/0.3683, allocations: 1.585 MB / 0.8959 GB, free: 8.934 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.2e-05/0.3684, allocations: 111.5 kB / 0.896 GB, free: 8.801 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002025/0.3704, allocations: 1.404 MB / 0.8974 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0001241/0.3705, allocations: 45.7 kB / 0.8974 GB, free: 7.336 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006216/0.3712, allocations: 0.7085 MB / 0.8981 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.00028/0.3714, allocations: 268.1 kB / 0.8984 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003272/0.3718, allocations: 174.5 kB / 0.8985 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001335/0.3719, allocations: 346 kB / 0.8989 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001258/0.3732, allocations: 0.4926 MB / 0.8993 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001415/0.3746, allocations: 0.723 MB / 0.9 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002575/0.3772, allocations: 1.125 MB / 0.9011 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.281e-06/0.3772, allocations: 0 / 0.9011 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.003377/0.3806, allocations: 1.35 MB / 0.9025 GB, free: 1.973 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.3e-05/0.3806, allocations: 8.562 kB / 0.9025 GB, free: 1.965 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.116e-05/0.3807, allocations: 4 kB / 0.9025 GB, free: 1.961 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.578e-05/0.3807, allocations: 12 kB / 0.9025 GB, free: 1.949 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001188/0.3819, allocations: 267.6 kB / 0.9027 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.266e-05/0.3819, allocations: 19.92 kB / 0.9028 GB, free: 1.668 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00118/0.3831, allocations: 162.9 kB / 0.9029 GB, free: 1.508 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.762e-05/0.3832, allocations: 35.98 kB / 0.9029 GB, free: 1.473 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001831/0.3851, allocations: 0.7992 MB / 0.9037 GB, free: 0.668 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001418/0.3865, allocations: 0.7151 MB / 0.9044 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002472/0.389, allocations: 1.121 MB / 0.9055 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.212e-06/0.389, allocations: 4 kB / 0.9055 GB, free: 14.67 MB / 0.7325 GB Notification: Performance of matching and sorting (n=109) (initialization_lambda0): time 0.003335/0.3923, allocations: 1.347 MB / 0.9068 GB, free: 13.32 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/0.3923, allocations: 4 kB / 0.9068 GB, free: 13.31 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.3924, allocations: 8 kB / 0.9069 GB, free: 13.3 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.278e-05/0.3924, allocations: 8 kB / 0.9069 GB, free: 13.3 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001166/0.3936, allocations: 271.9 kB / 0.9071 GB, free: 13.03 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.709e-05/0.3936, allocations: 15.94 kB / 0.9071 GB, free: 13.02 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00122/0.3948, allocations: 147.1 kB / 0.9073 GB, free: 12.87 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.716e-05/0.3949, allocations: 39.94 kB / 0.9073 GB, free: 12.83 MB / 0.7325 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.0003225/0.3952, allocations: 240 kB / 0.9075 GB, free: 12.59 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002677/0.3955, allocations: 146.2 kB / 0.9077 GB, free: 12.45 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003351/0.3989, allocations: 1.466 MB / 0.9091 GB, free: 10.95 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.782e-05/0.3989, allocations: 11.98 kB / 0.9091 GB, free: 10.93 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.3989, allocations: 0 / 0.9091 GB, free: 10.93 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002527/0.4014, allocations: 1.109 MB / 0.9102 GB, free: 9.797 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005637/0.4071, allocations: 3.093 MB / 0.9132 GB, free: 6.586 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-05/0.4071, allocations: 8.547 kB / 0.9132 GB, free: 6.578 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009761/0.4081, allocations: 191.7 kB / 0.9134 GB, free: 6.391 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.367e-05/0.4081, allocations: 8 kB / 0.9134 GB, free: 6.383 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.768e-05/0.4082, allocations: 20 kB / 0.9134 GB, free: 6.363 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.36e-05/0.4082, allocations: 15.92 kB / 0.9135 GB, free: 6.348 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.816e-06/0.4082, allocations: 7.938 kB / 0.9135 GB, free: 6.34 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004444/0.4127, allocations: 2.064 MB / 0.9155 GB, free: 4.195 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006455/0.4133, allocations: 382.8 kB / 0.9158 GB, free: 3.801 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000295/0.4136, allocations: 16 kB / 0.9159 GB, free: 3.785 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001245/0.4149, allocations: 111.9 kB / 0.916 GB, free: 3.676 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002042/0.4151, allocations: 84.34 kB / 0.916 GB, free: 3.594 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001073/0.4152, allocations: 43.89 kB / 0.9161 GB, free: 3.551 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.001492/0.4167, allocations: 1.075 MB / 0.9171 GB, free: 2.48 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.954e-06/0.4167, allocations: 4 kB / 0.9171 GB, free: 2.477 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.002113/0.4189, allocations: 0.7993 MB / 0.9179 GB, free: 1.676 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 (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.001024/0.4199, allocations: 476.3 kB / 0.9184 GB, free: 1.211 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.3699/0.7898, allocations: 1.809 MB / 0.9201 GB, free: 135.2 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.292e-05/0.7899, allocations: 1.031 kB / 0.9201 GB, free: 135.2 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.001817/0.7917, allocations: 0.6402 MB / 0.9208 GB, free: 135.2 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004383/0.7961, allocations: 0.827 MB / 0.9216 GB, free: 135.1 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005082/0.8012, allocations: 2.747 MB / 0.9243 GB, free: 134 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008477/0.8021, allocations: 1.278 MB / 0.9255 GB, free: 133.3 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001735/0.8038, allocations: 406.5 kB / 0.9259 GB, free: 133.3 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003992/0.8043, allocations: 133.3 kB / 0.926 GB, free: 133.3 MB / 0.7325 GB Notification: Performance of SimCode: time 1.152e-06/0.8043, allocations: 0 / 0.926 GB, free: 133.3 MB / 0.7325 GB Notification: Performance of Templates: time 0.06/0.8643, allocations: 33.52 MB / 0.9588 GB, free: 120.8 MB / 0.7325 GB make -j1 -f Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.makefile (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)