Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible,fileNamePrefix="Buildings_10_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.00107/0.00107, allocations: 98.19 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.008346/0.008346, allocations: 169 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.349/1.349, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.649/2.649, allocations: 437.8 MB / 0.7121 GB, free: 7 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003177/0.0003177, allocations: 12 kB / 0.8729 GB, free: 3.23 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6526/0.6529, allocations: 153.8 MB / 1.023 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.05541/0.7084, allocations: 61.11 MB / 1.083 GB, free: 2.559 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01673/0.7251, allocations: 13.56 MB / 1.096 GB, free: 4.961 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001461/0.7266, allocations: 51.69 kB / 1.096 GB, free: 4.91 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001898/0.7285, allocations: 0.8043 MB / 1.097 GB, free: 4.102 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.004384/0.7329, allocations: 2.205 MB / 1.099 GB, free: 1.887 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.003032/0.736, allocations: 1.474 MB / 1.1 GB, free: 436 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.004913/0.7409, allocations: 5.477 MB / 1.106 GB, free: 10.93 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001407/0.7423, allocations: 1.179 MB / 1.107 GB, free: 9.727 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00195/0.7443, allocations: 1.365 MB / 1.108 GB, free: 8.355 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001345/0.7456, allocations: 1.237 MB / 1.11 GB, free: 7.113 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0002035/0.7459, allocations: 72 kB / 1.11 GB, free: 7.043 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002426/0.7483, allocations: 1.298 MB / 1.111 GB, free: 5.742 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0003661/0.7487, allocations: 410.3 kB / 1.111 GB, free: 5.34 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0008152/0.7495, allocations: 0.9149 MB / 1.112 GB, free: 4.414 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.002957/0.7525, allocations: 3.014 MB / 1.115 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.7525, allocations: 0 / 1.115 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.593e-06/0.7525, allocations: 0 / 1.115 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.547e-05/0.7525, allocations: 0 / 1.115 GB, free: 1.391 MB / 0.8575 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.003683/0.7562, allocations: 2.026 MB / 1.117 GB, free: 15.31 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/0.7562, allocations: 12.03 kB / 1.117 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002001/0.7565, allocations: 164.8 kB / 1.117 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00131/0.7578, allocations: 350.3 kB / 1.118 GB, free: 14.78 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001995/0.7598, allocations: 1.444 MB / 1.119 GB, free: 13.29 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001629/0.7599, allocations: 157.5 kB / 1.119 GB, free: 13.12 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001703/0.7601, allocations: 108 kB / 1.119 GB, free: 13.01 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002699/0.7628, allocations: 1.496 MB / 1.121 GB, free: 11.43 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.518e-05/0.7629, allocations: 0 / 1.121 GB, free: 11.43 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001166/0.763, allocations: 44 kB / 1.121 GB, free: 11.38 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.974e-05/0.763, allocations: 32 kB / 1.121 GB, free: 11.35 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003145/0.7662, allocations: 1.444 MB / 1.122 GB, free: 9.906 MB / 0.8731 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.00712/0.7733, allocations: 6.663 MB / 1.129 GB, free: 2.793 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002159/0.7755, allocations: 1.227 MB / 1.13 GB, free: 1.488 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001341/0.7768, allocations: 0.6001 MB / 1.13 GB, free: 0.8828 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007886/0.7776, allocations: 1.152 MB / 1.132 GB, free: 15.47 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.194e-05/0.7777, allocations: 47.22 kB / 1.132 GB, free: 15.42 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=77): time 2.074e-06/0.7777, allocations: 0 / 1.132 GB, free: 15.42 MB / 0.8887 GB Notification: Performance of matching and sorting (n=77): time 0.004195/0.7819, allocations: 1.742 MB / 1.133 GB, free: 13.67 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.76e-05/0.782, allocations: 115.5 kB / 1.133 GB, free: 13.53 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001641/0.7836, allocations: 1.389 MB / 1.135 GB, free: 12.13 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 8.232e-05/0.7837, allocations: 45.7 kB / 1.135 GB, free: 12.08 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005433/0.7843, allocations: 0.7202 MB / 1.136 GB, free: 11.35 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002149/0.7845, allocations: 268.1 kB / 1.136 GB, free: 11.09 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001219/0.7846, allocations: 77.67 kB / 1.136 GB, free: 11 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.000116/0.7848, allocations: 338 kB / 1.136 GB, free: 10.67 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001299/0.7861, allocations: 0.5368 MB / 1.137 GB, free: 10.13 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00147/0.7875, allocations: 0.7737 MB / 1.137 GB, free: 9.266 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002648/0.7902, allocations: 1.226 MB / 1.139 GB, free: 7.973 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.021e-06/0.7902, allocations: 4 kB / 1.139 GB, free: 7.969 MB / 0.8887 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.003126/0.7933, allocations: 1.452 MB / 1.14 GB, free: 6.512 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001522/0.7935, allocations: 230.8 kB / 1.14 GB, free: 6.215 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.393e-05/0.7935, allocations: 15.94 kB / 1.14 GB, free: 6.199 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.917e-05/0.7936, allocations: 11.94 kB / 1.14 GB, free: 6.188 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00121/0.7948, allocations: 295.6 kB / 1.141 GB, free: 5.898 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.715e-05/0.7948, allocations: 19.92 kB / 1.141 GB, free: 5.879 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001241/0.796, allocations: 215 kB / 1.141 GB, free: 5.668 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.899e-05/0.7961, allocations: 35.98 kB / 1.141 GB, free: 5.633 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 7.274e-06/0.7962, allocations: 4 kB / 1.141 GB, free: 5.629 MB / 0.8887 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002908/0.7991, allocations: 1.292 MB / 1.142 GB, free: 4.34 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.7991, allocations: 4 kB / 1.142 GB, free: 4.336 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.716e-06/0.7991, allocations: 8 kB / 1.142 GB, free: 4.328 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001186/0.8003, allocations: 300.2 kB / 1.142 GB, free: 4.035 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.638e-06/0.8003, allocations: 11.94 kB / 1.142 GB, free: 4.023 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001169/0.8015, allocations: 211 kB / 1.143 GB, free: 3.816 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.49e-05/0.8016, allocations: 40 kB / 1.143 GB, free: 3.777 MB / 0.8887 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.0006483/0.8022, allocations: 464.7 kB / 1.143 GB, free: 3.312 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002169/0.8024, allocations: 150.1 kB / 1.143 GB, free: 3.164 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003381/0.8058, allocations: 1.572 MB / 1.145 GB, free: 1.559 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.427e-05/0.8059, allocations: 11.98 kB / 1.145 GB, free: 1.547 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.8059, allocations: 0 / 1.145 GB, free: 1.547 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002672/0.8085, allocations: 1.214 MB / 1.146 GB, free: 308 kB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005475/0.814, allocations: 3.188 MB / 1.149 GB, free: 13 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.143e-06/0.8141, allocations: 8.562 kB / 1.149 GB, free: 12.99 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009839/0.815, allocations: 215.7 kB / 1.149 GB, free: 12.78 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.162e-05/0.8151, allocations: 12 kB / 1.149 GB, free: 12.77 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.4e-05/0.8151, allocations: 27.98 kB / 1.149 GB, free: 12.74 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.233e-06/0.8152, allocations: 11.88 kB / 1.149 GB, free: 12.73 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.383e-06/0.8152, allocations: 8 kB / 1.149 GB, free: 12.72 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004467/0.8196, allocations: 2.224 MB / 1.152 GB, free: 10.42 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005967/0.8202, allocations: 406.7 kB / 1.152 GB, free: 10 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002204/0.8205, allocations: 23.98 kB / 1.152 GB, free: 9.98 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001306/0.8218, allocations: 171.7 kB / 1.152 GB, free: 9.812 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001775/0.822, allocations: 80.34 kB / 1.152 GB, free: 9.734 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.599e-05/0.8221, allocations: 39.97 kB / 1.152 GB, free: 9.695 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001381/0.8235, allocations: 1.072 MB / 1.153 GB, free: 8.629 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.51e-07/0.8235, allocations: 0 / 1.153 GB, free: 8.629 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.001862/0.8253, allocations: 0.7838 MB / 1.154 GB, free: 7.844 MB / 0.9044 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.005554/0.8309, allocations: 3.127 MB / 1.157 GB, free: 4.637 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.004515/0.8354, allocations: 1.955 MB / 1.159 GB, free: 2.688 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 7.874e-06/0.8354, allocations: 4 kB / 1.159 GB, free: 2.684 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.001614/0.8371, allocations: 0.6952 MB / 1.16 GB, free: 1.992 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005109/0.8422, allocations: 0.8213 MB / 1.161 GB, free: 1.18 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02627/0.8685, allocations: 14.44 MB / 1.175 GB, free: 2.031 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009139/0.8694, allocations: 1.278 MB / 1.176 GB, free: 0.7266 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.001804/0.8712, allocations: 404.2 kB / 1.176 GB, free: 332 kB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009365/0.8722, allocations: 0.632 MB / 1.177 GB, free: 15.69 MB / 0.9356 GB Notification: Performance of SimCode: time 8.42e-07/0.8722, allocations: 0 / 1.177 GB, free: 15.69 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1137/0.9859, allocations: 46.89 MB / 1.223 GB, free: 1.352 MB / 0.9669 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002604/0.9862, allocations: 247.8 kB / 1.223 GB, free: 1.098 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.093/4.079, allocations: 0 / 1.223 GB, free: 1.098 MB / 0.9669 GB (rm -f Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; mkfifo Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe >> ../files/Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible.fmu > Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe 2>&1)