Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.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: "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible_CoolingClosedLoop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible_CoolingClosedLoop",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.447/1.447, allocations: 249.5 MB / 257 MB, free: 6.879 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001224/0.001224, allocations: 191.7 kB / 316.3 MB, free: 3.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.487/1.487, allocations: 205.3 MB / 0.5671 GB, free: 15.79 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.0008069/0.0008069, allocations: 97.84 kB / 0.6714 GB, free: 4.91 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.817e-05/1.828e-05, allocations: 4 kB / 0.7815 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2012/0.2012, allocations: 106.4 MB / 0.8853 GB, free: 12.16 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.578/1.779, allocations: 466.9 MB / 1.341 GB, free: 245.3 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002978/1.779, allocations: 97.84 kB / 1.341 GB, free: 245.3 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 3.694/5.473, allocations: 0.9668 GB / 2.308 GB, free: 111.9 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.773e-06/5.473, allocations: 0 / 2.308 GB, free: 111.9 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.000318/5.473, allocations: 62.17 kB / 2.308 GB, free: 111.9 MB / 0.8855 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.008179/5.481, allocations: 2.747 MB / 2.311 GB, free: 110.9 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.175e-05/5.482, allocations: 11.06 kB / 2.311 GB, free: 110.9 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003647/5.485, allocations: 0.6491 MB / 2.312 GB, free: 110.8 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007102/5.492, allocations: 2.965 MB / 2.314 GB, free: 110.3 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007214/5.493, allocations: 269 kB / 2.315 GB, free: 110.3 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003978/5.493, allocations: 98.44 kB / 2.315 GB, free: 110.3 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002849/5.496, allocations: 1.535 MB / 2.316 GB, free: 110.3 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002639/5.499, allocations: 1.656 MB / 2.318 GB, free: 110 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.694e-05/5.499, allocations: 3.75 kB / 2.318 GB, free: 110 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001505/5.499, allocations: 3.875 kB / 2.318 GB, free: 110 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.337e-05/5.499, allocations: 46.09 kB / 2.318 GB, free: 110 MB / 0.8855 GB Warning: The model contains alias variables with conflicting start and/or 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.0123/5.512, allocations: 9.312 MB / 2.327 GB, free: 105.3 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001103/5.513, allocations: 0.9288 MB / 2.328 GB, free: 105.2 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000713/5.513, allocations: 0.5767 MB / 2.329 GB, free: 105.2 MB / 0.8855 GB Warning: The model contains alias variables with conflicting start and/or 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.005986/5.519, allocations: 3.995 MB / 2.332 GB, free: 103.4 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009386/5.52, allocations: 0.7274 MB / 2.333 GB, free: 103.3 MB / 0.8855 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001066/5.521, allocations: 169.4 kB / 2.333 GB, free: 103.3 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=96): time 4.268e-06/5.521, allocations: 0 / 2.333 GB, free: 103.3 MB / 0.8855 GB Notification: Performance of matching and sorting (n=96): time 0.002704/5.524, allocations: 1.25 MB / 2.335 GB, free: 103.1 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.128e-05/5.524, allocations: 201.1 kB / 2.335 GB, free: 102.9 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002591/5.527, allocations: 1.762 MB / 2.336 GB, free: 102.7 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0001642/5.527, allocations: 32.39 kB / 2.337 GB, free: 102.7 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.000961/5.528, allocations: 1.16 MB / 2.338 GB, free: 102.3 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002577/5.528, allocations: 312.2 kB / 2.338 GB, free: 102.1 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.429e-05/5.528, allocations: 0 / 2.338 GB, free: 102.1 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 9.316e-05/5.528, allocations: 358.6 kB / 2.338 GB, free: 101.8 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007448/5.529, allocations: 0.5276 MB / 2.339 GB, free: 101.8 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009259/5.53, allocations: 0.9946 MB / 2.34 GB, free: 101.2 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001686/5.532, allocations: 0.6865 MB / 2.34 GB, free: 101.2 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.303e-06/5.532, allocations: 6.766 kB / 2.34 GB, free: 101.2 MB / 0.8855 GB Notification: Performance of matching and sorting (n=173) (initialization): time 0.003326/5.535, allocations: 1.694 MB / 2.342 GB, free: 101 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007867/5.536, allocations: 4.197 MB / 2.346 GB, free: 96.57 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.601e-05/5.536, allocations: 14.69 kB / 2.346 GB, free: 96.57 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.414e-05/5.536, allocations: 19.28 kB / 2.346 GB, free: 96.57 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001656/5.538, allocations: 410.9 kB / 2.347 GB, free: 96.57 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.04e-05/5.538, allocations: 26.56 kB / 2.347 GB, free: 96.57 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002567/5.54, allocations: 253.1 kB / 2.347 GB, free: 96.56 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001615/5.541, allocations: 74.19 kB / 2.347 GB, free: 96.56 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.07e-05/5.541, allocations: 3.938 kB / 2.347 GB, free: 96.56 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002789/5.543, allocations: 1.399 MB / 2.348 GB, free: 96.53 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.576e-05/5.543, allocations: 17.97 kB / 2.348 GB, free: 96.53 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.942e-05/5.543, allocations: 17.84 kB / 2.348 GB, free: 96.53 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001579/5.545, allocations: 404.1 kB / 2.349 GB, free: 96.53 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.729e-05/5.545, allocations: 24.78 kB / 2.349 GB, free: 96.53 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002352/5.547, allocations: 227.1 kB / 2.349 GB, free: 96.52 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001416/5.548, allocations: 76.7 kB / 2.349 GB, free: 96.52 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 21 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,heaPum.uMod,$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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (170): * Single equations (assignments): 167 * 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.0003657/5.548, allocations: 154.2 kB / 2.349 GB, free: 96.4 MB / 0.8855 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002343/5.55, allocations: 1.225 MB / 2.35 GB, free: 96.23 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002635/5.551, allocations: 222 kB / 2.351 GB, free: 96.11 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00268/5.553, allocations: 1.47 MB / 2.352 GB, free: 96.01 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.429e-05/5.553, allocations: 11.38 kB / 2.352 GB, free: 96.01 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.104e-06/5.553, allocations: 7.766 kB / 2.352 GB, free: 96.01 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001666/5.555, allocations: 1.163 MB / 2.353 GB, free: 95.82 MB / 0.8855 GB Warning: The model contains alias variables with conflicting start and/or 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 postOpt removeSimpleEquations (simulation): time 0.006035/5.561, allocations: 3.455 MB / 2.357 GB, free: 95.32 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.19e-05/5.561, allocations: 0 / 2.357 GB, free: 95.32 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001344/5.562, allocations: 277.2 kB / 2.357 GB, free: 95.32 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.821e-05/5.562, allocations: 3.875 kB / 2.357 GB, free: 95.32 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.439e-05/5.563, allocations: 17.64 kB / 2.357 GB, free: 95.32 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.775e-06/5.563, allocations: 8.031 kB / 2.357 GB, free: 95.32 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.061e-05/5.563, allocations: 0 / 2.357 GB, free: 95.32 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004022/5.567, allocations: 2.246 MB / 2.359 GB, free: 94.92 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001929/5.569, allocations: 496.8 kB / 2.36 GB, free: 94.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004167/5.569, allocations: 6.625 kB / 2.36 GB, free: 94.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001916/5.571, allocations: 208 kB / 2.36 GB, free: 94.7 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002777/5.571, allocations: 119.5 kB / 2.36 GB, free: 94.69 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001243/5.571, allocations: 45.39 kB / 2.36 GB, free: 94.69 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.002308/5.574, allocations: 1.325 MB / 2.361 GB, free: 94.55 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.51e-07/5.574, allocations: 3.656 kB / 2.361 GB, free: 94.55 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.00497/5.579, allocations: 1.374 MB / 2.363 GB, free: 94.32 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (pum.vol.dynBal.U,pum.filter.x[1],pum.filter.x[2],vol.dynBal.U) * Number of discrete variables: 13 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,heaPum.uMod,uMod.T_start,uMod.count,pulse.T_start,pulse.count,TSouEnt.T_start,TSouEnt.count,TLoaSet.T_start,TLoaSet.count) * Number of discrete states: 4 (uMod.count,pulse.count,TSouEnt.count,TLoaSet.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (105): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 8 * 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.005911/5.585, allocations: 4.338 MB / 2.367 GB, free: 92.95 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.003304/5.588, allocations: 2.215 MB / 2.369 GB, free: 92.84 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/5.588, allocations: 0 / 2.369 GB, free: 92.84 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0008618/5.589, allocations: 0.6319 MB / 2.37 GB, free: 92.84 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004941/5.594, allocations: 0.9508 MB / 2.37 GB, free: 92.83 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007849/5.602, allocations: 3.655 MB / 2.374 GB, free: 91.84 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009999/5.603, allocations: 1.688 MB / 2.376 GB, free: 91.11 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.003641/5.606, allocations: 0.7989 MB / 2.376 GB, free: 91.09 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001215/5.608, allocations: 0.9783 MB / 2.377 GB, free: 91.08 MB / 0.8855 GB Notification: Performance of SimCode: time 8.72e-07/5.608, allocations: 0 / 2.377 GB, free: 91.08 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1103/5.718, allocations: 68.46 MB / 2.444 GB, free: 87.48 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001921/5.718, allocations: 208.8 kB / 2.444 GB, free: 87.2 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.716/10.43, allocations: 0 / 2.444 GB, free: 87.2 MB / 0.8855 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible_CoolingClosedLoop_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible_CoolingClosedLoop.fmu > Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe 2>&1)