Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible_CoolingClosedLoop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop,fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.717/1.717, allocations: 289.9 MB / 297.4 MB, free: 6.336 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001323/0.001322, allocations: 180.8 kB / 366.7 MB, free: 1.676 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.754/1.754, allocations: 205.2 MB / 0.626 GB, free: 7.16 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007987/0.0007988, allocations: 84.98 kB / 0.74 GB, free: 39.57 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.606e-05/2.617e-05, allocations: 4 kB / 0.8598 GB, free: 12.98 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.835/0.835, allocations: 116.3 MB / 0.9733 GB, free: 76.18 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.193/2.028, allocations: 475.2 MB / 1.437 GB, free: 78.1 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003582/2.028, allocations: 91.58 kB / 1.437 GB, free: 78.05 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 4.355/6.383, allocations: 0.9967 GB / 2.434 GB, free: 132.3 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.593e-06/6.384, allocations: 0 / 2.434 GB, free: 132.3 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0005101/6.384, allocations: 67.34 kB / 2.434 GB, free: 132.3 MB / 0.948 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.00918/6.393, allocations: 2.832 MB / 2.437 GB, free: 131.1 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.73e-05/6.393, allocations: 7 kB / 2.437 GB, free: 131.1 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003653/6.397, allocations: 0.6576 MB / 2.438 GB, free: 130.9 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006946/6.404, allocations: 3.033 MB / 2.441 GB, free: 130.4 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007098/6.405, allocations: 274.1 kB / 2.441 GB, free: 130.3 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000332/6.405, allocations: 113.4 kB / 2.441 GB, free: 130.3 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00258/6.408, allocations: 1.435 MB / 2.442 GB, free: 130.3 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002614/6.41, allocations: 1.663 MB / 2.444 GB, free: 130 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.824e-05/6.41, allocations: 7.281 kB / 2.444 GB, free: 130 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001464/6.41, allocations: 3.844 kB / 2.444 GB, free: 130 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.393e-05/6.411, allocations: 42.88 kB / 2.444 GB, free: 130 MB / 0.948 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.01316/6.424, allocations: 9.292 MB / 2.453 GB, free: 125.7 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001198/6.425, allocations: 0.9061 MB / 2.454 GB, free: 125.7 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008048/6.426, allocations: 0.5711 MB / 2.455 GB, free: 125.6 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006142/6.432, allocations: 3.968 MB / 2.458 GB, free: 124 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000952/6.433, allocations: 0.7302 MB / 2.459 GB, free: 123.9 MB / 0.948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001047/6.434, allocations: 158.9 kB / 2.459 GB, free: 123.9 MB / 0.948 GB Notification: Performance of pre-optimization done (n=92): time 3.878e-06/6.434, allocations: 0 / 2.459 GB, free: 123.9 MB / 0.948 GB Notification: Performance of matching and sorting (n=92): time 0.002824/6.437, allocations: 1.261 MB / 2.461 GB, free: 123.7 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001201/6.437, allocations: 224 kB / 2.461 GB, free: 123.5 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003232/6.44, allocations: 1.826 MB / 2.463 GB, free: 123.2 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001371/6.44, allocations: 40.23 kB / 2.463 GB, free: 123.2 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001259/6.442, allocations: 1.183 MB / 2.464 GB, free: 122.8 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003072/6.442, allocations: 299.5 kB / 2.464 GB, free: 122.6 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000104/6.442, allocations: 7.75 kB / 2.464 GB, free: 122.6 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0001477/6.442, allocations: 359.6 kB / 2.464 GB, free: 122.3 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001016/6.443, allocations: 0.5919 MB / 2.465 GB, free: 122.3 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001394/6.445, allocations: 1.121 MB / 2.466 GB, free: 121.7 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002269/6.447, allocations: 0.8001 MB / 2.467 GB, free: 121.7 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.004e-05/6.447, allocations: 3.469 kB / 2.467 GB, free: 121.7 MB / 0.948 GB Notification: Performance of matching and sorting (n=171) (initialization): time 0.004316/6.451, allocations: 1.942 MB / 2.469 GB, free: 121.5 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001388/6.453, allocations: 5.272 MB / 2.474 GB, free: 115.9 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.109e-05/6.453, allocations: 15 kB / 2.474 GB, free: 115.9 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.976e-05/6.453, allocations: 22.33 kB / 2.474 GB, free: 115.9 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001405/6.454, allocations: 356.4 kB / 2.474 GB, free: 115.9 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.453e-05/6.454, allocations: 25.89 kB / 2.474 GB, free: 115.9 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00286/6.457, allocations: 343.8 kB / 2.475 GB, free: 115.9 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001887/6.457, allocations: 91.31 kB / 2.475 GB, free: 115.9 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.239e-05/6.457, allocations: 3.5 kB / 2.475 GB, free: 115.9 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003433/6.461, allocations: 1.69 MB / 2.476 GB, free: 115.9 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.248e-05/6.461, allocations: 10.75 kB / 2.476 GB, free: 115.9 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.985e-05/6.461, allocations: 20.78 kB / 2.476 GB, free: 115.9 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001318/6.462, allocations: 353.1 kB / 2.477 GB, free: 115.9 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.908e-05/6.462, allocations: 25.05 kB / 2.477 GB, free: 115.9 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002716/6.465, allocations: 314.9 kB / 2.477 GB, free: 115.9 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001829/6.465, allocations: 94.73 kB / 2.477 GB, free: 115.9 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,heaPum.uMod,$PRE.uMod.booPul.y,uMod.booPul.y,$PRE.pulse.booPul.y,pulse.booPul.y,$PRE.TSouEnt.booPul.y,TSouEnt.booPul.y,$PRE.TLoaSet.booPul.y,TLoaSet.booPul.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (160): * Single equations (assignments): 153 * Array equations: 2 * Algorithm blocks: 4 * 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.000465/6.466, allocations: 163.5 kB / 2.477 GB, free: 115.8 MB / 0.948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002517/6.468, allocations: 1.218 MB / 2.478 GB, free: 115.6 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002541/6.468, allocations: 228.8 kB / 2.479 GB, free: 115.5 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002791/6.471, allocations: 1.454 MB / 2.48 GB, free: 115.4 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.55e-05/6.471, allocations: 15.92 kB / 2.48 GB, free: 115.4 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/6.471, allocations: 5.594 kB / 2.48 GB, free: 115.4 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001662/6.473, allocations: 1.167 MB / 2.481 GB, free: 115.2 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005293/6.478, allocations: 3.391 MB / 2.485 GB, free: 114.8 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/6.478, allocations: 0 / 2.485 GB, free: 114.8 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001114/6.479, allocations: 234 kB / 2.485 GB, free: 114.8 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.091e-05/6.479, allocations: 3.906 kB / 2.485 GB, free: 114.8 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.686e-05/6.479, allocations: 27.53 kB / 2.485 GB, free: 114.8 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.642e-06/6.479, allocations: 3.844 kB / 2.485 GB, free: 114.8 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/6.479, allocations: 0 / 2.485 GB, free: 114.8 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002968/6.482, allocations: 2.226 MB / 2.487 GB, free: 114.3 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001033/6.483, allocations: 0.495 MB / 2.488 GB, free: 114.1 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000278/6.484, allocations: 7.312 kB / 2.488 GB, free: 114.1 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001452/6.485, allocations: 152.5 kB / 2.488 GB, free: 114.1 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001603/6.485, allocations: 74.81 kB / 2.488 GB, free: 114.1 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001093/6.485, allocations: 51.98 kB / 2.488 GB, free: 114.1 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.001974/6.487, allocations: 1.37 MB / 2.489 GB, free: 114 MB / 0.948 GB Notification: Performance of sort global known variables: time 1.6e-07/6.487, allocations: 0 / 2.489 GB, free: 114 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.00488/6.492, allocations: 1.455 MB / 2.491 GB, free: 113.7 MB / 0.948 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 ($whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,heaPum.uMod,uMod.booPul.y,pulse.booPul.y,TSouEnt.booPul.y,TLoaSet.booPul.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (101): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 4 * 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.005984/6.498, allocations: 4.312 MB / 2.495 GB, free: 112.4 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.004418/6.503, allocations: 2.932 MB / 2.498 GB, free: 111.8 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 6.612e-06/6.503, allocations: 3.844 kB / 2.498 GB, free: 111.8 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0007856/6.504, allocations: 0.5936 MB / 2.498 GB, free: 111.8 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005459/6.509, allocations: 0.9644 MB / 2.499 GB, free: 111.8 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008549/6.518, allocations: 3.737 MB / 2.503 GB, free: 110.7 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001078/6.519, allocations: 1.709 MB / 2.504 GB, free: 110 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.003938/6.523, allocations: 0.7979 MB / 2.505 GB, free: 110 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001454/6.524, allocations: 1.015 MB / 2.506 GB, free: 110 MB / 0.948 GB Notification: Performance of SimCode: time 1.202e-06/6.524, allocations: 0 / 2.506 GB, free: 110 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1269/6.651, allocations: 72.54 MB / 2.577 GB, free: 103.7 MB / 0.948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001696/6.651, allocations: 195 kB / 2.577 GB, free: 103.6 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.471/12.12, allocations: 6.75 kB / 2.577 GB, free: 103.6 MB / 0.948 GB (rm -f Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible_CoolingClosedLoop_fmu --startTime=0 --stopTime=2500 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible_CoolingClosedLoop.fmu > Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe 2>&1)