Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.401/1.401, allocations: 251.9 MB / 266.9 MB, free: 10.98 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001384/0.001384, allocations: 181.2 kB / 326.5 MB, free: 2.223 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.745/1.745, allocations: 205.4 MB / 0.5775 GB, free: 20.31 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008896/0.0008896, allocations: 101.7 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004016/0.0004017, allocations: 13.02 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2173/0.2177, allocations: 106.3 MB / 0.9001 GB, free: 63.83 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.04091/0.2587, allocations: 52.44 MB / 0.9514 GB, free: 11.26 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.01448/0.2732, allocations: 11.84 MB / 0.9629 GB, free: 15.39 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002491/0.2757, allocations: 47.69 kB / 0.963 GB, free: 15.35 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.003329/0.2791, allocations: 0.937 MB / 0.9639 GB, free: 14.41 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.008093/0.2872, allocations: 2.127 MB / 0.966 GB, free: 12.27 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.00543/0.2926, allocations: 1.531 MB / 0.9675 GB, free: 10.77 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.005741/0.2984, allocations: 2.516 MB / 0.9699 GB, free: 8.242 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002145/0.3006, allocations: 1.058 MB / 0.9709 GB, free: 7.16 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003063/0.3037, allocations: 1.211 MB / 0.9721 GB, free: 5.945 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001918/0.3056, allocations: 0.8674 MB / 0.973 GB, free: 5.074 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 0.0002586/0.3059, allocations: 64 kB / 0.973 GB, free: 5.012 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002977/0.3089, allocations: 0.8659 MB / 0.9739 GB, free: 4.145 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0004443/0.3093, allocations: 338.7 kB / 0.9742 GB, free: 3.812 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0007026/0.31, allocations: 384.8 kB / 0.9746 GB, free: 3.43 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.003334/0.3134, allocations: 2.139 MB / 0.9767 GB, free: 1.285 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.3134, allocations: 0 / 0.9767 GB, free: 1.285 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.605e-06/0.3134, allocations: 4 kB / 0.9767 GB, free: 1.281 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.249e-05/0.3135, allocations: 0 / 0.9767 GB, free: 1.281 MB / 0.6198 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.00459/0.3181, allocations: 2.002 MB / 0.9786 GB, free: 15.23 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.03e-05/0.3181, allocations: 8.031 kB / 0.9786 GB, free: 15.22 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000287/0.3184, allocations: 168.6 kB / 0.9788 GB, free: 15.04 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001377/0.3198, allocations: 345.5 kB / 0.9791 GB, free: 14.7 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0031/0.3229, allocations: 1.407 MB / 0.9805 GB, free: 13.24 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001985/0.3231, allocations: 157.5 kB / 0.9806 GB, free: 13.07 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001774/0.3233, allocations: 108 kB / 0.9807 GB, free: 12.97 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002856/0.3262, allocations: 1.405 MB / 0.9821 GB, free: 11.48 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.621e-05/0.3262, allocations: 4 kB / 0.9821 GB, free: 11.47 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001094/0.3263, allocations: 44 kB / 0.9822 GB, free: 11.43 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.475e-05/0.3264, allocations: 32 kB / 0.9822 GB, free: 11.4 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003189/0.3296, allocations: 1.331 MB / 0.9835 GB, free: 10.07 MB / 0.6355 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.009097/0.3387, allocations: 6.397 MB / 0.9897 GB, free: 3.227 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002263/0.341, allocations: 1.138 MB / 0.9908 GB, free: 2.008 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001017/0.342, allocations: 1.152 MB / 0.992 GB, free: 0.5977 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.848e-05/0.3421, allocations: 39.22 kB / 0.992 GB, free: 0.5508 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=77): time 3.476e-06/0.3421, allocations: 0 / 0.992 GB, free: 0.5508 MB / 0.6355 GB Notification: Performance of matching and sorting (n=77): time 0.004294/0.3464, allocations: 1.582 MB / 0.9936 GB, free: 14.96 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.098e-05/0.3465, allocations: 111.5 kB / 0.9937 GB, free: 14.83 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00184/0.3483, allocations: 1.307 MB / 0.9949 GB, free: 13.51 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0001217/0.3485, allocations: 41.7 kB / 0.995 GB, free: 13.46 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006307/0.3491, allocations: 0.7124 MB / 0.9957 GB, free: 12.74 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002928/0.3494, allocations: 264.1 kB / 0.9959 GB, free: 12.48 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.125e-05/0.3495, allocations: 16 kB / 0.9959 GB, free: 12.46 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001727/0.3497, allocations: 341.9 kB / 0.9963 GB, free: 12.12 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001283/0.3509, allocations: 497.6 kB / 0.9967 GB, free: 11.64 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001424/0.3524, allocations: 0.7113 MB / 0.9974 GB, free: 10.83 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001306/0.3537, allocations: 0.5143 MB / 0.9979 GB, free: 10.32 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.469e-06/0.3537, allocations: 4 kB / 0.9979 GB, free: 10.32 MB / 0.6511 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.003237/0.357, allocations: 1.331 MB / 0.9992 GB, free: 8.977 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009976/0.358, allocations: 1.889 MB / 1.001 GB, free: 6.906 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.06e-05/0.358, allocations: 7.984 kB / 1.001 GB, free: 6.898 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.677e-05/0.358, allocations: 8 kB / 1.001 GB, free: 6.891 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001247/0.3593, allocations: 291.6 kB / 1.001 GB, free: 6.605 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.494e-05/0.3593, allocations: 19.92 kB / 1.001 GB, free: 6.586 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00149/0.3608, allocations: 214.9 kB / 1.002 GB, free: 6.375 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.628e-05/0.3609, allocations: 43.98 kB / 1.002 GB, free: 6.332 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.289e-05/0.361, allocations: 6.344 kB / 1.002 GB, free: 6.328 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002868/0.3638, allocations: 1.175 MB / 1.003 GB, free: 5.152 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.3638, allocations: 4 kB / 1.003 GB, free: 5.148 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.023e-05/0.3639, allocations: 8 kB / 1.003 GB, free: 5.141 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001171/0.365, allocations: 296.2 kB / 1.003 GB, free: 4.852 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.502e-05/0.3651, allocations: 15.94 kB / 1.003 GB, free: 4.836 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001386/0.3665, allocations: 203 kB / 1.003 GB, free: 4.637 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.428e-05/0.3665, allocations: 43.97 kB / 1.003 GB, free: 4.594 MB / 0.6511 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 (reaToInt.y,intGreThr.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008484/0.3674, allocations: 468.8 kB / 1.004 GB, free: 4.125 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000275/0.3677, allocations: 146.2 kB / 1.004 GB, free: 3.98 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003384/0.3711, allocations: 1.47 MB / 1.005 GB, free: 2.484 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.748e-05/0.3711, allocations: 8 kB / 1.005 GB, free: 2.477 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.055e-06/0.3711, allocations: 0 / 1.005 GB, free: 2.477 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002576/0.3737, allocations: 1.105 MB / 1.006 GB, free: 1.34 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00596/0.3797, allocations: 2.903 MB / 1.009 GB, free: 14.32 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.548e-06/0.3797, allocations: 4 kB / 1.009 GB, free: 14.31 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009606/0.3807, allocations: 212.3 kB / 1.009 GB, free: 14.11 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-05/0.3807, allocations: 12 kB / 1.01 GB, free: 14.09 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.469e-05/0.3808, allocations: 27.92 kB / 1.01 GB, free: 14.07 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.256e-05/0.3808, allocations: 11.94 kB / 1.01 GB, free: 14.05 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.3808, allocations: 7.938 kB / 1.01 GB, free: 14.05 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004617/0.3854, allocations: 2.291 MB / 1.012 GB, free: 11.51 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008362/0.3863, allocations: 366.9 kB / 1.012 GB, free: 11.13 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002407/0.3866, allocations: 31.94 kB / 1.012 GB, free: 11.1 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001226/0.3878, allocations: 159.7 kB / 1.012 GB, free: 10.94 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000182/0.388, allocations: 76.41 kB / 1.012 GB, free: 10.87 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.849e-05/0.3881, allocations: 43.97 kB / 1.012 GB, free: 10.82 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.001593/0.3897, allocations: 0.9322 MB / 1.013 GB, free: 9.895 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.81e-07/0.3897, allocations: 0 / 1.013 GB, free: 9.895 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.002287/0.392, allocations: 0.8029 MB / 1.014 GB, free: 9.09 MB / 0.6667 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 (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.006615/0.3986, allocations: 4.35 MB / 1.018 GB, free: 4.59 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.004696/0.4033, allocations: 1.783 MB / 1.02 GB, free: 2.812 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 2.215e-05/0.4034, allocations: 4.125 kB / 1.02 GB, free: 2.809 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.001602/0.405, allocations: 0.6404 MB / 1.021 GB, free: 2.172 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003589/0.4086, allocations: 0.6561 MB / 1.021 GB, free: 1.523 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009777/0.4184, allocations: 7.397 MB / 1.029 GB, free: 9.828 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001177/0.4196, allocations: 1.308 MB / 1.03 GB, free: 8.492 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.002174/0.4218, allocations: 376.7 kB / 1.03 GB, free: 8.121 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009947/0.4228, allocations: 0.6086 MB / 1.031 GB, free: 7.512 MB / 0.6823 GB Notification: Performance of SimCode: time 2.325e-06/0.4228, allocations: 0 / 1.031 GB, free: 7.512 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5134/0.9362, allocations: 40.19 MB / 1.07 GB, free: 142.6 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001679/0.9364, allocations: 233.6 kB / 1.07 GB, free: 142.4 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.33/4.266, allocations: 5.719 kB / 1.07 GB, free: 142.4 MB / 0.698 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible.fmu > Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe 2>&1)