Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop") translateModel(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.172/2.172, allocations: 251.1 MB / 266.7 MB, free: 11.63 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.00137/0.001371, allocations: 166.2 kB / 326.3 MB, free: 2.867 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.372/2.372, allocations: 205.4 MB / 0.5772 GB, free: 21.13 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.0009195/0.0009194, allocations: 101.9 kB / 0.6817 GB, free: 14.02 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0005115/0.0005118, allocations: 14.19 kB / 0.7957 GB, free: 135.8 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1983/0.1988, allocations: 106.3 MB / 0.8995 GB, free: 66 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop): time 0.1076/0.3065, allocations: 82.86 MB / 0.9804 GB, free: 14.92 MB / 0.6355 GB Notification: Performance of NFInst.instExpressions: time 0.05666/0.3632, allocations: 23.46 MB / 1.003 GB, free: 7.41 MB / 0.6511 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004351/0.3676, allocations: 87.44 kB / 1.003 GB, free: 7.324 MB / 0.6511 GB Notification: Performance of NFTyping.typeComponents: time 0.006455/0.3741, allocations: 1.27 MB / 1.005 GB, free: 6.047 MB / 0.6511 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. Notification: Performance of NFTyping.typeBindings: time 0.01235/0.3865, allocations: 2.841 MB / 1.007 GB, free: 3.195 MB / 0.6511 GB Notification: Performance of NFTyping.typeClassSections: time 0.01363/0.4002, allocations: 2.989 MB / 1.01 GB, free: 240 kB / 0.6511 GB Notification: Performance of NFFlatten.flatten: time 0.01419/0.4144, allocations: 7.418 MB / 1.018 GB, free: 8.793 MB / 0.6667 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005005/0.4194, allocations: 1.867 MB / 1.019 GB, free: 6.875 MB / 0.6667 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006793/0.4263, allocations: 2.12 MB / 1.021 GB, free: 4.746 MB / 0.6667 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004981/0.4313, allocations: 1.867 MB / 1.023 GB, free: 2.871 MB / 0.6667 GB Notification: Performance of NFPackage.collectConstants: time 0.0009871/0.4323, allocations: 116 kB / 1.023 GB, free: 2.758 MB / 0.6667 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007177/0.4395, allocations: 1.785 MB / 1.025 GB, free: 0.9688 MB / 0.6667 GB Notification: Performance of NFScalarize.scalarize: time 0.001684/0.4413, allocations: 0.6304 MB / 1.026 GB, free: 344 kB / 0.6667 GB Notification: Performance of NFVerifyModel.verify: time 0.001573/0.4429, allocations: 0.5589 MB / 1.026 GB, free: 15.77 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.008245/0.4511, allocations: 3.694 MB / 1.03 GB, free: 12.07 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.4512, allocations: 0 / 1.03 GB, free: 12.07 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.985e-06/0.4512, allocations: 0 / 1.03 GB, free: 12.07 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0001264/0.4514, allocations: 4 kB / 1.03 GB, free: 12.07 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 384 * Number of variables: 384 Notification: Performance of Generate backend data structure: time 0.01074/0.4621, allocations: 3.012 MB / 1.033 GB, free: 8.988 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.404e-05/0.4622, allocations: 8.031 kB / 1.033 GB, free: 8.98 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005755/0.4679, allocations: 0.7 MB / 1.034 GB, free: 8.277 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007466/0.4755, allocations: 2.204 MB / 1.036 GB, free: 6.008 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001533/0.477, allocations: 334.3 kB / 1.036 GB, free: 5.668 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006322/0.4777, allocations: 167.9 kB / 1.036 GB, free: 5.504 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007835/0.4856, allocations: 2.188 MB / 1.038 GB, free: 3.219 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.849e-05/0.4857, allocations: 0 / 1.038 GB, free: 3.219 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002999/0.486, allocations: 67.98 kB / 1.038 GB, free: 3.152 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.941e-05/0.4861, allocations: 40 kB / 1.038 GB, free: 3.113 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009677/0.4957, allocations: 2.111 MB / 1.04 GB, free: 0.9961 MB / 0.6823 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.02365/0.5194, allocations: 9.525 MB / 1.05 GB, free: 6.875 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006008/0.5255, allocations: 1.399 MB / 1.051 GB, free: 5.449 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00378/0.5293, allocations: 0.8197 MB / 1.052 GB, free: 4.629 MB / 0.698 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 evalFunc (simulation): time 0.609/1.138, allocations: 4.342 MB / 1.056 GB, free: 148.3 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003956/1.142, allocations: 0.9426 MB / 1.057 GB, free: 148.3 MB / 0.698 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001525/1.144, allocations: 198 kB / 1.057 GB, free: 148.3 MB / 0.698 GB Notification: Performance of pre-optimization done (n=104): time 8.446e-06/1.144, allocations: 0 / 1.057 GB, free: 148.3 MB / 0.698 GB Notification: Performance of matching and sorting (n=104): time 0.01084/1.155, allocations: 2.319 MB / 1.06 GB, free: 148.2 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.116e-05/1.155, allocations: 168.6 kB / 1.06 GB, free: 148 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005449/1.16, allocations: 2.209 MB / 1.062 GB, free: 147.8 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0004154/1.161, allocations: 53.8 kB / 1.062 GB, free: 147.8 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.001424/1.162, allocations: 1.129 MB / 1.063 GB, free: 147.6 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006239/1.163, allocations: 357.6 kB / 1.063 GB, free: 147.3 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001556/1.163, allocations: 29.3 kB / 1.063 GB, free: 147.3 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.000143/1.163, allocations: 360.5 kB / 1.064 GB, free: 147 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004138/1.168, allocations: 0.786 MB / 1.065 GB, free: 147 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004812/1.172, allocations: 1.233 MB / 1.066 GB, free: 146.5 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00447/1.177, allocations: 0.8575 MB / 1.067 GB, free: 146.5 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.914e-05/1.177, allocations: 3.125 kB / 1.067 GB, free: 146.5 MB / 0.698 GB Notification: Performance of matching and sorting (n=182) (initialization): time 0.01072/1.188, allocations: 2.217 MB / 1.069 GB, free: 146.3 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003403/1.188, allocations: 392.8 kB / 1.069 GB, free: 145.9 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.076e-05/1.188, allocations: 14.22 kB / 1.069 GB, free: 145.9 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.255e-05/1.188, allocations: 16.94 kB / 1.069 GB, free: 145.9 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003921/1.192, allocations: 423.2 kB / 1.07 GB, free: 145.8 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.991e-05/1.192, allocations: 27.88 kB / 1.07 GB, free: 145.8 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004522/1.197, allocations: 280.7 kB / 1.07 GB, free: 145.8 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004756/1.197, allocations: 70.64 kB / 1.07 GB, free: 145.8 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.453e-05/1.197, allocations: 3.656 kB / 1.07 GB, free: 145.8 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009608/1.207, allocations: 1.974 MB / 1.072 GB, free: 145.7 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.744e-05/1.207, allocations: 11.97 kB / 1.072 GB, free: 145.7 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.553e-05/1.207, allocations: 16.59 kB / 1.072 GB, free: 145.7 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004555/1.212, allocations: 420.5 kB / 1.072 GB, free: 145.7 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.358e-05/1.212, allocations: 23.47 kB / 1.072 GB, free: 145.7 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004386/1.216, allocations: 265.7 kB / 1.073 GB, free: 145.7 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004524/1.217, allocations: 68.38 kB / 1.073 GB, free: 145.7 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 21 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,reaToInt.y,$PRE.uMod.T_start,uMod.T_start,$PRE.uMod.count,uMod.count,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,$PRE.TSouEnt.T_start,TSouEnt.T_start,$PRE.TSouEnt.count,TSouEnt.count,$PRE.TLoaSet.T_start,TLoaSet.T_start,$PRE.TLoaSet.count,TLoaSet.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (179): * Single equations (assignments): 176 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 1 * 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.001851/1.219, allocations: 0.619 MB / 1.073 GB, free: 145.4 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007221/1.219, allocations: 231.7 kB / 1.073 GB, free: 145.3 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008305/1.228, allocations: 2.078 MB / 1.075 GB, free: 144.5 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006648/1.234, allocations: 1.61 MB / 1.077 GB, free: 143.9 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.04e-05/1.234, allocations: 0 / 1.077 GB, free: 143.9 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00165/1.236, allocations: 0.4924 MB / 1.078 GB, free: 143.5 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005252/1.237, allocations: 26.66 kB / 1.078 GB, free: 143.5 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003588/1.24, allocations: 231.7 kB / 1.078 GB, free: 143.5 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004091/1.241, allocations: 114.6 kB / 1.078 GB, free: 143.5 MB / 0.698 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.009003/1.25, allocations: 1.878 MB / 1.08 GB, free: 142.8 MB / 0.698 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.01698/1.267, allocations: 2.954 MB / 1.083 GB, free: 141.6 MB / 0.698 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003521/1.27, allocations: 0.8255 MB / 1.083 GB, free: 141.3 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.003384/1.274, allocations: 1.504 MB / 1.085 GB, free: 140.7 MB / 0.698 GB Notification: Performance of Backend: time 8.81e-07/1.274, allocations: 0 / 1.085 GB, free: 140.7 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.01217/1.286, allocations: 3.004 MB / 1.088 GB, free: 139.5 MB / 0.698 GB Notification: Performance of SimCode: time 0.01438/1.3, allocations: 5.707 MB / 1.093 GB, free: 135.2 MB / 0.698 GB Notification: Performance of Templates: time 0.1271/1.428, allocations: 54.66 MB / 1.147 GB, free: 80.96 MB / 0.698 GB make -j1 -f Buildings_7.0.0_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.makefile (rm -f Buildings_7.0.0_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe ; mkfifo Buildings_7.0.0_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe >> ../files/Buildings_7.0.0_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.sim & ./Buildings_7.0.0_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe 2>&1)