Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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_8_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible,fileNamePrefix="Buildings_8_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.001483/0.001484, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001631/0.001631, allocations: 196.9 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.319/1.319, allocations: 205.1 MB / 222.4 MB, free: 4.605 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.626/1.626, allocations: 292.3 MB / 0.5489 GB, free: 12.86 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001368/0.001368, allocations: 74.75 kB / 0.6716 GB, free: 26.3 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1977/0.199, allocations: 114.5 MB / 0.7835 GB, free: 13.4 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.06619/0.2653, allocations: 62.63 MB / 0.8446 GB, free: 14.54 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.01874/0.2841, allocations: 13.58 MB / 0.8579 GB, free: 0.9297 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002031/0.2861, allocations: 59.69 kB / 0.8579 GB, free: 0.8711 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.002687/0.2889, allocations: 0.9512 MB / 0.8589 GB, free: 15.91 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.006454/0.2954, allocations: 2.366 MB / 0.8612 GB, free: 13.54 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.004221/0.2996, allocations: 1.626 MB / 0.8628 GB, free: 11.92 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.005397/0.305, allocations: 4.246 MB / 0.8669 GB, free: 7.668 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002375/0.3074, allocations: 1.421 MB / 0.8683 GB, free: 6.207 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003799/0.3112, allocations: 1.636 MB / 0.8699 GB, free: 4.57 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002186/0.3134, allocations: 1.28 MB / 0.8712 GB, free: 3.285 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.0004701/0.3139, allocations: 176 kB / 0.8713 GB, free: 3.113 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003679/0.3176, allocations: 1.439 MB / 0.8727 GB, free: 1.672 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.0009814/0.3186, allocations: 0.4984 MB / 0.8732 GB, free: 1.172 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.002405/0.321, allocations: 0.9992 MB / 0.8742 GB, free: 172 kB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.006705/0.3277, allocations: 3.132 MB / 0.8772 GB, free: 13.03 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 8.206e-06/0.3278, allocations: 4 kB / 0.8773 GB, free: 13.02 MB / 0.7012 GB Notification: Performance of FrontEnd: time 4.048e-06/0.3278, allocations: 4 kB / 0.8773 GB, free: 13.02 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 0.0001073/0.3279, allocations: 0 / 0.8773 GB, free: 13.02 MB / 0.7012 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.005915/0.3338, allocations: 2.325 MB / 0.8795 GB, free: 10.64 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 5.528e-05/0.3339, allocations: 12.03 kB / 0.8795 GB, free: 10.63 MB / 0.7012 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003138/0.3342, allocations: 176.7 kB / 0.8797 GB, free: 10.45 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001573/0.3358, allocations: 314.4 kB / 0.88 GB, free: 10.14 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002851/0.3387, allocations: 1.4 MB / 0.8814 GB, free: 8.684 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002201/0.3389, allocations: 157.5 kB / 0.8815 GB, free: 8.516 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002769/0.3392, allocations: 112 kB / 0.8816 GB, free: 8.406 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003314/0.3425, allocations: 1.434 MB / 0.883 GB, free: 6.883 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.6e-05/0.3426, allocations: 11.88 kB / 0.883 GB, free: 6.871 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000154/0.3428, allocations: 44 kB / 0.8831 GB, free: 6.828 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.997e-05/0.3428, allocations: 32 kB / 0.8831 GB, free: 6.797 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003537/0.3464, allocations: 1.339 MB / 0.8844 GB, free: 5.457 MB / 0.7012 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.009471/0.3559, allocations: 6.663 MB / 0.8909 GB, free: 14.36 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002174/0.358, allocations: 1.166 MB / 0.8921 GB, free: 13.1 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00133/0.3594, allocations: 0.5571 MB / 0.8926 GB, free: 12.54 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000894/0.3603, allocations: 1.152 MB / 0.8937 GB, free: 11.13 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.479e-05/0.3604, allocations: 47.2 kB / 0.8938 GB, free: 11.08 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=77): time 2.845e-06/0.3604, allocations: 4 kB / 0.8938 GB, free: 11.07 MB / 0.7169 GB Notification: Performance of matching and sorting (n=77): time 0.004786/0.3652, allocations: 1.581 MB / 0.8953 GB, free: 9.484 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001189/0.3653, allocations: 115.5 kB / 0.8954 GB, free: 9.348 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003235/0.3686, allocations: 1.404 MB / 0.8968 GB, free: 7.934 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0001511/0.3687, allocations: 41.7 kB / 0.8969 GB, free: 7.887 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006724/0.3694, allocations: 0.7008 MB / 0.8975 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.000306/0.3697, allocations: 264.1 kB / 0.8978 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003454/0.3701, allocations: 182.5 kB / 0.898 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001322/0.3702, allocations: 341.9 kB / 0.8983 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001428/0.3717, allocations: 0.5004 MB / 0.8988 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001529/0.3732, allocations: 0.7191 MB / 0.8995 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00269/0.3759, allocations: 1.129 MB / 0.9006 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.875e-06/0.3759, allocations: 0 / 0.9006 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.003524/0.3795, allocations: 1.351 MB / 0.9019 GB, free: 2.523 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.161e-05/0.3795, allocations: 8 kB / 0.9019 GB, free: 2.516 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.214e-05/0.3795, allocations: 8 kB / 0.9019 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.335e-05/0.3796, allocations: 8 kB / 0.9019 GB, free: 2.5 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001247/0.3808, allocations: 271.6 kB / 0.9022 GB, free: 2.234 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.456e-05/0.3809, allocations: 19.86 kB / 0.9022 GB, free: 2.215 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00129/0.3822, allocations: 154.9 kB / 0.9023 GB, free: 2.062 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001003/0.3823, allocations: 39.98 kB / 0.9024 GB, free: 2.023 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001846/0.3841, allocations: 0.7946 MB / 0.9032 GB, free: 1.223 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001463/0.3856, allocations: 0.7229 MB / 0.9039 GB, free: 420 kB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002614/0.3882, allocations: 1.117 MB / 0.905 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.226e-06/0.3882, allocations: 4 kB / 0.905 GB, free: 15.22 MB / 0.7325 GB Notification: Performance of matching and sorting (n=109) (initialization_lambda0): time 0.003312/0.3916, allocations: 1.343 MB / 0.9063 GB, free: 13.87 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/0.3916, allocations: 10.97 kB / 0.9063 GB, free: 13.86 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.3916, allocations: 4 kB / 0.9063 GB, free: 13.86 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.779e-06/0.3916, allocations: 8 kB / 0.9063 GB, free: 13.85 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001201/0.3928, allocations: 276.2 kB / 0.9066 GB, free: 13.58 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.626e-05/0.3929, allocations: 11.94 kB / 0.9066 GB, free: 13.57 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001253/0.3941, allocations: 151.1 kB / 0.9067 GB, free: 13.42 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.717e-05/0.3942, allocations: 35.92 kB / 0.9067 GB, free: 13.39 MB / 0.7325 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.0003449/0.3946, allocations: 238.9 kB / 0.907 GB, free: 13.15 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004276/0.395, allocations: 146.2 kB / 0.9071 GB, free: 13 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003501/0.3985, allocations: 1.474 MB / 0.9086 GB, free: 11.5 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.495e-05/0.3985, allocations: 8 kB / 0.9086 GB, free: 11.49 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.547e-06/0.3986, allocations: 7.938 kB / 0.9086 GB, free: 11.48 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002608/0.4012, allocations: 1.105 MB / 0.9097 GB, free: 10.35 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00596/0.4071, allocations: 3.097 MB / 0.9127 GB, free: 7.133 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.376e-06/0.4072, allocations: 4 kB / 0.9127 GB, free: 7.129 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009678/0.4081, allocations: 191.7 kB / 0.9129 GB, free: 6.941 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.275e-05/0.4082, allocations: 8.375 kB / 0.9129 GB, free: 6.934 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.699e-05/0.4082, allocations: 27.98 kB / 0.9129 GB, free: 6.906 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.247e-05/0.4083, allocations: 11.88 kB / 0.9129 GB, free: 6.895 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.429e-06/0.4083, allocations: 8 kB / 0.9129 GB, free: 6.887 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004539/0.4128, allocations: 2.064 MB / 0.9149 GB, free: 4.742 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007346/0.4136, allocations: 378.8 kB / 0.9153 GB, free: 4.352 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003495/0.4139, allocations: 20 kB / 0.9153 GB, free: 4.332 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001281/0.4152, allocations: 107.9 kB / 0.9154 GB, free: 4.227 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002059/0.4154, allocations: 84.34 kB / 0.9155 GB, free: 4.145 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001063/0.4156, allocations: 43.97 kB / 0.9155 GB, free: 4.102 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.001789/0.4174, allocations: 1.071 MB / 0.9166 GB, free: 3.035 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.9e-07/0.4174, allocations: 0 / 0.9166 GB, free: 3.035 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.002909/0.4203, allocations: 0.8032 MB / 0.9174 GB, free: 2.23 MB / 0.7325 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.4319/0.8522, allocations: 2.965 MB / 0.9203 GB, free: 134.6 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.005039/0.8572, allocations: 1.874 MB / 0.9221 GB, free: 134.6 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.025e-05/0.8573, allocations: 5.594 kB / 0.9221 GB, free: 134.6 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.001638/0.8589, allocations: 0.6345 MB / 0.9227 GB, free: 134.5 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004148/0.8631, allocations: 0.8426 MB / 0.9235 GB, free: 134.5 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01848/0.8816, allocations: 13.62 MB / 0.9368 GB, free: 127.2 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008279/0.8824, allocations: 1.281 MB / 0.9381 GB, free: 126.5 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001843/0.8843, allocations: 404.6 kB / 0.9385 GB, free: 126.4 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008007/0.8851, allocations: 0.6154 MB / 0.9391 GB, free: 125.9 MB / 0.7325 GB Notification: Performance of SimCode: time 7.81e-07/0.8851, allocations: 0 / 0.9391 GB, free: 125.9 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06684/0.9519, allocations: 46.59 MB / 0.9846 GB, free: 94.46 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.563/9.515, allocations: 0 / 0.9846 GB, free: 94.46 MB / 0.7325 GB (rm -f Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible.fmu > Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe 2>&1)