Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible_CoolingClosedLoop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop,fileNamePrefix="Buildings_8_0_0_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.0.0/package.mo): time 2.692/2.692, allocations: 287.3 MB / 302.3 MB, free: 8.305 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.001628/0.001627, allocations: 188.7 kB / 370.8 MB, free: 10.88 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.171/2.171, allocations: 205.4 MB / 0.6295 GB, free: 10.6 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001162/0.001161, allocations: 92.34 kB / 0.7428 GB, free: 6.605 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005099/0.0005097, allocations: 12.06 kB / 0.8657 GB, free: 140.5 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2244/0.225, allocations: 115.3 MB / 0.9783 GB, free: 28.3 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop): time 0.1157/0.3408, allocations: 75.33 MB / 1.052 GB, free: 0.793 MB / 0.6667 GB Notification: Performance of NFInst.instExpressions: time 0.6907/1.032, allocations: 22.11 MB / 1.073 GB, free: 24.84 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004786/1.036, allocations: 88.94 kB / 1.074 GB, free: 24.83 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.008297/1.045, allocations: 1.543 MB / 1.075 GB, free: 24.83 MB / 0.6823 GB Notification: Performance of NFTyping.typeBindings: time 0.01789/1.063, allocations: 3.563 MB / 1.079 GB, free: 24.79 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.01953/1.082, allocations: 3.952 MB / 1.082 GB, free: 24.7 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.01334/1.096, allocations: 4.11 MB / 1.086 GB, free: 24.69 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005663/1.101, allocations: 1.75 MB / 1.088 GB, free: 24.47 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007912/1.109, allocations: 1.959 MB / 1.09 GB, free: 24.46 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004802/1.114, allocations: 1.386 MB / 1.091 GB, free: 24.46 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.001442/1.116, allocations: 115.7 kB / 1.091 GB, free: 24.46 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009117/1.125, allocations: 1.725 MB / 1.093 GB, free: 24.46 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.001966/1.127, allocations: 0.5699 MB / 1.094 GB, free: 24.46 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.002558/1.129, allocations: 0.5869 MB / 1.094 GB, free: 24.43 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.01107/1.141, allocations: 3.824 MB / 1.098 GB, free: 24.16 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 3.738e-06/1.141, allocations: 1.219 kB / 1.098 GB, free: 24.16 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.906e-06/1.141, allocations: 0 / 1.098 GB, free: 24.16 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.000199/1.141, allocations: 0 / 1.098 GB, free: 24.16 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.01159/1.152, allocations: 3.049 MB / 1.101 GB, free: 22.51 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.576e-05/1.152, allocations: 13.5 kB / 1.101 GB, free: 22.51 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001204/1.154, allocations: 233 kB / 1.101 GB, free: 22.46 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006589/1.16, allocations: 0.7214 MB / 1.102 GB, free: 22.27 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008619/1.169, allocations: 2.255 MB / 1.104 GB, free: 21.78 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00152/1.171, allocations: 339.5 kB / 1.104 GB, free: 21.7 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009805/1.172, allocations: 171.7 kB / 1.105 GB, free: 21.7 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007943/1.18, allocations: 1.995 MB / 1.107 GB, free: 21.39 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.625e-05/1.18, allocations: 2.062 kB / 1.107 GB, free: 21.39 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000388/1.18, allocations: 73.83 kB / 1.107 GB, free: 21.39 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.726e-05/1.18, allocations: 43.75 kB / 1.107 GB, free: 21.39 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008285/1.188, allocations: 1.762 MB / 1.108 GB, free: 21.35 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.02362/1.212, allocations: 9.265 MB / 1.117 GB, free: 16.54 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004452/1.217, allocations: 1.124 MB / 1.119 GB, free: 16.27 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0125/1.229, allocations: 4.173 MB / 1.123 GB, free: 13.61 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003247/1.233, allocations: 0.7812 MB / 1.123 GB, free: 13.36 MB / 0.6823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002104/1.235, allocations: 196 kB / 1.124 GB, free: 13.26 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=100): time 9.438e-06/1.235, allocations: 0 / 1.124 GB, free: 13.26 MB / 0.6823 GB Notification: Performance of matching and sorting (n=100): time 0.009441/1.244, allocations: 1.928 MB / 1.125 GB, free: 12.84 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.06e-05/1.244, allocations: 170.2 kB / 1.126 GB, free: 12.64 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006541/1.251, allocations: 2.31 MB / 1.128 GB, free: 12.05 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0006862/1.252, allocations: 59.39 kB / 1.128 GB, free: 12.02 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.001766/1.253, allocations: 1.165 MB / 1.129 GB, free: 11.57 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006784/1.254, allocations: 342.1 kB / 1.129 GB, free: 11.33 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002472/1.254, allocations: 35.94 kB / 1.129 GB, free: 11.33 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001354/1.255, allocations: 359.4 kB / 1.13 GB, free: 11.01 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003394/1.258, allocations: 0.737 MB / 1.13 GB, free: 10.88 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004102/1.262, allocations: 1.229 MB / 1.132 GB, free: 10.16 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003871/1.266, allocations: 0.9199 MB / 1.133 GB, free: 9.926 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.335e-05/1.266, allocations: 3.062 kB / 1.133 GB, free: 9.926 MB / 0.6823 GB Notification: Performance of matching and sorting (n=182) (initialization): time 0.01046/1.277, allocations: 2.315 MB / 1.135 GB, free: 9.355 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.001246/1.278, allocations: 5.209 MB / 1.14 GB, free: 3.84 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.422e-05/1.278, allocations: 12.84 kB / 1.14 GB, free: 3.84 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.761e-05/1.278, allocations: 21.56 kB / 1.14 GB, free: 3.84 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003254/1.281, allocations: 361.8 kB / 1.14 GB, free: 3.777 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.15e-05/1.281, allocations: 28.73 kB / 1.14 GB, free: 3.773 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005711/1.287, allocations: 363.3 kB / 1.141 GB, free: 3.66 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007257/1.288, allocations: 93.27 kB / 1.141 GB, free: 3.648 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/1.288, allocations: 8.219 kB / 1.141 GB, free: 3.645 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009131/1.297, allocations: 2.109 MB / 1.143 GB, free: 3.234 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.396e-05/1.297, allocations: 12.53 kB / 1.143 GB, free: 3.234 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.612e-05/1.297, allocations: 27.72 kB / 1.143 GB, free: 3.23 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00313/1.3, allocations: 360.5 kB / 1.143 GB, free: 3.168 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.14e-05/1.301, allocations: 31.67 kB / 1.143 GB, free: 3.16 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005343/1.306, allocations: 361.2 kB / 1.144 GB, free: 3.043 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006377/1.307, allocations: 85.55 kB / 1.144 GB, free: 3.031 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,reaToInt.y,$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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (171): * Single equations (assignments): 164 * 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.002412/1.309, allocations: 0.6363 MB / 1.144 GB, free: 2.801 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008989/1.31, allocations: 246.3 kB / 1.145 GB, free: 2.672 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006883/1.317, allocations: 1.798 MB / 1.146 GB, free: 2.223 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.922e-05/1.317, allocations: 11.66 kB / 1.146 GB, free: 2.223 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.007e-05/1.317, allocations: 3.219 kB / 1.146 GB, free: 2.223 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005171/1.322, allocations: 1.333 MB / 1.148 GB, free: 1.879 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01258/1.335, allocations: 3.73 MB / 1.151 GB, free: 15.77 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.418e-05/1.335, allocations: 3.062 kB / 1.151 GB, free: 15.77 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002329/1.337, allocations: 235.8 kB / 1.151 GB, free: 15.72 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.146e-05/1.337, allocations: 5.25 kB / 1.151 GB, free: 15.72 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002407/1.337, allocations: 32.72 kB / 1.152 GB, free: 15.7 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.254e-05/1.337, allocations: 10.16 kB / 1.152 GB, free: 15.7 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/1.337, allocations: 3.344 kB / 1.152 GB, free: 15.7 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009802/1.347, allocations: 2.602 MB / 1.154 GB, free: 14.14 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002387/1.35, allocations: 0.5066 MB / 1.155 GB, free: 13.71 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001027/1.351, allocations: 18.62 kB / 1.155 GB, free: 13.7 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004055/1.355, allocations: 181.5 kB / 1.155 GB, free: 13.62 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000446/1.355, allocations: 92.52 kB / 1.155 GB, free: 13.57 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002874/1.356, allocations: 53.7 kB / 1.155 GB, free: 13.55 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.005139/1.361, allocations: 1.579 MB / 1.156 GB, free: 12.69 MB / 0.698 GB Notification: Performance of sort global known variables: time 7.31e-07/1.361, allocations: 0 / 1.156 GB, free: 12.69 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.007581/1.368, allocations: 1.372 MB / 1.158 GB, free: 12.4 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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,reaToInt.y,uMod.booPul.y,pulse.booPul.y,TSouEnt.booPul.y,TLoaSet.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (106): * Single equations (assignments): 96 * 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.01287/1.381, allocations: 4.245 MB / 1.162 GB, free: 8.285 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.01307/1.395, allocations: 3.303 MB / 1.165 GB, free: 4.961 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.455e-05/1.395, allocations: 4.125 kB / 1.165 GB, free: 4.957 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.003308/1.398, allocations: 0.707 MB / 1.166 GB, free: 4.277 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0105/1.408, allocations: 1.096 MB / 1.167 GB, free: 3.188 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02498/1.433, allocations: 14.41 MB / 1.181 GB, free: 4.516 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002756/1.436, allocations: 1.709 MB / 1.183 GB, free: 2.773 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.005415/1.442, allocations: 0.6031 MB / 1.183 GB, free: 2.195 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003076/1.445, allocations: 1.05 MB / 1.184 GB, free: 1.145 MB / 0.7136 GB Notification: Performance of SimCode: time 1.252e-06/1.445, allocations: 0 / 1.184 GB, free: 1.145 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2/1.645, allocations: 71.12 MB / 1.254 GB, free: 10.93 MB / 0.7917 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003044/1.645, allocations: 244.1 kB / 1.254 GB, free: 10.61 MB / 0.7917 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.791/7.437, allocations: 0 / 1.254 GB, free: 10.61 MB / 0.7917 GB (rm -f Buildings_8.0.0_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible_CoolingClosedLoop_fmu --startTime=0 --stopTime=2500 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible_CoolingClosedLoop.fmu > Buildings_8.0.0_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe 2>&1)