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.001556/0.001556, allocations: 104.6 kB / 16.36 MB, free: 6.309 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.00166/0.00166, allocations: 189.5 kB / 17.29 MB, free: 5.875 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.372/1.372, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.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.763/1.763, allocations: 292.3 MB / 0.5496 GB, free: 17.47 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.001415/0.001415, allocations: 71.03 kB / 0.6729 GB, free: 5.824 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2255/0.2269, allocations: 114.5 MB / 0.7848 GB, free: 3.16 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.4902/0.7172, allocations: 62.63 MB / 0.8459 GB, free: 7.773 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.01967/0.7369, allocations: 13.56 MB / 0.8592 GB, free: 14.04 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00401/0.741, allocations: 58.41 kB / 0.8592 GB, free: 14.02 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.004008/0.745, allocations: 0.9414 MB / 0.8602 GB, free: 13.47 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.009174/0.7543, allocations: 2.372 MB / 0.8625 GB, free: 12.05 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.005847/0.7602, allocations: 1.64 MB / 0.8641 GB, free: 11.16 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.008794/0.769, allocations: 4.248 MB / 0.8682 GB, free: 9.102 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003005/0.772, allocations: 1.412 MB / 0.8696 GB, free: 8.477 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005372/0.7774, allocations: 1.65 MB / 0.8712 GB, free: 7.699 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00331/0.7808, allocations: 1.293 MB / 0.8725 GB, free: 6.941 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.0006455/0.7814, allocations: 175.3 kB / 0.8726 GB, free: 6.941 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004877/0.7863, allocations: 1.429 MB / 0.874 GB, free: 6.191 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.0009617/0.7873, allocations: 0.5035 MB / 0.8745 GB, free: 5.801 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.002298/0.7896, allocations: 1.004 MB / 0.8755 GB, free: 5.105 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.0076/0.7973, allocations: 3.166 MB / 0.8786 GB, free: 2.953 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 9.418e-06/0.7973, allocations: 1.344 kB / 0.8786 GB, free: 2.953 MB / 0.67 GB Notification: Performance of FrontEnd: time 2.495e-06/0.7973, allocations: 0 / 0.8786 GB, free: 2.953 MB / 0.67 GB Notification: Performance of Transformations before backend: time 7.641e-05/0.7974, allocations: 4 kB / 0.8786 GB, free: 2.949 MB / 0.67 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.006103/0.8035, allocations: 2.335 MB / 0.8809 GB, free: 1.254 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/0.8036, allocations: 9.719 kB / 0.8809 GB, free: 1.254 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001622/0.8052, allocations: 315.1 kB / 0.8812 GB, free: 1.105 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002996/0.8082, allocations: 1.467 MB / 0.8826 GB, free: 15.98 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001944/0.8084, allocations: 153 kB / 0.8828 GB, free: 15.87 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001832/0.8086, allocations: 111.6 kB / 0.8829 GB, free: 15.83 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003113/0.8118, allocations: 1.436 MB / 0.8843 GB, free: 14.89 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.144e-05/0.8118, allocations: 9.234 kB / 0.8843 GB, free: 14.88 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001256/0.8119, allocations: 48.23 kB / 0.8843 GB, free: 14.84 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.362e-05/0.812, allocations: 28.06 kB / 0.8844 GB, free: 14.84 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003361/0.8154, allocations: 1.341 MB / 0.8857 GB, free: 14.16 MB / 0.6856 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.009857/0.8252, allocations: 6.619 MB / 0.8921 GB, free: 8.305 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002412/0.8277, allocations: 1.172 MB / 0.8933 GB, free: 7.473 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001381/0.8291, allocations: 0.56 MB / 0.8938 GB, free: 7.184 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009266/0.83, allocations: 1.148 MB / 0.8949 GB, free: 5.828 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.107e-05/0.8301, allocations: 43.78 kB / 0.895 GB, free: 5.781 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=77): time 3.196e-06/0.8301, allocations: 0 / 0.895 GB, free: 5.781 MB / 0.6856 GB Notification: Performance of matching and sorting (n=77): time 0.004796/0.8349, allocations: 1.587 MB / 0.8965 GB, free: 4.969 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.414e-05/0.835, allocations: 112.5 kB / 0.8966 GB, free: 4.844 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002234/0.8373, allocations: 1.406 MB / 0.898 GB, free: 4.074 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0001711/0.8375, allocations: 39.92 kB / 0.8981 GB, free: 4.035 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006282/0.8381, allocations: 0.7077 MB / 0.8988 GB, free: 3.406 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002906/0.8384, allocations: 261.3 kB / 0.899 GB, free: 3.18 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003373/0.8388, allocations: 177.8 kB / 0.8992 GB, free: 3.074 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001394/0.8389, allocations: 345.9 kB / 0.8995 GB, free: 2.738 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001293/0.8402, allocations: 0.4942 MB / 0.9 GB, free: 2.477 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00157/0.8418, allocations: 0.7229 MB / 0.9007 GB, free: 1.938 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002803/0.8446, allocations: 1.139 MB / 0.9018 GB, free: 1.219 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.538e-06/0.8446, allocations: 4.625 kB / 0.9018 GB, free: 1.219 MB / 0.6856 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.003625/0.8483, allocations: 1.343 MB / 0.9031 GB, free: 36 kB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 2.608e-05/0.8483, allocations: 8.562 kB / 0.9031 GB, free: 28 kB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.473e-05/0.8483, allocations: 8 kB / 0.9031 GB, free: 20 kB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.931e-05/0.8484, allocations: 15.98 kB / 0.9031 GB, free: 4 kB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00121/0.8496, allocations: 267.6 kB / 0.9034 GB, free: 15.74 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.28e-05/0.8496, allocations: 15.94 kB / 0.9034 GB, free: 15.73 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001634/0.8513, allocations: 158.9 kB / 0.9036 GB, free: 15.57 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.934e-05/0.8514, allocations: 35.98 kB / 0.9036 GB, free: 15.54 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001862/0.8532, allocations: 0.7985 MB / 0.9044 GB, free: 14.73 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001451/0.8547, allocations: 0.7157 MB / 0.9051 GB, free: 13.93 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002504/0.8572, allocations: 1.117 MB / 0.9062 GB, free: 12.75 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.61e-06/0.8572, allocations: 4 kB / 0.9062 GB, free: 12.74 MB / 0.7012 GB Notification: Performance of matching and sorting (n=109) (initialization_lambda0): time 0.003543/0.8608, allocations: 1.347 MB / 0.9075 GB, free: 11.38 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/0.8608, allocations: 4 kB / 0.9075 GB, free: 11.38 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.816e-06/0.8608, allocations: 8 kB / 0.9075 GB, free: 11.37 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.8609, allocations: 8 kB / 0.9075 GB, free: 11.36 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001204/0.8621, allocations: 272 kB / 0.9078 GB, free: 11.1 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.992e-05/0.8621, allocations: 11.94 kB / 0.9078 GB, free: 11.09 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00161/0.8637, allocations: 147.2 kB / 0.9079 GB, free: 10.94 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001023/0.8639, allocations: 42.55 kB / 0.908 GB, free: 10.9 MB / 0.7012 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.0003821/0.8642, allocations: 237.1 kB / 0.9082 GB, free: 10.66 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004655/0.8647, allocations: 146.2 kB / 0.9083 GB, free: 10.52 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003407/0.8681, allocations: 1.479 MB / 0.9098 GB, free: 9.023 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-05/0.8682, allocations: 8 kB / 0.9098 GB, free: 9.016 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.261e-06/0.8682, allocations: 0 / 0.9098 GB, free: 9.016 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002507/0.8707, allocations: 1.109 MB / 0.9109 GB, free: 7.879 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006786/0.8775, allocations: 3.09 MB / 0.9139 GB, free: 4.668 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.658e-06/0.8776, allocations: 4.562 kB / 0.9139 GB, free: 4.664 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009968/0.8786, allocations: 195.7 kB / 0.9141 GB, free: 4.473 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.175e-05/0.8786, allocations: 8 kB / 0.9141 GB, free: 4.465 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.64e-05/0.8787, allocations: 23.92 kB / 0.9141 GB, free: 4.441 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.227e-05/0.8787, allocations: 11.94 kB / 0.9141 GB, free: 4.43 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.755e-06/0.8787, allocations: 7.938 kB / 0.9141 GB, free: 4.422 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004803/0.8835, allocations: 2.072 MB / 0.9161 GB, free: 2.27 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001119/0.8846, allocations: 378.8 kB / 0.9165 GB, free: 1.879 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002806/0.8849, allocations: 16 kB / 0.9165 GB, free: 1.863 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001273/0.8862, allocations: 103.9 kB / 0.9166 GB, free: 1.762 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002296/0.8865, allocations: 84.34 kB / 0.9167 GB, free: 1.68 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001034/0.8866, allocations: 39.91 kB / 0.9167 GB, free: 1.641 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.001633/0.8882, allocations: 1.079 MB / 0.9178 GB, free: 0.5664 MB / 0.7012 GB Notification: Performance of sort global known variables: time 2.71e-07/0.8882, allocations: 4 kB / 0.9178 GB, free: 0.5625 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.002382/0.8906, allocations: 0.7955 MB / 0.9186 GB, free: 15.76 MB / 0.7169 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.001119/0.8917, allocations: 476.3 kB / 0.919 GB, free: 15.31 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.004572/0.8963, allocations: 1.814 MB / 0.9208 GB, free: 13.49 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 9.929e-06/0.8964, allocations: 4 kB / 0.9208 GB, free: 13.49 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.00158/0.8979, allocations: 0.621 MB / 0.9214 GB, free: 12.87 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004512/0.9025, allocations: 0.8229 MB / 0.9222 GB, free: 12.11 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005057/0.9075, allocations: 2.811 MB / 0.925 GB, free: 9.207 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009148/0.9085, allocations: 1.273 MB / 0.9262 GB, free: 7.906 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006486/0.9092, allocations: 135.4 kB / 0.9263 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of SimCode: time 9.51e-07/0.9092, allocations: 3.938 kB / 0.9263 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of Templates: time 0.04879/0.958, allocations: 28.68 MB / 0.9543 GB, free: 11.36 MB / 0.7481 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)