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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001145/0.001145, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002139/0.002139, allocations: 198.5 kB / 16.54 MB, free: 6.672 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.461/1.461, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.383/2.383, allocations: 390.2 MB / 0.6647 GB, free: 240 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001376/0.001376, allocations: 67.89 kB / 0.8126 GB, free: 14.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5443/0.5457, allocations: 140.4 MB / 0.9497 GB, free: 9.203 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_y): time 0.07187/0.6176, allocations: 75.19 MB / 1.023 GB, free: 6.383 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.01954/0.6372, allocations: 15.17 MB / 1.038 GB, free: 7.176 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002494/0.6398, allocations: 67.56 kB / 1.038 GB, free: 7.109 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.001925/0.6417, allocations: 0.8228 MB / 1.039 GB, free: 6.281 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.006283/0.648, allocations: 2.6 MB / 1.041 GB, free: 3.672 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.002986/0.651, allocations: 1.375 MB / 1.043 GB, free: 2.309 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.004706/0.6557, allocations: 4.404 MB / 1.047 GB, free: 13.89 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00166/0.6574, allocations: 1.445 MB / 1.048 GB, free: 12.41 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002804/0.6602, allocations: 1.631 MB / 1.05 GB, free: 10.78 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001379/0.6616, allocations: 1.21 MB / 1.051 GB, free: 9.566 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0002135/0.6619, allocations: 168 kB / 1.051 GB, free: 9.402 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002525/0.6644, allocations: 1.404 MB / 1.053 GB, free: 7.996 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0003262/0.6647, allocations: 402.6 kB / 1.053 GB, free: 7.602 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0008058/0.6655, allocations: 0.9099 MB / 1.054 GB, free: 6.688 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.00301/0.6686, allocations: 2.824 MB / 1.057 GB, free: 3.855 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.6686, allocations: 4 kB / 1.057 GB, free: 3.852 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.232e-06/0.6686, allocations: 0 / 1.057 GB, free: 3.852 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.695e-05/0.6686, allocations: 0 / 1.057 GB, free: 3.852 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.003431/0.672, allocations: 2.087 MB / 1.059 GB, free: 1.699 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/0.6721, allocations: 12.03 kB / 1.059 GB, free: 1.688 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001719/0.6723, allocations: 148.1 kB / 1.059 GB, free: 1.535 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008191/0.6731, allocations: 230.8 kB / 1.059 GB, free: 1.309 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002214/0.6753, allocations: 1.461 MB / 1.061 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.517e-05/0.6754, allocations: 78 kB / 1.061 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001403/0.6755, allocations: 100 kB / 1.061 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001917/0.6775, allocations: 1.096 MB / 1.062 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.682e-05/0.6775, allocations: 4 kB / 1.062 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.233e-05/0.6776, allocations: 43.97 kB / 1.062 GB, free: 14.44 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.768e-05/0.6776, allocations: 31.94 kB / 1.062 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001904/0.6796, allocations: 0.8861 MB / 1.063 GB, free: 13.52 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.005645/0.6852, allocations: 4.95 MB / 1.068 GB, free: 8.281 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001453/0.6867, allocations: 0.6127 MB / 1.068 GB, free: 7.66 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007278/0.6874, allocations: 346.3 kB / 1.069 GB, free: 7.32 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006426/0.6881, allocations: 0.8238 MB / 1.069 GB, free: 6.312 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.772e-05/0.6881, allocations: 43.06 kB / 1.069 GB, free: 6.262 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=61): time 2.815e-06/0.6881, allocations: 0 / 1.069 GB, free: 6.262 MB / 0.8262 GB Notification: Performance of matching and sorting (n=61): time 0.007418/0.6956, allocations: 1.701 MB / 1.071 GB, free: 4.531 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.389e-05/0.6956, allocations: 59.97 kB / 1.071 GB, free: 4.461 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001555/0.6972, allocations: 1.23 MB / 1.072 GB, free: 3.215 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 7.109e-05/0.6973, allocations: 45.7 kB / 1.072 GB, free: 3.164 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004745/0.6977, allocations: 0.6026 MB / 1.073 GB, free: 2.555 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001741/0.6979, allocations: 209 kB / 1.073 GB, free: 2.348 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002232/0.6981, allocations: 150.6 kB / 1.073 GB, free: 2.191 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001131/0.6983, allocations: 341.9 kB / 1.074 GB, free: 1.852 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006643/0.6989, allocations: 288.7 kB / 1.074 GB, free: 1.566 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008426/0.6998, allocations: 0.489 MB / 1.074 GB, free: 0.9961 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0014/0.7012, allocations: 0.7129 MB / 1.075 GB, free: 240 kB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.7012, allocations: 4 kB / 1.075 GB, free: 236 kB / 0.8262 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.004795/0.706, allocations: 1.273 MB / 1.076 GB, free: 14.95 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/0.706, allocations: 4.375 kB / 1.076 GB, free: 14.94 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/0.7061, allocations: 8 kB / 1.076 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005629/0.7066, allocations: 136.7 kB / 1.076 GB, free: 14.8 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006132/0.7073, allocations: 151.8 kB / 1.077 GB, free: 14.65 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008519/0.7081, allocations: 0.7123 MB / 1.077 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009878/0.7091, allocations: 127 kB / 1.077 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.478e-05/0.7092, allocations: 31.97 kB / 1.077 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001069/0.7103, allocations: 0.5488 MB / 1.078 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008268/0.7111, allocations: 0.4929 MB / 1.078 GB, free: 12.63 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001411/0.7125, allocations: 0.7051 MB / 1.079 GB, free: 11.88 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.454e-06/0.7125, allocations: 0 / 1.079 GB, free: 11.88 MB / 0.8419 GB Notification: Performance of matching and sorting (n=88) (initialization_lambda0): time 0.004789/0.7173, allocations: 1.269 MB / 1.08 GB, free: 10.6 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/0.7174, allocations: 10.5 kB / 1.08 GB, free: 10.59 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.7174, allocations: 8 kB / 1.08 GB, free: 10.58 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000481/0.7179, allocations: 140.7 kB / 1.081 GB, free: 10.44 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005779/0.7185, allocations: 155.8 kB / 1.081 GB, free: 10.29 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008293/0.7193, allocations: 0.7045 MB / 1.081 GB, free: 9.559 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001015/0.7203, allocations: 103.5 kB / 1.081 GB, free: 9.457 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.181e-05/0.7204, allocations: 35.98 kB / 1.082 GB, free: 9.422 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.0002309/0.7206, allocations: 224.6 kB / 1.082 GB, free: 9.195 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002204/0.7209, allocations: 134.4 kB / 1.082 GB, free: 9.062 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004806/0.7257, allocations: 1.263 MB / 1.083 GB, free: 7.773 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-05/0.7257, allocations: 11.98 kB / 1.083 GB, free: 7.762 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.7257, allocations: 0 / 1.083 GB, free: 7.762 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004439/0.7302, allocations: 1.111 MB / 1.084 GB, free: 6.617 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006976/0.7372, allocations: 2.622 MB / 1.087 GB, free: 3.887 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.566e-06/0.7372, allocations: 12.09 kB / 1.087 GB, free: 3.875 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004639/0.7377, allocations: 107.9 kB / 1.087 GB, free: 3.77 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004747/0.7382, allocations: 128.8 kB / 1.087 GB, free: 3.641 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.401e-05/0.7382, allocations: 19.98 kB / 1.087 GB, free: 3.621 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005097/0.7433, allocations: 2.633 MB / 1.09 GB, free: 0.8359 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.7433, allocations: 4 kB / 1.09 GB, free: 0.832 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005378/0.7487, allocations: 1.703 MB / 1.091 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004725/0.7492, allocations: 303.3 kB / 1.092 GB, free: 14.74 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001718/0.7494, allocations: 20 kB / 1.092 GB, free: 14.72 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007884/0.7502, allocations: 51.92 kB / 1.092 GB, free: 14.67 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001149/0.7503, allocations: 60.25 kB / 1.092 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.626e-05/0.7504, allocations: 31.98 kB / 1.092 GB, free: 14.58 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.00116/0.7515, allocations: 0.8857 MB / 1.093 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7515, allocations: 0 / 1.093 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.001682/0.7532, allocations: 0.7213 MB / 1.093 GB, free: 12.97 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.006222/0.7595, allocations: 2.591 MB / 1.096 GB, free: 10.31 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.002715/0.7622, allocations: 1.156 MB / 1.097 GB, free: 9.156 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.7622, allocations: 0 / 1.097 GB, free: 9.156 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.001481/0.7637, allocations: 0.5643 MB / 1.097 GB, free: 8.582 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003387/0.7671, allocations: 0.8106 MB / 1.098 GB, free: 7.801 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01999/0.7871, allocations: 10.49 MB / 1.108 GB, free: 12.8 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007447/0.7879, allocations: 1.179 MB / 1.11 GB, free: 11.59 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.001228/0.7891, allocations: 307 kB / 1.11 GB, free: 11.29 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006478/0.7898, allocations: 0.5149 MB / 1.11 GB, free: 10.77 MB / 0.8731 GB Notification: Performance of SimCode: time 5.11e-07/0.7898, allocations: 0 / 1.11 GB, free: 10.77 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07078/0.8606, allocations: 42.35 MB / 1.152 GB, free: 0.9219 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.58/15.44, allocations: 10.41 kB / 1.152 GB, free: 0.9141 MB / 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)