Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 91.84 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.008116/0.008116, allocations: 170 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.306/1.306, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.486/2.486, allocations: 462.6 MB / 0.7364 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003216/0.0003216, allocations: 14.03 kB / 0.9029 GB, free: 36.4 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2984/0.2987, allocations: 159.6 MB / 1.059 GB, free: 4.918 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.06004/0.3588, allocations: 61.11 MB / 1.118 GB, free: 7.598 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01726/0.3761, allocations: 13.56 MB / 1.132 GB, free: 10 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002783/0.3789, allocations: 51.69 kB / 1.132 GB, free: 9.953 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.003098/0.382, allocations: 0.7965 MB / 1.133 GB, free: 9.152 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.006172/0.3882, allocations: 2.211 MB / 1.135 GB, free: 6.934 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.003837/0.3921, allocations: 1.478 MB / 1.136 GB, free: 5.469 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.005985/0.3981, allocations: 5.471 MB / 1.141 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002049/0.4001, allocations: 1.173 MB / 1.143 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002883/0.403, allocations: 1.373 MB / 1.144 GB, free: 13.39 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002045/0.4051, allocations: 1.237 MB / 1.145 GB, free: 12.15 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0004033/0.4055, allocations: 72 kB / 1.145 GB, free: 12.08 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003/0.4085, allocations: 1.298 MB / 1.146 GB, free: 10.78 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0006301/0.4092, allocations: 410.3 kB / 1.147 GB, free: 10.38 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.001511/0.4107, allocations: 0.9071 MB / 1.148 GB, free: 9.457 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.004314/0.415, allocations: 3.018 MB / 1.151 GB, free: 6.43 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.415, allocations: 0 / 1.151 GB, free: 6.43 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.623e-06/0.415, allocations: 0 / 1.151 GB, free: 6.43 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 8.868e-05/0.4151, allocations: 0 / 1.151 GB, free: 6.43 MB / 0.9044 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.004488/0.4196, allocations: 2.026 MB / 1.153 GB, free: 4.344 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.373e-05/0.4197, allocations: 12.03 kB / 1.153 GB, free: 4.332 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003717/0.42, allocations: 164.8 kB / 1.153 GB, free: 4.16 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001523/0.4216, allocations: 346.4 kB / 1.153 GB, free: 3.82 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002548/0.4241, allocations: 1.455 MB / 1.155 GB, free: 2.312 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000181/0.4243, allocations: 161.5 kB / 1.155 GB, free: 2.141 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000208/0.4245, allocations: 104 kB / 1.155 GB, free: 2.039 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002982/0.4275, allocations: 1.492 MB / 1.156 GB, free: 468 kB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.858e-05/0.4276, allocations: 0 / 1.156 GB, free: 468 kB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001312/0.4277, allocations: 48 kB / 1.156 GB, free: 420 kB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.26e-05/0.4278, allocations: 31.98 kB / 1.156 GB, free: 388 kB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003368/0.4311, allocations: 1.44 MB / 1.158 GB, free: 14.93 MB / 0.92 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.008449/0.4396, allocations: 6.666 MB / 1.164 GB, free: 7.82 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002298/0.4419, allocations: 1.226 MB / 1.166 GB, free: 6.508 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001404/0.4433, allocations: 0.6137 MB / 1.166 GB, free: 5.891 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009297/0.4443, allocations: 1.141 MB / 1.167 GB, free: 4.492 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.841e-05/0.4443, allocations: 47.22 kB / 1.167 GB, free: 4.438 MB / 0.92 GB Notification: Performance of pre-optimization done (n=77): time 2.364e-06/0.4443, allocations: 0 / 1.167 GB, free: 4.438 MB / 0.92 GB Notification: Performance of matching and sorting (n=77): time 0.004623/0.449, allocations: 1.746 MB / 1.169 GB, free: 2.684 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.019e-05/0.4491, allocations: 115.5 kB / 1.169 GB, free: 2.547 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002377/0.4514, allocations: 1.389 MB / 1.17 GB, free: 1.148 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0001221/0.4516, allocations: 49.7 kB / 1.17 GB, free: 1.094 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007466/0.4523, allocations: 0.7124 MB / 1.171 GB, free: 380 kB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003195/0.4527, allocations: 268.1 kB / 1.171 GB, free: 108 kB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000157/0.4528, allocations: 77.67 kB / 1.172 GB, free: 24 kB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001835/0.453, allocations: 342 kB / 1.172 GB, free: 15.68 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001413/0.4544, allocations: 0.5329 MB / 1.172 GB, free: 15.15 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001675/0.4561, allocations: 0.7698 MB / 1.173 GB, free: 14.29 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002979/0.4591, allocations: 1.238 MB / 1.174 GB, free: 12.98 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.191e-05/0.4592, allocations: 11.88 kB / 1.174 GB, free: 12.97 MB / 0.9356 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.003599/0.4628, allocations: 1.445 MB / 1.176 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002439/0.463, allocations: 232.4 kB / 1.176 GB, free: 11.22 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.733e-05/0.463, allocations: 11.92 kB / 1.176 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.571e-05/0.4631, allocations: 12 kB / 1.176 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001321/0.4644, allocations: 295.6 kB / 1.176 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.705e-05/0.4645, allocations: 19.92 kB / 1.176 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001829/0.4663, allocations: 214.9 kB / 1.176 GB, free: 10.68 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001327/0.4665, allocations: 39.98 kB / 1.177 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.087e-05/0.4665, allocations: 4 kB / 1.177 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003149/0.4696, allocations: 1.292 MB / 1.178 GB, free: 9.348 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.4697, allocations: 4 kB / 1.178 GB, free: 9.344 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.4697, allocations: 8 kB / 1.178 GB, free: 9.336 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001177/0.4709, allocations: 299.8 kB / 1.178 GB, free: 9.043 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.718e-05/0.4709, allocations: 8 kB / 1.178 GB, free: 9.035 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001382/0.4723, allocations: 211.1 kB / 1.178 GB, free: 8.828 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.245e-05/0.4724, allocations: 39.98 kB / 1.178 GB, free: 8.789 MB / 0.9356 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 (intGreThr.y,reaToInt.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000761/0.4731, allocations: 464.7 kB / 1.179 GB, free: 8.324 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003114/0.4735, allocations: 150.1 kB / 1.179 GB, free: 8.176 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003408/0.4769, allocations: 1.579 MB / 1.18 GB, free: 6.566 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.426e-05/0.4769, allocations: 8 kB / 1.18 GB, free: 6.559 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.4769, allocations: 0 / 1.18 GB, free: 6.559 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002603/0.4795, allocations: 1.214 MB / 1.182 GB, free: 5.312 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005797/0.4853, allocations: 3.176 MB / 1.185 GB, free: 2.023 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.007e-06/0.4854, allocations: 7.938 kB / 1.185 GB, free: 2.016 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009631/0.4863, allocations: 220.2 kB / 1.185 GB, free: 1.801 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.309e-05/0.4863, allocations: 8 kB / 1.185 GB, free: 1.793 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.917e-05/0.4864, allocations: 27.98 kB / 1.185 GB, free: 1.766 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.586e-06/0.4864, allocations: 7.938 kB / 1.185 GB, free: 1.758 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.097e-05/0.4864, allocations: 15.98 kB / 1.185 GB, free: 1.742 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004436/0.4909, allocations: 2.22 MB / 1.187 GB, free: 15.45 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006903/0.4916, allocations: 414.7 kB / 1.188 GB, free: 15.02 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003069/0.4919, allocations: 19.94 kB / 1.188 GB, free: 15 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001397/0.4933, allocations: 163.7 kB / 1.188 GB, free: 14.84 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001777/0.4935, allocations: 88.33 kB / 1.188 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.399e-05/0.4936, allocations: 43.97 kB / 1.188 GB, free: 14.71 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.001538/0.4951, allocations: 1.064 MB / 1.189 GB, free: 13.65 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.51e-07/0.4952, allocations: 0 / 1.189 GB, free: 13.65 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.002032/0.4972, allocations: 0.7915 MB / 1.19 GB, free: 12.86 MB / 0.9512 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005552/0.5028, allocations: 3.122 MB / 1.193 GB, free: 9.66 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.00448/0.5072, allocations: 1.959 MB / 1.195 GB, free: 7.699 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/0.5073, allocations: 0 / 1.195 GB, free: 7.699 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.001579/0.5088, allocations: 0.6874 MB / 1.195 GB, free: 7.016 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004675/0.5135, allocations: 0.824 MB / 1.196 GB, free: 6.203 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02541/0.539, allocations: 14.44 MB / 1.21 GB, free: 7.059 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00094/0.5399, allocations: 1.278 MB / 1.212 GB, free: 5.754 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.00178/0.5417, allocations: 408.2 kB / 1.212 GB, free: 5.348 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009352/0.5427, allocations: 0.6242 MB / 1.213 GB, free: 4.723 MB / 0.9669 GB Notification: Performance of SimCode: time 9.92e-07/0.5427, allocations: 0 / 1.213 GB, free: 4.723 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.956/2.499, allocations: 46.89 MB / 1.258 GB, free: 179.1 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001554/2.499, allocations: 258.8 kB / 1.259 GB, free: 178.9 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.914/5.413, allocations: 0 / 1.259 GB, free: 178.9 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible.fmu > Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe 2>&1)