Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_y.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.Carnot_y,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_HeatPumps_Examples_Carnot_y",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.Carnot_y,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_HeatPumps_Examples_Carnot_y",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.483/1.483, allocations: 252 MB / 267 MB, free: 10.96 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.001122/0.001123, allocations: 179.2 kB / 326.6 MB, free: 2.219 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.039/2.039, allocations: 205.4 MB / 0.5777 GB, free: 20.27 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.001004/0.001004, allocations: 88.25 kB / 0.6823 GB, free: 12.87 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003452/0.0003452, allocations: 10.19 kB / 0.7964 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2493/0.2496, allocations: 106.4 MB / 0.9003 GB, free: 63.8 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_y): time 0.05236/0.302, allocations: 69.43 MB / 0.9681 GB, free: 10.18 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.02053/0.3226, allocations: 14.03 MB / 0.9818 GB, free: 12.12 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003112/0.3258, allocations: 59.62 kB / 0.9819 GB, free: 12.06 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 0.00273/0.3286, allocations: 0.5627 MB / 0.9824 GB, free: 11.5 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 0.007779/0.3364, allocations: 1.966 MB / 0.9843 GB, free: 9.52 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.003927/0.3403, allocations: 0.9479 MB / 0.9853 GB, free: 8.582 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 0.007107/0.3474, allocations: 4.768 MB / 0.9899 GB, free: 3.801 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002511/0.35, allocations: 1.013 MB / 0.9909 GB, free: 2.762 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003561/0.3536, allocations: 1.268 MB / 0.9921 GB, free: 1.488 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002654/0.3563, allocations: 1.085 MB / 0.9932 GB, free: 408 kB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 0.0005698/0.3569, allocations: 56 kB / 0.9933 GB, free: 352 kB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003655/0.3605, allocations: 0.9238 MB / 0.9942 GB, free: 15.42 MB / 0.6511 GB Notification: Performance of NFScalarize.scalarize: time 0.0008018/0.3614, allocations: 266.7 kB / 0.9944 GB, free: 15.16 MB / 0.6511 GB Notification: Performance of NFVerifyModel.verify: time 0.001368/0.3628, allocations: 360.8 kB / 0.9948 GB, free: 14.8 MB / 0.6511 GB Notification: Performance of NFConvertDAE.convert: time 0.004669/0.3674, allocations: 2.069 MB / 0.9968 GB, free: 12.72 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 7.544e-06/0.3675, allocations: 0 / 0.9968 GB, free: 12.72 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.405e-06/0.3675, allocations: 0 / 0.9968 GB, free: 12.72 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 0.0001069/0.3676, allocations: 0 / 0.9968 GB, free: 12.72 MB / 0.6511 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.004625/0.3723, allocations: 1.803 MB / 0.9985 GB, free: 10.86 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.263e-05/0.3723, allocations: 8.031 kB / 0.9985 GB, free: 10.85 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002765/0.3726, allocations: 155.9 kB / 0.9987 GB, free: 10.69 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000823/0.3734, allocations: 233.9 kB / 0.9989 GB, free: 10.46 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002808/0.3763, allocations: 1.431 MB / 1 GB, free: 8.969 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.465e-05/0.3764, allocations: 82 kB / 1 GB, free: 8.891 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00015/0.3765, allocations: 107.9 kB / 1 GB, free: 8.785 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00215/0.3787, allocations: 1.104 MB / 1.002 GB, free: 7.645 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.786e-05/0.3787, allocations: 3.938 kB / 1.002 GB, free: 7.641 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.271e-05/0.3788, allocations: 47.98 kB / 1.002 GB, free: 7.594 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.176e-05/0.3789, allocations: 27.95 kB / 1.002 GB, free: 7.566 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001949/0.3808, allocations: 0.9251 MB / 1.003 GB, free: 6.641 MB / 0.6511 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.006543/0.3874, allocations: 4.896 MB / 1.007 GB, free: 1.457 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001438/0.3888, allocations: 0.6396 MB / 1.008 GB, free: 0.8086 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007396/0.3896, allocations: 366.3 kB / 1.008 GB, free: 460 kB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008096/0.3904, allocations: 0.8277 MB / 1.009 GB, free: 15.44 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.648e-05/0.3905, allocations: 47.08 kB / 1.009 GB, free: 15.38 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=61): time 4.859e-06/0.3905, allocations: 3.984 kB / 1.009 GB, free: 15.38 MB / 0.6667 GB Notification: Performance of matching and sorting (n=61): time 0.007686/0.3982, allocations: 1.888 MB / 1.011 GB, free: 13.46 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.108e-05/0.3983, allocations: 59.97 kB / 1.011 GB, free: 13.39 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001875/0.4002, allocations: 1.202 MB / 1.012 GB, free: 12.17 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 0.0001433/0.4003, allocations: 41.7 kB / 1.012 GB, free: 12.12 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005381/0.4009, allocations: 0.6026 MB / 1.013 GB, free: 11.51 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002232/0.4011, allocations: 212.9 kB / 1.013 GB, free: 11.3 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.435e-05/0.4011, allocations: 12 kB / 1.013 GB, free: 11.29 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001377/0.4013, allocations: 334 kB / 1.013 GB, free: 10.96 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000704/0.402, allocations: 293.8 kB / 1.014 GB, free: 10.67 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008392/0.4028, allocations: 0.5217 MB / 1.014 GB, free: 10.07 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007425/0.4036, allocations: 351 kB / 1.015 GB, free: 9.727 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.672e-06/0.4036, allocations: 7.938 kB / 1.015 GB, free: 9.719 MB / 0.6667 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.004862/0.4085, allocations: 1.402 MB / 1.016 GB, free: 8.305 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001464/0.4087, allocations: 202.2 kB / 1.016 GB, free: 8.055 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.211e-05/0.4087, allocations: 4 kB / 1.016 GB, free: 8.051 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006295/0.4093, allocations: 140.8 kB / 1.016 GB, free: 7.91 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006693/0.41, allocations: 171.7 kB / 1.016 GB, free: 7.742 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008879/0.4109, allocations: 0.7123 MB / 1.017 GB, free: 7.004 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001422/0.4123, allocations: 173.9 kB / 1.017 GB, free: 6.836 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.613e-05/0.4124, allocations: 31.98 kB / 1.017 GB, free: 6.805 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 9.648e-06/0.4124, allocations: 4 kB / 1.017 GB, free: 6.801 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004585/0.417, allocations: 1.261 MB / 1.019 GB, free: 5.535 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.185e-05/0.4171, allocations: 4 kB / 1.019 GB, free: 5.531 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005505/0.4176, allocations: 141.1 kB / 1.019 GB, free: 5.391 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006369/0.4183, allocations: 167.7 kB / 1.019 GB, free: 5.227 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008579/0.4191, allocations: 0.7202 MB / 1.02 GB, free: 4.48 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001522/0.4207, allocations: 167.2 kB / 1.02 GB, free: 4.316 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.299e-05/0.4208, allocations: 31.98 kB / 1.02 GB, free: 4.285 MB / 0.6667 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 10} Notification: Performance of prepare postOptimizeDAE: time 0.0008715/0.4216, allocations: 420.9 kB / 1.02 GB, free: 3.863 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002612/0.4219, allocations: 138.3 kB / 1.02 GB, free: 3.727 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004752/0.4267, allocations: 1.392 MB / 1.022 GB, free: 2.324 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.694e-05/0.4267, allocations: 8 kB / 1.022 GB, free: 2.316 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.744e-06/0.4267, allocations: 0 / 1.022 GB, free: 2.316 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004173/0.4309, allocations: 1.228 MB / 1.023 GB, free: 1.051 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007032/0.438, allocations: 2.719 MB / 1.025 GB, free: 14.21 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-05/0.438, allocations: 11.89 kB / 1.025 GB, free: 14.2 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004959/0.4385, allocations: 119.8 kB / 1.026 GB, free: 14.09 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005058/0.439, allocations: 145.2 kB / 1.026 GB, free: 13.94 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.471e-05/0.4391, allocations: 16 kB / 1.026 GB, free: 13.93 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004755/0.4439, allocations: 2.481 MB / 1.028 GB, free: 11.29 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.068e-05/0.4439, allocations: 4.109 kB / 1.028 GB, free: 11.29 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005617/0.4495, allocations: 1.859 MB / 1.03 GB, free: 9.367 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009252/0.4505, allocations: 327.1 kB / 1.03 GB, free: 9.027 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001451/0.4506, allocations: 16 kB / 1.03 GB, free: 9.012 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009576/0.4516, allocations: 99.81 kB / 1.03 GB, free: 8.914 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001615/0.4518, allocations: 64.25 kB / 1.03 GB, free: 8.852 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.143e-05/0.4519, allocations: 27.98 kB / 1.031 GB, free: 8.824 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.001331/0.4532, allocations: 0.8504 MB / 1.031 GB, free: 7.973 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4532, allocations: 4 kB / 1.031 GB, free: 7.969 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.002029/0.4552, allocations: 0.7057 MB / 1.032 GB, free: 7.262 MB / 0.6823 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.00649/0.4617, allocations: 2.706 MB / 1.035 GB, free: 4.488 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.002703/0.4645, allocations: 1.153 MB / 1.036 GB, free: 3.34 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 8.656e-06/0.4645, allocations: 4 kB / 1.036 GB, free: 3.336 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.001556/0.4661, allocations: 0.6033 MB / 1.036 GB, free: 2.719 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003966/0.47, allocations: 0.7672 MB / 1.037 GB, free: 1.961 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01992/0.49, allocations: 8.336 MB / 1.045 GB, free: 9.234 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000774/0.4908, allocations: 1.172 MB / 1.046 GB, free: 8.035 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.001534/0.4923, allocations: 307 kB / 1.047 GB, free: 7.73 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007038/0.4931, allocations: 0.5032 MB / 1.047 GB, free: 7.227 MB / 0.698 GB Notification: Performance of SimCode: time 1.473e-06/0.4931, allocations: 3.938 kB / 1.047 GB, free: 7.223 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5253/1.018, allocations: 42.17 MB / 1.088 GB, free: 131.6 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001775/1.019, allocations: 259.3 kB / 1.089 GB, free: 131.3 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.451/4.469, allocations: 3.938 kB / 1.089 GB, free: 131.2 MB / 0.698 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_y.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_HeatPumps_Examples_Carnot_y_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_HeatPumps_Examples_Carnot_y.fmu > Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe 2>&1)