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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001953/0.001953, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001566/0.001566, allocations: 194.7 kB / 16.25 MB, free: 6.629 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.423/1.423, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.606/2.606, allocations: 461.9 MB / 0.7344 GB, free: 14.87 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001428/0.001428, allocations: 60.89 kB / 0.8987 GB, free: 37.13 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2388/0.2402, allocations: 157.4 MB / 1.052 GB, free: 8.625 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.05149/0.2918, allocations: 62.12 MB / 1.113 GB, free: 10.3 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01472/0.3065, allocations: 13.55 MB / 1.126 GB, free: 12.71 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001468/0.308, allocations: 59.62 kB / 1.126 GB, free: 12.65 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.001972/0.31, allocations: 0.8394 MB / 1.127 GB, free: 11.81 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.004498/0.3145, allocations: 2.215 MB / 1.129 GB, free: 9.586 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.003055/0.3176, allocations: 1.507 MB / 1.131 GB, free: 8.094 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.004107/0.3217, allocations: 4.31 MB / 1.135 GB, free: 3.766 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001635/0.3233, allocations: 1.406 MB / 1.136 GB, free: 2.324 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002849/0.3262, allocations: 1.652 MB / 1.138 GB, free: 0.6719 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001539/0.3277, allocations: 1.342 MB / 1.139 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0002748/0.328, allocations: 180 kB / 1.139 GB, free: 15.15 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002091/0.3301, allocations: 1.446 MB / 1.141 GB, free: 13.7 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0003798/0.3305, allocations: 0.5023 MB / 1.141 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.000778/0.3313, allocations: 1.015 MB / 1.142 GB, free: 12.18 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.002619/0.3339, allocations: 3.147 MB / 1.145 GB, free: 9.02 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.257e-06/0.3339, allocations: 0 / 1.145 GB, free: 9.02 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.042e-06/0.334, allocations: 0 / 1.145 GB, free: 9.02 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.678e-05/0.334, allocations: 4 kB / 1.145 GB, free: 9.016 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.003478/0.3375, allocations: 2.333 MB / 1.148 GB, free: 6.625 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.064e-05/0.3375, allocations: 12.62 kB / 1.148 GB, free: 6.613 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001763/0.3377, allocations: 168.8 kB / 1.148 GB, free: 6.438 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001211/0.3389, allocations: 314.4 kB / 1.148 GB, free: 6.129 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001796/0.3407, allocations: 1.459 MB / 1.15 GB, free: 4.617 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001406/0.3409, allocations: 153.5 kB / 1.15 GB, free: 4.453 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001465/0.341, allocations: 108 kB / 1.15 GB, free: 4.348 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002435/0.3435, allocations: 1.44 MB / 1.151 GB, free: 2.82 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.635e-05/0.3435, allocations: 4 kB / 1.151 GB, free: 2.816 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001118/0.3436, allocations: 44 kB / 1.151 GB, free: 2.773 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.566e-05/0.3436, allocations: 39.92 kB / 1.151 GB, free: 2.734 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00276/0.3464, allocations: 1.335 MB / 1.153 GB, free: 1.398 MB / 0.9044 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.006344/0.3528, allocations: 6.639 MB / 1.159 GB, free: 10.31 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001899/0.3547, allocations: 1.164 MB / 1.16 GB, free: 9.062 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001146/0.3558, allocations: 0.5661 MB / 1.161 GB, free: 8.492 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000682/0.3565, allocations: 1.145 MB / 1.162 GB, free: 7.09 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.7e-05/0.3566, allocations: 51.77 kB / 1.162 GB, free: 7.031 MB / 0.92 GB Notification: Performance of pre-optimization done (n=77): time 1.834e-06/0.3566, allocations: 0 / 1.162 GB, free: 7.031 MB / 0.92 GB Notification: Performance of matching and sorting (n=77): time 0.003588/0.3602, allocations: 1.585 MB / 1.164 GB, free: 5.438 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.646e-05/0.3602, allocations: 115.5 kB / 1.164 GB, free: 5.301 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001428/0.3617, allocations: 1.389 MB / 1.165 GB, free: 3.902 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 7.869e-05/0.3617, allocations: 45.7 kB / 1.165 GB, free: 3.852 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004677/0.3622, allocations: 0.7125 MB / 1.166 GB, free: 3.129 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001922/0.3624, allocations: 268.1 kB / 1.166 GB, free: 2.863 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002734/0.3627, allocations: 178.5 kB / 1.166 GB, free: 2.68 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001034/0.3628, allocations: 341.9 kB / 1.167 GB, free: 2.34 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001119/0.3639, allocations: 0.4927 MB / 1.167 GB, free: 1.844 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001256/0.3652, allocations: 0.7191 MB / 1.168 GB, free: 1.035 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002277/0.3675, allocations: 1.129 MB / 1.169 GB, free: 15.84 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.3675, allocations: 4 kB / 1.169 GB, free: 15.84 MB / 0.9356 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.002742/0.3702, allocations: 1.347 MB / 1.17 GB, free: 14.48 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.403e-05/0.3703, allocations: 8 kB / 1.17 GB, free: 14.48 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.3703, allocations: 8.5 kB / 1.17 GB, free: 14.47 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.3703, allocations: 12 kB / 1.17 GB, free: 14.46 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001106/0.3714, allocations: 271.6 kB / 1.17 GB, free: 14.19 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.481e-05/0.3714, allocations: 15.92 kB / 1.17 GB, free: 14.18 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001049/0.3725, allocations: 190.9 kB / 1.171 GB, free: 13.99 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.898e-05/0.3726, allocations: 39.98 kB / 1.171 GB, free: 13.95 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001451/0.374, allocations: 0.8063 MB / 1.171 GB, free: 13.14 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001253/0.3753, allocations: 0.7153 MB / 1.172 GB, free: 12.33 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002248/0.3776, allocations: 1.129 MB / 1.173 GB, free: 11.14 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.845e-06/0.3776, allocations: 0 / 1.173 GB, free: 11.14 MB / 0.9356 GB Notification: Performance of matching and sorting (n=109) (initialization_lambda0): time 0.00272/0.3803, allocations: 1.35 MB / 1.175 GB, free: 9.777 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.081e-05/0.3803, allocations: 9.875 kB / 1.175 GB, free: 9.77 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.179e-06/0.3803, allocations: 4 kB / 1.175 GB, free: 9.766 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.223e-06/0.3803, allocations: 8 kB / 1.175 GB, free: 9.758 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00109/0.3814, allocations: 272 kB / 1.175 GB, free: 9.492 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.523e-05/0.3815, allocations: 11.94 kB / 1.175 GB, free: 9.48 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001038/0.3825, allocations: 191.1 kB / 1.175 GB, free: 9.293 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.044e-05/0.3826, allocations: 35.98 kB / 1.175 GB, free: 9.258 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.0002109/0.3828, allocations: 236 kB / 1.175 GB, free: 9.02 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002286/0.3831, allocations: 146.2 kB / 1.175 GB, free: 8.875 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002904/0.386, allocations: 1.489 MB / 1.177 GB, free: 7.359 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.158e-05/0.386, allocations: 8 kB / 1.177 GB, free: 7.352 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.386, allocations: 3.938 kB / 1.177 GB, free: 7.348 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002289/0.3883, allocations: 1.105 MB / 1.178 GB, free: 6.211 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004721/0.393, allocations: 3.082 MB / 1.181 GB, free: 3.012 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.674e-06/0.393, allocations: 7.984 kB / 1.181 GB, free: 3.004 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008841/0.3939, allocations: 191.7 kB / 1.181 GB, free: 2.816 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.184e-06/0.3939, allocations: 4.375 kB / 1.181 GB, free: 2.812 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.691e-05/0.394, allocations: 27.98 kB / 1.181 GB, free: 2.785 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.885e-06/0.394, allocations: 11.94 kB / 1.181 GB, free: 2.773 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.394, allocations: 7.938 kB / 1.181 GB, free: 2.766 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00388/0.3979, allocations: 2.06 MB / 1.183 GB, free: 0.625 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000483/0.3984, allocations: 390.6 kB / 1.184 GB, free: 228 kB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002384/0.3987, allocations: 19.94 kB / 1.184 GB, free: 208 kB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001152/0.3998, allocations: 143.7 kB / 1.184 GB, free: 64 kB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001814/0.4, allocations: 88.34 kB / 1.184 GB, free: 15.98 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.314e-05/0.4001, allocations: 39.97 kB / 1.184 GB, free: 15.94 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.00122/0.4013, allocations: 1.068 MB / 1.185 GB, free: 14.88 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.41e-07/0.4013, allocations: 0 / 1.185 GB, free: 14.88 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.001571/0.4029, allocations: 0.7916 MB / 1.186 GB, free: 14.08 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.00478/0.4077, allocations: 2.959 MB / 1.189 GB, free: 11.05 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.003946/0.4117, allocations: 1.884 MB / 1.19 GB, free: 9.164 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.898e-06/0.4117, allocations: 0 / 1.19 GB, free: 9.164 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.001345/0.413, allocations: 0.6444 MB / 1.191 GB, free: 8.523 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003053/0.4161, allocations: 0.8191 MB / 1.192 GB, free: 7.723 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02167/0.4378, allocations: 14.11 MB / 1.206 GB, free: 8.914 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007683/0.4386, allocations: 1.281 MB / 1.207 GB, free: 7.602 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.001448/0.44, allocations: 413.6 kB / 1.207 GB, free: 7.191 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007788/0.4408, allocations: 0.6164 MB / 1.208 GB, free: 6.574 MB / 0.9669 GB Notification: Performance of SimCode: time 2.61e-07/0.4408, allocations: 0 / 1.208 GB, free: 6.574 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.853/2.294, allocations: 45.74 MB / 1.253 GB, free: 186.8 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000284/2.294, allocations: 258.8 kB / 1.253 GB, free: 186.6 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.873/6.167, allocations: 0 / 1.253 GB, free: 186.6 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)