Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_y.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.Carnot_y,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatPumps_Examples_Carnot_y",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.Carnot_y,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatPumps_Examples_Carnot_y",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.001313/0.001313, allocations: 98.27 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.009558/0.009558, allocations: 170.6 kB / 16.27 MB, free: 6.66 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.449/1.449, allocations: 223.3 MB / 240.3 MB, free: 5.344 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.302/2.302, allocations: 390.9 MB / 0.6664 GB, free: 2.348 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003614/0.0003617, allocations: 11.98 kB / 0.8161 GB, free: 13.12 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5657/0.5661, allocations: 142.4 MB / 0.9552 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_y): time 0.06667/0.6328, allocations: 73.46 MB / 1.027 GB, free: 5.617 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.01844/0.6513, allocations: 15.04 MB / 1.042 GB, free: 6.547 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002056/0.6534, allocations: 59.56 kB / 1.042 GB, free: 6.488 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.001976/0.6554, allocations: 0.676 MB / 1.042 GB, free: 5.809 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.005819/0.6612, allocations: 2.388 MB / 1.045 GB, free: 3.41 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.002927/0.6642, allocations: 1.27 MB / 1.046 GB, free: 2.152 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.006599/0.6708, allocations: 5.568 MB / 1.051 GB, free: 12.57 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002037/0.6728, allocations: 1.163 MB / 1.052 GB, free: 11.37 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002601/0.6754, allocations: 1.322 MB / 1.054 GB, free: 10.04 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001746/0.6772, allocations: 1.155 MB / 1.055 GB, free: 8.883 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0002263/0.6774, allocations: 56 kB / 1.055 GB, free: 8.828 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00254/0.68, allocations: 1.239 MB / 1.056 GB, free: 7.586 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0003375/0.6803, allocations: 286.7 kB / 1.056 GB, free: 7.305 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0009752/0.6813, allocations: 0.8022 MB / 1.057 GB, free: 6.492 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.003183/0.6845, allocations: 2.722 MB / 1.06 GB, free: 3.762 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.6845, allocations: 0 / 1.06 GB, free: 3.762 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.613e-06/0.6845, allocations: 7.938 kB / 1.06 GB, free: 3.754 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.729e-05/0.6845, allocations: 0 / 1.06 GB, free: 3.754 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 240 * Number of variables: 240 Notification: Performance of Generate backend data structure: time 0.003013/0.6876, allocations: 1.787 MB / 1.062 GB, free: 1.902 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.6876, allocations: 12.03 kB / 1.062 GB, free: 1.891 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001621/0.6878, allocations: 148.1 kB / 1.062 GB, free: 1.738 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007308/0.6885, allocations: 238.8 kB / 1.062 GB, free: 1.504 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002147/0.6907, allocations: 1.497 MB / 1.063 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.882e-05/0.6907, allocations: 78 kB / 1.064 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001457/0.6909, allocations: 104 kB / 1.064 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001901/0.6928, allocations: 1.112 MB / 1.065 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.338e-05/0.6928, allocations: 4 kB / 1.065 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.901e-05/0.6929, allocations: 40 kB / 1.065 GB, free: 14.58 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.02e-05/0.693, allocations: 28 kB / 1.065 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001889/0.6949, allocations: 0.9329 MB / 1.066 GB, free: 13.62 MB / 0.8262 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.005161/0.7, allocations: 4.923 MB / 1.07 GB, free: 8.41 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001406/0.7015, allocations: 0.6392 MB / 1.071 GB, free: 7.766 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007357/0.7022, allocations: 366.3 kB / 1.071 GB, free: 7.406 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005773/0.7028, allocations: 0.8238 MB / 1.072 GB, free: 6.395 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.942e-05/0.7028, allocations: 43.06 kB / 1.072 GB, free: 6.344 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=61): time 2.074e-06/0.7028, allocations: 4 kB / 1.072 GB, free: 6.34 MB / 0.8262 GB Notification: Performance of matching and sorting (n=61): time 0.007612/0.7105, allocations: 1.896 MB / 1.074 GB, free: 4.414 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.746e-05/0.7105, allocations: 59.97 kB / 1.074 GB, free: 4.344 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001441/0.712, allocations: 1.21 MB / 1.075 GB, free: 3.117 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 6.318e-05/0.712, allocations: 41.69 kB / 1.075 GB, free: 3.07 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004609/0.7125, allocations: 0.6065 MB / 1.076 GB, free: 2.457 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001644/0.7127, allocations: 212.9 kB / 1.076 GB, free: 2.246 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.645e-05/0.7128, allocations: 65.67 kB / 1.076 GB, free: 2.176 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001005/0.7129, allocations: 337.9 kB / 1.077 GB, free: 1.84 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006976/0.7136, allocations: 309.8 kB / 1.077 GB, free: 1.539 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008301/0.7144, allocations: 0.5072 MB / 1.077 GB, free: 0.957 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00144/0.7159, allocations: 0.7519 MB / 1.078 GB, free: 156 kB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.618e-06/0.7159, allocations: 4 kB / 1.078 GB, free: 152 kB / 0.8262 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.004951/0.7208, allocations: 1.398 MB / 1.08 GB, free: 14.74 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001047/0.7209, allocations: 206.2 kB / 1.08 GB, free: 14.48 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.816e-06/0.721, allocations: 4 kB / 1.08 GB, free: 14.48 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005702/0.7215, allocations: 148.6 kB / 1.08 GB, free: 14.33 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006021/0.7222, allocations: 163.8 kB / 1.08 GB, free: 14.17 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000821/0.723, allocations: 0.7201 MB / 1.081 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001051/0.724, allocations: 163.1 kB / 1.081 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.216e-05/0.7241, allocations: 31.98 kB / 1.081 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 7.083e-06/0.7241, allocations: 5.562 kB / 1.081 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004738/0.7289, allocations: 1.261 MB / 1.082 GB, free: 11.96 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.7289, allocations: 7.938 kB / 1.082 GB, free: 11.96 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000481/0.7294, allocations: 149 kB / 1.082 GB, free: 11.81 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005791/0.73, allocations: 163.8 kB / 1.082 GB, free: 11.65 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007812/0.7308, allocations: 0.7162 MB / 1.083 GB, free: 10.91 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009755/0.7318, allocations: 159.2 kB / 1.083 GB, free: 10.75 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.823e-05/0.7318, allocations: 31.98 kB / 1.083 GB, free: 10.72 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0004929/0.7323, allocations: 433.3 kB / 1.084 GB, free: 10.29 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001703/0.7325, allocations: 130.4 kB / 1.084 GB, free: 10.16 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004908/0.7374, allocations: 1.404 MB / 1.085 GB, free: 8.738 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.508e-05/0.7374, allocations: 12 kB / 1.085 GB, free: 8.727 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.7375, allocations: 0 / 1.085 GB, free: 8.727 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004459/0.7419, allocations: 1.244 MB / 1.086 GB, free: 7.449 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006474/0.7484, allocations: 2.742 MB / 1.089 GB, free: 4.594 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.653e-06/0.7484, allocations: 4 kB / 1.089 GB, free: 4.59 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000485/0.7489, allocations: 120.3 kB / 1.089 GB, free: 4.473 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004863/0.7494, allocations: 144.7 kB / 1.089 GB, free: 4.328 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.261e-05/0.7495, allocations: 16 kB / 1.089 GB, free: 4.312 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004796/0.7543, allocations: 2.474 MB / 1.092 GB, free: 1.688 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/0.7543, allocations: 4 kB / 1.092 GB, free: 1.684 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005578/0.7599, allocations: 1.852 MB / 1.094 GB, free: 15.76 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004969/0.7604, allocations: 339 kB / 1.094 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001777/0.7606, allocations: 16 kB / 1.094 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009245/0.7615, allocations: 87.97 kB / 1.094 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001173/0.7616, allocations: 64.23 kB / 1.094 GB, free: 15.25 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.952e-05/0.7617, allocations: 35.98 kB / 1.094 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.001162/0.7629, allocations: 0.874 MB / 1.095 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7629, allocations: 0 / 1.095 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.001727/0.7646, allocations: 0.7175 MB / 1.096 GB, free: 13.62 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (heaPum.con.vol.dynBal.U,heaPum.eva.vol.dynBal.U) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00648/0.7711, allocations: 2.729 MB / 1.098 GB, free: 10.81 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.002566/0.7737, allocations: 1.168 MB / 1.1 GB, free: 9.652 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 4.94e-06/0.7737, allocations: 7.938 kB / 1.1 GB, free: 9.645 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0015/0.7752, allocations: 0.5956 MB / 1.1 GB, free: 9.039 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004078/0.7793, allocations: 0.7946 MB / 1.101 GB, free: 8.262 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.024/0.8033, allocations: 11.23 MB / 1.112 GB, free: 12.52 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007142/0.804, allocations: 1.179 MB / 1.113 GB, free: 11.31 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.00121/0.8053, allocations: 311 kB / 1.113 GB, free: 11 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000699/0.806, allocations: 0.5188 MB / 1.114 GB, free: 10.48 MB / 0.8731 GB Notification: Performance of SimCode: time 6.71e-07/0.806, allocations: 0 / 1.114 GB, free: 10.48 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06412/0.8701, allocations: 42.49 MB / 1.155 GB, free: 0.5234 MB / 0.9044 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002028/0.8703, allocations: 267.2 kB / 1.156 GB, free: 172 kB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.762/3.632, allocations: 4 kB / 1.156 GB, free: 168 kB / 0.9044 GB (rm -f Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_y.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_y_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatPumps_Examples_Carnot_y_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatPumps_Examples_Carnot_y.fmu > Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe 2>&1)