Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_Buildings_Fluid_HeatPumps_Examples_Carnot_y",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.Carnot_y,fileNamePrefix="Buildings_latest_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.007657/0.007656, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.002147/0.002147, allocations: 200.6 kB / 16.68 MB, free: 5.934 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.22/1.22, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.4/2.4, allocations: 482.6 MB / 0.755 GB, free: 6.648 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001637/0.001637, allocations: 67.89 kB / 1.083 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2523/0.254, allocations: 162.3 MB / 1.242 GB, free: 8.969 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_y): time 0.06615/0.3202, allocations: 75.34 MB / 1.315 GB, free: 13.38 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.01758/0.3378, allocations: 15.18 MB / 1.33 GB, free: 14.14 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001105/0.3389, allocations: 63.62 kB / 1.33 GB, free: 14.08 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.001518/0.3405, allocations: 0.8268 MB / 1.331 GB, free: 13.25 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.004396/0.3449, allocations: 2.589 MB / 1.334 GB, free: 10.65 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.002459/0.3473, allocations: 1.399 MB / 1.335 GB, free: 9.262 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.003914/0.3513, allocations: 4.389 MB / 1.339 GB, free: 4.859 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0015/0.3528, allocations: 1.445 MB / 1.341 GB, free: 3.375 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002837/0.3556, allocations: 1.838 MB / 1.343 GB, free: 1.539 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001249/0.3569, allocations: 1.198 MB / 1.344 GB, free: 344 kB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 0.0001967/0.3571, allocations: 164 kB / 1.344 GB, free: 180 kB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002061/0.3592, allocations: 1.392 MB / 1.345 GB, free: 14.78 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 0.0003314/0.3595, allocations: 398.6 kB / 1.346 GB, free: 14.39 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 0.0007729/0.3603, allocations: 0.9138 MB / 1.346 GB, free: 13.47 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.002891/0.3632, allocations: 2.873 MB / 1.349 GB, free: 10.59 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.3632, allocations: 0 / 1.349 GB, free: 10.59 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.052e-06/0.3632, allocations: 0 / 1.349 GB, free: 10.59 MB / 1.076 GB Notification: Performance of Transformations before backend: time 1.21e-05/0.3632, allocations: 0 / 1.349 GB, free: 10.59 MB / 1.076 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.003029/0.3662, allocations: 2.143 MB / 1.351 GB, free: 8.375 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.166e-05/0.3663, allocations: 8.031 kB / 1.351 GB, free: 8.367 MB / 1.076 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001594/0.3664, allocations: 148.1 kB / 1.352 GB, free: 8.215 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007019/0.3672, allocations: 239.8 kB / 1.352 GB, free: 7.98 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002126/0.3693, allocations: 1.533 MB / 1.353 GB, free: 6.395 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.863e-05/0.3694, allocations: 74 kB / 1.353 GB, free: 6.32 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001275/0.3695, allocations: 104 kB / 1.353 GB, free: 6.219 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001786/0.3713, allocations: 1.1 MB / 1.354 GB, free: 5.086 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.267e-05/0.3713, allocations: 4 kB / 1.354 GB, free: 5.082 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.162e-05/0.3714, allocations: 36 kB / 1.355 GB, free: 5.047 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.286e-05/0.3714, allocations: 28 kB / 1.355 GB, free: 5.02 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001751/0.3732, allocations: 0.8939 MB / 1.355 GB, free: 4.121 MB / 1.076 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.005113/0.3783, allocations: 4.928 MB / 1.36 GB, free: 14.91 MB / 1.092 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001306/0.3796, allocations: 0.6131 MB / 1.361 GB, free: 14.29 MB / 1.092 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006684/0.3803, allocations: 350.3 kB / 1.361 GB, free: 13.95 MB / 1.092 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005907/0.3809, allocations: 0.8277 MB / 1.362 GB, free: 12.93 MB / 1.092 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.028e-05/0.381, allocations: 43.12 kB / 1.362 GB, free: 12.88 MB / 1.092 GB Notification: Performance of pre-optimization done (n=61): time 1.613e-06/0.381, allocations: 4 kB / 1.362 GB, free: 12.88 MB / 1.092 GB Notification: Performance of matching and sorting (n=61): time 0.006544/0.3875, allocations: 1.698 MB / 1.364 GB, free: 11.15 MB / 1.092 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.586e-05/0.3876, allocations: 55.97 kB / 1.364 GB, free: 11.08 MB / 1.092 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001382/0.3889, allocations: 1.226 MB / 1.365 GB, free: 9.84 MB / 1.092 GB Notification: Performance of collectPreVariables (initialization): time 5.161e-05/0.389, allocations: 41.7 kB / 1.365 GB, free: 9.793 MB / 1.092 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004882/0.3895, allocations: 0.6113 MB / 1.366 GB, free: 9.176 MB / 1.092 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001728/0.3897, allocations: 226 kB / 1.366 GB, free: 8.953 MB / 1.092 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002109/0.3899, allocations: 162.5 kB / 1.366 GB, free: 8.789 MB / 1.092 GB Notification: Performance of setup shared object (initialization): time 0.000128/0.39, allocations: 337.9 kB / 1.366 GB, free: 8.453 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006234/0.3907, allocations: 284.7 kB / 1.367 GB, free: 8.172 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008126/0.3915, allocations: 0.489 MB / 1.367 GB, free: 7.605 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001346/0.3928, allocations: 0.7129 MB / 1.368 GB, free: 6.844 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.3929, allocations: 0 / 1.368 GB, free: 6.844 MB / 1.092 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.004263/0.3971, allocations: 1.278 MB / 1.369 GB, free: 5.555 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/0.3971, allocations: 10.19 kB / 1.369 GB, free: 5.547 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.3972, allocations: 4 kB / 1.369 GB, free: 5.543 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004939/0.3977, allocations: 140.7 kB / 1.369 GB, free: 5.402 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005227/0.3982, allocations: 159.8 kB / 1.369 GB, free: 5.246 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008111/0.399, allocations: 0.7084 MB / 1.37 GB, free: 4.512 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007474/0.3998, allocations: 119.4 kB / 1.37 GB, free: 4.395 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.872e-05/0.3998, allocations: 31.98 kB / 1.37 GB, free: 4.363 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009809/0.4008, allocations: 0.5487 MB / 1.371 GB, free: 3.812 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008015/0.4016, allocations: 0.489 MB / 1.371 GB, free: 3.246 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001337/0.403, allocations: 0.705 MB / 1.372 GB, free: 2.492 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.837e-06/0.403, allocations: 7.938 kB / 1.372 GB, free: 2.484 MB / 1.092 GB Notification: Performance of matching and sorting (n=88) (initialization_lambda0): time 0.004266/0.4073, allocations: 1.266 MB / 1.373 GB, free: 1.207 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 1.011e-05/0.4073, allocations: 12.31 kB / 1.373 GB, free: 1.195 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.4073, allocations: 8 kB / 1.373 GB, free: 1.188 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004399/0.4077, allocations: 140.6 kB / 1.373 GB, free: 1.047 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005281/0.4083, allocations: 155.8 kB / 1.373 GB, free: 0.8945 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007562/0.409, allocations: 0.7045 MB / 1.374 GB, free: 168 kB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007521/0.4098, allocations: 95.59 kB / 1.374 GB, free: 72 kB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.467e-05/0.4099, allocations: 36.05 kB / 1.374 GB, free: 36 kB / 1.092 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.0001817/0.41, allocations: 228 kB / 1.374 GB, free: 15.8 MB / 1.107 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001919/0.4102, allocations: 143.1 kB / 1.374 GB, free: 15.66 MB / 1.107 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004275/0.4145, allocations: 1.264 MB / 1.376 GB, free: 14.39 MB / 1.107 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.184e-05/0.4146, allocations: 11.98 kB / 1.376 GB, free: 14.38 MB / 1.107 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.4146, allocations: 4 kB / 1.376 GB, free: 14.37 MB / 1.107 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003848/0.4184, allocations: 1.103 MB / 1.377 GB, free: 13.23 MB / 1.107 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005707/0.4241, allocations: 2.614 MB / 1.379 GB, free: 10.5 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.484e-06/0.4242, allocations: 7.984 kB / 1.379 GB, free: 10.49 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004126/0.4246, allocations: 111.8 kB / 1.379 GB, free: 10.38 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004134/0.425, allocations: 129.1 kB / 1.38 GB, free: 10.25 MB / 1.107 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.045e-05/0.425, allocations: 27.98 kB / 1.38 GB, free: 10.23 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004686/0.4297, allocations: 2.626 MB / 1.382 GB, free: 7.449 MB / 1.107 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/0.4298, allocations: 7.938 kB / 1.382 GB, free: 7.441 MB / 1.107 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004822/0.4346, allocations: 1.708 MB / 1.384 GB, free: 5.664 MB / 1.107 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003675/0.435, allocations: 315.9 kB / 1.384 GB, free: 5.336 MB / 1.107 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001434/0.4351, allocations: 19.98 kB / 1.384 GB, free: 5.316 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006717/0.4358, allocations: 52.05 kB / 1.384 GB, free: 5.266 MB / 1.107 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001042/0.4359, allocations: 68.23 kB / 1.384 GB, free: 5.199 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.23e-05/0.436, allocations: 27.98 kB / 1.384 GB, free: 5.172 MB / 1.107 GB Notification: Performance of sorting global known variables: time 0.001085/0.437, allocations: 0.8818 MB / 1.385 GB, free: 4.289 MB / 1.107 GB Notification: Performance of sort global known variables: time 1.1e-07/0.437, allocations: 0 / 1.385 GB, free: 4.289 MB / 1.107 GB Notification: Performance of remove unused functions: time 0.001425/0.4385, allocations: 0.729 MB / 1.386 GB, free: 3.559 MB / 1.107 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.005849/0.4443, allocations: 2.594 MB / 1.388 GB, free: 0.8945 MB / 1.107 GB Notification: Performance of simCode: created initialization part: time 0.002261/0.4466, allocations: 1.118 MB / 1.39 GB, free: 15.78 MB / 1.123 GB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.4466, allocations: 0 / 1.39 GB, free: 15.78 MB / 1.123 GB Notification: Performance of simCode: created simulation system equations: time 0.001357/0.448, allocations: 0.5643 MB / 1.39 GB, free: 15.2 MB / 1.123 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002926/0.4509, allocations: 0.7982 MB / 1.391 GB, free: 14.42 MB / 1.123 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01748/0.4684, allocations: 9.856 MB / 1.4 GB, free: 4.262 MB / 1.123 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007306/0.4692, allocations: 1.183 MB / 1.402 GB, free: 3.051 MB / 1.123 GB Notification: Performance of simCode: alias equations: time 0.0008041/0.47, allocations: 307 kB / 1.402 GB, free: 2.746 MB / 1.123 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006245/0.4706, allocations: 0.511 MB / 1.402 GB, free: 2.234 MB / 1.123 GB Notification: Performance of SimCode: time 2.61e-07/0.4706, allocations: 0 / 1.402 GB, free: 2.234 MB / 1.123 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 15.87/16.34, allocations: 42.56 MB / 1.444 GB, free: 8.18 MB / 1.17 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.87/32.21, allocations: 4.531 kB / 1.444 GB, free: 8.176 MB / 1.17 GB (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatPumps_Examples_Carnot_y_fmu --startTime=0 --stopTime=3600 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_HeatPumps_Examples_Carnot_y.fmu > Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe 2>&1)