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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.004946/0.004946, allocations: 100.8 kB / 15.73 MB, free: 6.062 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.001404/0.001404, allocations: 195.3 kB / 16.67 MB, free: 5.973 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.254/1.254, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.441/2.441, allocations: 482.6 MB / 0.755 GB, free: 6.633 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001708/0.001708, allocations: 64.3 kB / 1.083 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2497/0.2514, allocations: 162.3 MB / 1.242 GB, free: 8.941 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.05579/0.3073, allocations: 62.75 MB / 1.303 GB, free: 9.973 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.01581/0.3231, allocations: 13.68 MB / 1.316 GB, free: 12.26 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009623/0.3241, allocations: 59.69 kB / 1.317 GB, free: 12.2 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.001787/0.3259, allocations: 0.9433 MB / 1.317 GB, free: 11.25 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.004107/0.33, allocations: 2.425 MB / 1.32 GB, free: 8.816 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.002845/0.3329, allocations: 1.594 MB / 1.321 GB, free: 7.234 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.003902/0.3368, allocations: 4.312 MB / 1.326 GB, free: 2.914 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001482/0.3383, allocations: 1.422 MB / 1.327 GB, free: 1.457 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002676/0.341, allocations: 1.766 MB / 1.329 GB, free: 15.69 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00131/0.3423, allocations: 1.28 MB / 1.33 GB, free: 14.4 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 0.0002346/0.3426, allocations: 179.9 kB / 1.33 GB, free: 14.23 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002192/0.3448, allocations: 1.427 MB / 1.332 GB, free: 12.8 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.000426/0.3452, allocations: 0.4984 MB / 1.332 GB, free: 12.3 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.000863/0.3461, allocations: 1.003 MB / 1.333 GB, free: 11.29 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.003206/0.3493, allocations: 3.2 MB / 1.336 GB, free: 8.078 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.105e-06/0.3493, allocations: 0 / 1.336 GB, free: 8.078 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.072e-06/0.3493, allocations: 0 / 1.336 GB, free: 8.078 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.639e-05/0.3493, allocations: 3.984 kB / 1.336 GB, free: 8.074 MB / 1.061 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.003618/0.3529, allocations: 2.393 MB / 1.338 GB, free: 5.617 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.096e-05/0.353, allocations: 8.031 kB / 1.338 GB, free: 5.609 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001841/0.3532, allocations: 168.8 kB / 1.339 GB, free: 5.434 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002679/0.3558, allocations: 0.5383 MB / 1.339 GB, free: 4.895 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002015/0.3579, allocations: 1.511 MB / 1.341 GB, free: 3.332 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001532/0.358, allocations: 157.5 kB / 1.341 GB, free: 3.164 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001564/0.3582, allocations: 108 kB / 1.341 GB, free: 3.059 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003018/0.3612, allocations: 1.566 MB / 1.342 GB, free: 1.402 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.36e-05/0.3613, allocations: 4 kB / 1.342 GB, free: 1.398 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001167/0.3614, allocations: 48 kB / 1.342 GB, free: 1.352 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.67e-05/0.3614, allocations: 31.98 kB / 1.342 GB, free: 1.32 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003888/0.3653, allocations: 1.561 MB / 1.344 GB, free: 15.76 MB / 1.076 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.00772/0.373, allocations: 6.937 MB / 1.351 GB, free: 8.379 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002498/0.3756, allocations: 1.291 MB / 1.352 GB, free: 7 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001693/0.3773, allocations: 0.6625 MB / 1.353 GB, free: 6.336 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008146/0.3781, allocations: 1.152 MB / 1.354 GB, free: 4.926 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.36e-05/0.3781, allocations: 51.22 kB / 1.354 GB, free: 4.867 MB / 1.076 GB Notification: Performance of pre-optimization done (n=77): time 1.663e-06/0.3781, allocations: 0 / 1.354 GB, free: 4.867 MB / 1.076 GB Notification: Performance of matching and sorting (n=77): time 0.005196/0.3833, allocations: 1.906 MB / 1.356 GB, free: 2.953 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.044e-05/0.3834, allocations: 111.5 kB / 1.356 GB, free: 2.82 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001562/0.385, allocations: 1.405 MB / 1.357 GB, free: 1.406 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 7.75e-05/0.3851, allocations: 45.7 kB / 1.357 GB, free: 1.355 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005574/0.3856, allocations: 0.7213 MB / 1.358 GB, free: 0.625 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002229/0.3858, allocations: 285.6 kB / 1.358 GB, free: 352 kB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002958/0.3862, allocations: 174.6 kB / 1.358 GB, free: 172 kB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001438/0.3863, allocations: 345.9 kB / 1.359 GB, free: 15.82 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00166/0.388, allocations: 0.5941 MB / 1.359 GB, free: 15.23 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001825/0.3898, allocations: 0.8244 MB / 1.36 GB, free: 14.31 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003309/0.3931, allocations: 1.316 MB / 1.361 GB, free: 12.93 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.3931, allocations: 7.938 kB / 1.361 GB, free: 12.92 MB / 1.092 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.003816/0.397, allocations: 1.562 MB / 1.363 GB, free: 11.36 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/0.397, allocations: 8 kB / 1.363 GB, free: 11.35 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.397, allocations: 4.562 kB / 1.363 GB, free: 11.34 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.723e-05/0.397, allocations: 8 kB / 1.363 GB, free: 11.34 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00135/0.3984, allocations: 311.5 kB / 1.363 GB, free: 11.03 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.479e-05/0.3984, allocations: 11.94 kB / 1.363 GB, free: 11.02 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001141/0.3995, allocations: 195.1 kB / 1.363 GB, free: 10.83 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.049e-05/0.3996, allocations: 39.98 kB / 1.363 GB, free: 10.79 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002002/0.4016, allocations: 0.9039 MB / 1.364 GB, free: 9.879 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001795/0.4034, allocations: 0.8244 MB / 1.365 GB, free: 8.961 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003242/0.4067, allocations: 1.316 MB / 1.366 GB, free: 7.586 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.294e-06/0.4067, allocations: 0 / 1.366 GB, free: 7.586 MB / 1.092 GB Notification: Performance of matching and sorting (n=109) (initialization_lambda0): time 0.003797/0.4105, allocations: 1.558 MB / 1.368 GB, free: 6.02 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 8.937e-06/0.4105, allocations: 5.875 kB / 1.368 GB, free: 6.016 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/0.4105, allocations: 8 kB / 1.368 GB, free: 6.008 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.705e-06/0.4106, allocations: 8 kB / 1.368 GB, free: 6 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001338/0.4119, allocations: 303.9 kB / 1.368 GB, free: 5.703 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.112e-05/0.4119, allocations: 11.98 kB / 1.368 GB, free: 5.691 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001145/0.4131, allocations: 187.3 kB / 1.368 GB, free: 5.508 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.446e-05/0.4132, allocations: 43.92 kB / 1.369 GB, free: 5.465 MB / 1.092 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.0002164/0.4134, allocations: 236 kB / 1.369 GB, free: 5.227 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002448/0.4136, allocations: 155 kB / 1.369 GB, free: 5.074 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003997/0.4176, allocations: 1.692 MB / 1.371 GB, free: 3.352 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.359e-05/0.4177, allocations: 8 kB / 1.371 GB, free: 3.344 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.4177, allocations: 3.938 kB / 1.371 GB, free: 3.34 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003327/0.421, allocations: 1.308 MB / 1.372 GB, free: 2 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005999/0.427, allocations: 3.401 MB / 1.375 GB, free: 14.47 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.057e-06/0.427, allocations: 8 kB / 1.375 GB, free: 14.46 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001141/0.4282, allocations: 231.8 kB / 1.375 GB, free: 14.24 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.675e-06/0.4282, allocations: 8 kB / 1.375 GB, free: 14.23 MB / 1.107 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.181e-05/0.4283, allocations: 23.98 kB / 1.375 GB, free: 14.21 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.636e-06/0.4283, allocations: 11.94 kB / 1.375 GB, free: 14.2 MB / 1.107 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/0.4283, allocations: 7.938 kB / 1.375 GB, free: 14.19 MB / 1.107 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005496/0.4338, allocations: 2.408 MB / 1.378 GB, free: 11.7 MB / 1.107 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005017/0.4343, allocations: 399.6 kB / 1.378 GB, free: 11.29 MB / 1.107 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001888/0.4345, allocations: 27.89 kB / 1.378 GB, free: 11.27 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001267/0.4358, allocations: 143.8 kB / 1.378 GB, free: 11.12 MB / 1.107 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001724/0.436, allocations: 80.34 kB / 1.378 GB, free: 11.05 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.348e-05/0.4361, allocations: 43.97 kB / 1.378 GB, free: 11 MB / 1.107 GB Notification: Performance of sorting global known variables: time 0.001278/0.4373, allocations: 1.079 MB / 1.38 GB, free: 9.93 MB / 1.107 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4374, allocations: 3.938 kB / 1.38 GB, free: 9.926 MB / 1.107 GB Notification: Performance of remove unused functions: time 0.001569/0.4389, allocations: 0.8188 MB / 1.38 GB, free: 9.105 MB / 1.107 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.006463/0.4454, allocations: 3.333 MB / 1.384 GB, free: 5.695 MB / 1.107 GB Notification: Performance of simCode: created initialization part: time 0.005378/0.4508, allocations: 2.134 MB / 1.386 GB, free: 3.562 MB / 1.107 GB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.4508, allocations: 4 kB / 1.386 GB, free: 3.559 MB / 1.107 GB Notification: Performance of simCode: created simulation system equations: time 0.001915/0.4527, allocations: 0.7498 MB / 1.386 GB, free: 2.809 MB / 1.107 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0031/0.4558, allocations: 0.8148 MB / 1.387 GB, free: 2.008 MB / 1.107 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02074/0.4766, allocations: 13.23 MB / 1.4 GB, free: 4.336 MB / 1.123 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008319/0.4774, allocations: 1.281 MB / 1.401 GB, free: 3.023 MB / 1.123 GB Notification: Performance of simCode: alias equations: time 0.001315/0.4787, allocations: 424.1 kB / 1.402 GB, free: 2.602 MB / 1.123 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008544/0.4796, allocations: 0.6242 MB / 1.402 GB, free: 1.977 MB / 1.123 GB Notification: Performance of SimCode: time 3.31e-07/0.4796, allocations: 0 / 1.402 GB, free: 1.977 MB / 1.123 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.72/5.2, allocations: 47.55 MB / 1.449 GB, free: 2.938 MB / 1.17 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.9/20.1, allocations: 12.67 kB / 1.449 GB, free: 2.926 MB / 1.17 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=400 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible.fmu > Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe 2>&1)