Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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_9_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible,fileNamePrefix="Buildings_9_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.0008609/0.0008609, allocations: 98.11 kB / 15.36 MB, free: 0.7344 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.005739/0.005739, allocations: 169.3 kB / 16.26 MB, free: 6.652 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.356/1.356, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.23/2.23, allocations: 390.9 MB / 0.6664 GB, free: 2.367 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003113/0.0003113, allocations: 8 kB / 0.8161 GB, free: 13.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5775/0.5778, allocations: 142.4 MB / 0.9552 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.05238/0.6303, allocations: 61.1 MB / 1.015 GB, free: 2.051 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.01675/0.647, allocations: 13.55 MB / 1.028 GB, free: 4.469 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002138/0.6492, allocations: 59.56 kB / 1.028 GB, free: 4.41 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.002448/0.6517, allocations: 0.8004 MB / 1.029 GB, free: 3.605 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.005763/0.6575, allocations: 2.213 MB / 1.031 GB, free: 1.383 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.003648/0.6611, allocations: 1.482 MB / 1.033 GB, free: 15.91 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.005707/0.6668, allocations: 5.464 MB / 1.038 GB, free: 10.44 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00179/0.6686, allocations: 1.179 MB / 1.039 GB, free: 9.23 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002507/0.6712, allocations: 1.373 MB / 1.04 GB, free: 7.852 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001792/0.673, allocations: 1.225 MB / 1.042 GB, free: 6.621 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0003096/0.6733, allocations: 79.94 kB / 1.042 GB, free: 6.543 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002719/0.676, allocations: 1.294 MB / 1.043 GB, free: 5.246 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0004878/0.6765, allocations: 410.4 kB / 1.043 GB, free: 4.844 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.001167/0.6777, allocations: 0.9032 MB / 1.044 GB, free: 3.93 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.003243/0.6809, allocations: 3.01 MB / 1.047 GB, free: 0.9102 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/0.681, allocations: 4 kB / 1.047 GB, free: 0.9062 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.493e-06/0.681, allocations: 3.938 kB / 1.047 GB, free: 0.9023 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.51e-05/0.681, allocations: 0 / 1.047 GB, free: 0.9023 MB / 0.795 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.003722/0.6847, allocations: 2.026 MB / 1.049 GB, free: 14.82 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/0.6848, allocations: 12.03 kB / 1.049 GB, free: 14.81 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002164/0.685, allocations: 164.8 kB / 1.049 GB, free: 14.64 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001321/0.6863, allocations: 346.4 kB / 1.05 GB, free: 14.3 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002074/0.6884, allocations: 1.45 MB / 1.051 GB, free: 12.79 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001514/0.6886, allocations: 157.5 kB / 1.051 GB, free: 12.62 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000161/0.6887, allocations: 108 kB / 1.051 GB, free: 12.52 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002713/0.6915, allocations: 1.492 MB / 1.053 GB, free: 10.94 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.755e-05/0.6915, allocations: 3.938 kB / 1.053 GB, free: 10.93 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001169/0.6916, allocations: 44 kB / 1.053 GB, free: 10.89 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.922e-05/0.6917, allocations: 35.94 kB / 1.053 GB, free: 10.86 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003194/0.6949, allocations: 1.444 MB / 1.054 GB, free: 9.406 MB / 0.8106 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.007223/0.7021, allocations: 6.659 MB / 1.061 GB, free: 2.297 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002119/0.7042, allocations: 1.223 MB / 1.062 GB, free: 0.9961 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001325/0.7056, allocations: 0.6079 MB / 1.062 GB, free: 392 kB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007286/0.7063, allocations: 1.149 MB / 1.064 GB, free: 14.97 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.411e-05/0.7064, allocations: 47.2 kB / 1.064 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=77): time 3.626e-06/0.7064, allocations: 0 / 1.064 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of matching and sorting (n=77): time 0.004163/0.7105, allocations: 1.737 MB / 1.065 GB, free: 13.18 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.293e-05/0.7106, allocations: 115.5 kB / 1.065 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001658/0.7123, allocations: 1.393 MB / 1.067 GB, free: 11.63 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 9.493e-05/0.7124, allocations: 45.7 kB / 1.067 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005096/0.7129, allocations: 0.7202 MB / 1.068 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002268/0.7131, allocations: 260.2 kB / 1.068 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000117/0.7133, allocations: 77.67 kB / 1.068 GB, free: 10.51 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001058/0.7134, allocations: 342 kB / 1.068 GB, free: 10.17 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001284/0.7147, allocations: 0.5329 MB / 1.069 GB, free: 9.637 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001466/0.7161, allocations: 0.7737 MB / 1.069 GB, free: 8.773 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002641/0.7188, allocations: 1.23 MB / 1.071 GB, free: 7.48 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.027e-06/0.7188, allocations: 0 / 1.071 GB, free: 7.48 MB / 0.8262 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.003264/0.7221, allocations: 1.456 MB / 1.072 GB, free: 6.016 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001368/0.7222, allocations: 232.8 kB / 1.072 GB, free: 5.719 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.373e-05/0.7223, allocations: 8 kB / 1.072 GB, free: 5.711 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.971e-05/0.7223, allocations: 8 kB / 1.072 GB, free: 5.703 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00123/0.7235, allocations: 295.6 kB / 1.073 GB, free: 5.414 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.4e-05/0.7235, allocations: 8 kB / 1.073 GB, free: 5.406 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001375/0.7249, allocations: 223 kB / 1.073 GB, free: 5.188 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.346e-05/0.725, allocations: 39.98 kB / 1.073 GB, free: 5.148 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 9.658e-06/0.725, allocations: 9.344 kB / 1.073 GB, free: 5.141 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002907/0.7279, allocations: 1.28 MB / 1.074 GB, free: 3.859 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.728, allocations: 4 kB / 1.074 GB, free: 3.855 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.045e-05/0.728, allocations: 12.56 kB / 1.074 GB, free: 3.844 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001177/0.7292, allocations: 299.6 kB / 1.074 GB, free: 3.551 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.104e-05/0.7292, allocations: 11.94 kB / 1.074 GB, free: 3.539 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001288/0.7305, allocations: 215 kB / 1.075 GB, free: 3.328 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.272e-05/0.7306, allocations: 39.98 kB / 1.075 GB, free: 3.289 MB / 0.8262 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.000692/0.7313, allocations: 468.7 kB / 1.075 GB, free: 2.82 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002196/0.7315, allocations: 150.1 kB / 1.075 GB, free: 2.672 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003265/0.7348, allocations: 1.572 MB / 1.077 GB, free: 1.07 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.225e-05/0.7348, allocations: 8 kB / 1.077 GB, free: 1.062 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.812e-06/0.7348, allocations: 7.938 kB / 1.077 GB, free: 1.055 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002629/0.7374, allocations: 1.203 MB / 1.078 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005502/0.7429, allocations: 3.196 MB / 1.081 GB, free: 12.5 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.203e-06/0.743, allocations: 4 kB / 1.081 GB, free: 12.5 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000973/0.7439, allocations: 215.7 kB / 1.081 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.628e-06/0.744, allocations: 8 kB / 1.081 GB, free: 12.28 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.188e-05/0.744, allocations: 27.98 kB / 1.081 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.065e-06/0.7441, allocations: 7.938 kB / 1.081 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.973e-06/0.7441, allocations: 11.94 kB / 1.081 GB, free: 12.23 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004464/0.7485, allocations: 2.208 MB / 1.084 GB, free: 9.949 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006862/0.7492, allocations: 414.6 kB / 1.084 GB, free: 9.523 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002185/0.7495, allocations: 20 kB / 1.084 GB, free: 9.504 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001315/0.7508, allocations: 179.6 kB / 1.084 GB, free: 9.328 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001715/0.751, allocations: 84.33 kB / 1.084 GB, free: 9.246 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.267e-05/0.7511, allocations: 39.97 kB / 1.084 GB, free: 9.207 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.00139/0.7524, allocations: 1.068 MB / 1.085 GB, free: 8.145 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.094e-06/0.7525, allocations: 0 / 1.085 GB, free: 8.145 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001794/0.7543, allocations: 0.7916 MB / 1.086 GB, free: 7.352 MB / 0.8419 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.005424/0.7597, allocations: 3.119 MB / 1.089 GB, free: 4.156 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.004468/0.7642, allocations: 1.951 MB / 1.091 GB, free: 2.207 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 8.345e-06/0.7642, allocations: 4 kB / 1.091 GB, free: 2.203 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001589/0.7658, allocations: 0.6913 MB / 1.092 GB, free: 1.512 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004795/0.7706, allocations: 0.8196 MB / 1.093 GB, free: 0.7031 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02436/0.795, allocations: 14.44 MB / 1.107 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007621/0.7958, allocations: 1.274 MB / 1.108 GB, free: 252 kB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.001699/0.7975, allocations: 407.1 kB / 1.108 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008791/0.7984, allocations: 0.6242 MB / 1.109 GB, free: 15.22 MB / 0.8731 GB Notification: Performance of SimCode: time 7.11e-07/0.7984, allocations: 0 / 1.109 GB, free: 15.22 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07045/0.8688, allocations: 46.88 MB / 1.155 GB, free: 0.8906 MB / 0.9044 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002081/0.8691, allocations: 242.4 kB / 1.155 GB, free: 0.6406 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.957/3.826, allocations: 5.438 kB / 1.155 GB, free: 0.6367 MB / 0.9044 GB (rm -f Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible.fmu > Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe 2>&1)