Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible") translateModel(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.838/1.838, allocations: 252 MB / 267.6 MB, free: 10.93 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001012/0.001012, allocations: 182.5 kB / 327.3 MB, free: 2.215 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.586/1.586, allocations: 205.4 MB / 0.5783 GB, free: 20.23 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006985/0.0006986, allocations: 91.69 kB / 0.6829 GB, free: 12.87 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003465/0.0003466, allocations: 9 kB / 0.797 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2076/0.208, allocations: 106.3 MB / 0.9008 GB, free: 63.91 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.03874/0.2468, allocations: 57.8 MB / 0.9573 GB, free: 5.945 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.01565/0.2625, allocations: 12.97 MB / 0.9699 GB, free: 8.945 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002087/0.2646, allocations: 47.69 kB / 0.97 GB, free: 8.898 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.002535/0.2672, allocations: 0.7883 MB / 0.9708 GB, free: 8.105 MB / 0.6198 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.00557/0.2727, allocations: 1.856 MB / 0.9726 GB, free: 6.242 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.003618/0.2764, allocations: 1.136 MB / 0.9737 GB, free: 5.117 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.006152/0.2825, allocations: 4.659 MB / 0.9782 GB, free: 452 kB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001905/0.2845, allocations: 1.039 MB / 0.9792 GB, free: 15.38 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002807/0.2873, allocations: 1.318 MB / 0.9805 GB, free: 14.05 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001969/0.2893, allocations: 1.171 MB / 0.9817 GB, free: 12.88 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 0.0002484/0.2896, allocations: 72 kB / 0.9817 GB, free: 12.81 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003537/0.2931, allocations: 0.955 MB / 0.9827 GB, free: 11.85 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 0.0007999/0.2939, allocations: 386.5 kB / 0.983 GB, free: 11.47 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 0.0008238/0.2948, allocations: 380.8 kB / 0.9834 GB, free: 11.09 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.003855/0.2987, allocations: 2.291 MB / 0.9856 GB, free: 8.797 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.2987, allocations: 0 / 0.9856 GB, free: 8.797 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.485e-06/0.2987, allocations: 0 / 0.9856 GB, free: 8.797 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.037e-05/0.2988, allocations: 0 / 0.9856 GB, free: 8.797 MB / 0.6355 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.004757/0.3035, allocations: 2.034 MB / 0.9876 GB, free: 6.711 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/0.3036, allocations: 8.031 kB / 0.9876 GB, free: 6.703 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001529/0.3051, allocations: 349.5 kB / 0.988 GB, free: 6.359 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002628/0.3078, allocations: 1.373 MB / 0.9893 GB, free: 4.934 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001779/0.308, allocations: 157.5 kB / 0.9895 GB, free: 4.766 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001727/0.3081, allocations: 108 kB / 0.9896 GB, free: 4.66 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003039/0.3112, allocations: 1.475 MB / 0.991 GB, free: 3.098 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.914e-05/0.3112, allocations: 0 / 0.991 GB, free: 3.098 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001261/0.3114, allocations: 51.98 kB / 0.9911 GB, free: 3.047 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.332e-05/0.3114, allocations: 35.92 kB / 0.9911 GB, free: 3.012 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003368/0.3148, allocations: 1.436 MB / 0.9925 GB, free: 1.57 MB / 0.6355 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.009333/0.3242, allocations: 6.627 MB / 0.999 GB, free: 10.5 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002354/0.3265, allocations: 1.216 MB / 1 GB, free: 9.199 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001381/0.3279, allocations: 0.604 MB / 1.001 GB, free: 8.594 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008909/0.3288, allocations: 1.152 MB / 1.002 GB, free: 7.184 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.242e-05/0.3289, allocations: 39.22 kB / 1.002 GB, free: 7.133 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=77): time 3.346e-06/0.3289, allocations: 0 / 1.002 GB, free: 7.133 MB / 0.6511 GB Notification: Performance of matching and sorting (n=77): time 0.004493/0.3334, allocations: 1.734 MB / 1.004 GB, free: 5.395 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001093/0.3336, allocations: 111.5 kB / 1.004 GB, free: 5.262 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002305/0.3359, allocations: 1.377 MB / 1.005 GB, free: 3.875 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0001758/0.3361, allocations: 41.7 kB / 1.005 GB, free: 3.828 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006327/0.3367, allocations: 0.7046 MB / 1.006 GB, free: 3.113 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003111/0.337, allocations: 264.1 kB / 1.006 GB, free: 2.852 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.991e-05/0.3371, allocations: 20 kB / 1.006 GB, free: 2.832 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001539/0.3372, allocations: 337.9 kB / 1.006 GB, free: 2.496 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001413/0.3387, allocations: 0.5329 MB / 1.007 GB, free: 1.961 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001549/0.3402, allocations: 0.7659 MB / 1.008 GB, free: 1.102 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001423/0.3417, allocations: 0.5807 MB / 1.008 GB, free: 0.5234 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.416e-06/0.3417, allocations: 0 / 1.008 GB, free: 0.5234 MB / 0.6511 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.003556/0.3453, allocations: 1.448 MB / 1.01 GB, free: 15.06 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001709/0.3454, allocations: 232.6 kB / 1.01 GB, free: 14.77 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.478e-05/0.3455, allocations: 8 kB / 1.01 GB, free: 14.76 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.9e-05/0.3455, allocations: 8 kB / 1.01 GB, free: 14.75 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001288/0.3468, allocations: 299.6 kB / 1.01 GB, free: 14.46 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.433e-05/0.3469, allocations: 11.94 kB / 1.01 GB, free: 14.45 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00158/0.3485, allocations: 222.9 kB / 1.01 GB, free: 14.23 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001153/0.3486, allocations: 36 kB / 1.01 GB, free: 14.19 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.137e-05/0.3486, allocations: 4 kB / 1.01 GB, free: 14.19 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003089/0.3517, allocations: 1.284 MB / 1.012 GB, free: 12.9 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.191e-05/0.3517, allocations: 4 kB / 1.012 GB, free: 12.9 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.3518, allocations: 12 kB / 1.012 GB, free: 12.89 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001259/0.353, allocations: 300.1 kB / 1.012 GB, free: 12.59 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.721e-05/0.353, allocations: 8 kB / 1.012 GB, free: 12.59 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001569/0.3546, allocations: 211 kB / 1.012 GB, free: 12.38 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001232/0.3548, allocations: 36 kB / 1.012 GB, free: 12.34 MB / 0.6667 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.0009593/0.3557, allocations: 464.8 kB / 1.013 GB, free: 11.88 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004771/0.3562, allocations: 150.2 kB / 1.013 GB, free: 11.73 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003722/0.3599, allocations: 1.583 MB / 1.014 GB, free: 10.12 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-05/0.36, allocations: 12 kB / 1.014 GB, free: 10.11 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.36, allocations: 0 / 1.014 GB, free: 10.11 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002768/0.3628, allocations: 1.207 MB / 1.016 GB, free: 8.871 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00636/0.3691, allocations: 3.137 MB / 1.019 GB, free: 5.617 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.06e-05/0.3692, allocations: 4 kB / 1.019 GB, free: 5.613 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001066/0.3703, allocations: 220.3 kB / 1.019 GB, free: 5.398 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.684e-05/0.3703, allocations: 19.89 kB / 1.019 GB, free: 5.379 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.424e-05/0.3704, allocations: 19.98 kB / 1.019 GB, free: 5.359 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.27e-05/0.3704, allocations: 11.94 kB / 1.019 GB, free: 5.348 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.203e-06/0.3704, allocations: 8 kB / 1.019 GB, free: 5.34 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004772/0.3752, allocations: 2.197 MB / 1.021 GB, free: 3.066 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008628/0.3761, allocations: 394.8 kB / 1.021 GB, free: 2.66 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004377/0.3765, allocations: 19.95 kB / 1.021 GB, free: 2.641 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001524/0.3781, allocations: 167.7 kB / 1.022 GB, free: 2.477 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001959/0.3783, allocations: 92.33 kB / 1.022 GB, free: 2.387 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001063/0.3784, allocations: 35.98 kB / 1.022 GB, free: 2.352 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.001821/0.3802, allocations: 0.9752 MB / 1.023 GB, free: 1.379 MB / 0.6667 GB Notification: Performance of sort global known variables: time 2.4e-07/0.3802, allocations: 0 / 1.023 GB, free: 1.379 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.002424/0.3826, allocations: 0.8068 MB / 1.023 GB, free: 0.5703 MB / 0.6667 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.0009599/0.3836, allocations: 431.2 kB / 1.024 GB, free: 156 kB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.004866/0.3885, allocations: 1.947 MB / 1.026 GB, free: 14.2 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.015e-05/0.3885, allocations: 4 kB / 1.026 GB, free: 14.2 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.001691/0.3902, allocations: 0.664 MB / 1.026 GB, free: 13.54 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004213/0.3945, allocations: 0.6769 MB / 1.027 GB, free: 12.87 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00616/0.4007, allocations: 3.306 MB / 1.03 GB, free: 9.469 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001173/0.4019, allocations: 1.269 MB / 1.032 GB, free: 8.168 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007398/0.4026, allocations: 123.4 kB / 1.032 GB, free: 8.047 MB / 0.6823 GB Notification: Performance of SimCode: time 1.213e-06/0.4026, allocations: 0 / 1.032 GB, free: 8.047 MB / 0.6823 GB Notification: Performance of Templates: time 0.3718/0.7744, allocations: 26.8 MB / 1.058 GB, free: 143.5 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe 2>&1)