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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.00156/0.00156, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.0024/0.0024, allocations: 190.4 kB / 16.25 MB, free: 6.648 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.393/1.393, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.557/2.557, allocations: 461.9 MB / 0.7344 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 66.52 kB / 0.8987 GB, free: 37.18 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2528/0.254, allocations: 157.4 MB / 1.052 GB, free: 8.66 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_y): time 0.06031/0.3144, allocations: 74.58 MB / 1.125 GB, free: 13.83 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.01604/0.3304, allocations: 15.05 MB / 1.14 GB, free: 14.74 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001613/0.3321, allocations: 59.62 kB / 1.14 GB, free: 14.68 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.00172/0.3338, allocations: 0.7112 MB / 1.141 GB, free: 13.97 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.005041/0.3389, allocations: 2.411 MB / 1.143 GB, free: 11.55 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.002609/0.3415, allocations: 1.292 MB / 1.144 GB, free: 10.27 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.004288/0.3458, allocations: 4.427 MB / 1.149 GB, free: 5.832 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001678/0.3475, allocations: 1.441 MB / 1.15 GB, free: 4.355 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002935/0.3504, allocations: 1.652 MB / 1.152 GB, free: 2.703 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001516/0.352, allocations: 1.245 MB / 1.153 GB, free: 1.453 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0002646/0.3523, allocations: 164 kB / 1.153 GB, free: 1.293 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002178/0.3544, allocations: 1.419 MB / 1.154 GB, free: 15.87 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0003568/0.3548, allocations: 398.6 kB / 1.155 GB, free: 15.48 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0009243/0.3557, allocations: 0.906 MB / 1.156 GB, free: 14.57 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.002801/0.3585, allocations: 2.84 MB / 1.158 GB, free: 11.72 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3586, allocations: 4 kB / 1.158 GB, free: 11.72 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.072e-06/0.3586, allocations: 0 / 1.158 GB, free: 11.72 MB / 0.92 GB Notification: Performance of Transformations before backend: time 3.823e-05/0.3586, allocations: 0 / 1.158 GB, free: 11.72 MB / 0.92 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.003282/0.3619, allocations: 2.087 MB / 1.16 GB, free: 9.566 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.451e-05/0.3619, allocations: 8.625 kB / 1.16 GB, free: 9.559 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001625/0.3621, allocations: 152.1 kB / 1.161 GB, free: 9.402 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007413/0.3629, allocations: 226.8 kB / 1.161 GB, free: 9.18 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00206/0.3649, allocations: 1.509 MB / 1.162 GB, free: 7.613 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.085e-05/0.365, allocations: 78 kB / 1.162 GB, free: 7.539 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000136/0.3651, allocations: 100 kB / 1.162 GB, free: 7.441 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001784/0.3669, allocations: 1.1 MB / 1.164 GB, free: 6.305 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.344e-05/0.3669, allocations: 0 / 1.164 GB, free: 6.305 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.127e-05/0.367, allocations: 36 kB / 1.164 GB, free: 6.27 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.873e-05/0.3671, allocations: 28 kB / 1.164 GB, free: 6.242 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00168/0.3688, allocations: 0.89 MB / 1.164 GB, free: 5.355 MB / 0.92 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.004949/0.3737, allocations: 4.907 MB / 1.169 GB, free: 164 kB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001272/0.375, allocations: 0.6197 MB / 1.17 GB, free: 15.53 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006289/0.3756, allocations: 348.4 kB / 1.17 GB, free: 15.19 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005294/0.3762, allocations: 0.8277 MB / 1.171 GB, free: 14.18 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.732e-05/0.3762, allocations: 39.12 kB / 1.171 GB, free: 14.13 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=61): time 1.693e-06/0.3762, allocations: 4 kB / 1.171 GB, free: 14.13 MB / 0.9356 GB Notification: Performance of matching and sorting (n=61): time 0.006467/0.3827, allocations: 1.685 MB / 1.173 GB, free: 12.42 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.87e-05/0.3827, allocations: 63.91 kB / 1.173 GB, free: 12.34 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001308/0.3841, allocations: 1.21 MB / 1.174 GB, free: 11.12 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 6.556e-05/0.3841, allocations: 45.64 kB / 1.174 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.000421/0.3846, allocations: 0.6104 MB / 1.175 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001544/0.3847, allocations: 212.9 kB / 1.175 GB, free: 10.24 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00021/0.3849, allocations: 162.5 kB / 1.175 GB, free: 10.07 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 9.343e-05/0.385, allocations: 333.9 kB / 1.175 GB, free: 9.742 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006136/0.3857, allocations: 288.7 kB / 1.176 GB, free: 9.457 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007368/0.3864, allocations: 0.4929 MB / 1.176 GB, free: 8.887 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001243/0.3876, allocations: 0.709 MB / 1.177 GB, free: 8.125 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.3877, allocations: 0 / 1.177 GB, free: 8.125 MB / 0.9356 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.004163/0.3918, allocations: 1.277 MB / 1.178 GB, free: 6.836 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.3919, allocations: 9.719 kB / 1.178 GB, free: 6.828 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.3919, allocations: 4 kB / 1.178 GB, free: 6.824 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004935/0.3924, allocations: 128.9 kB / 1.178 GB, free: 6.695 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005411/0.3929, allocations: 159.8 kB / 1.178 GB, free: 6.539 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007307/0.3937, allocations: 0.7045 MB / 1.179 GB, free: 5.809 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009035/0.3946, allocations: 155.1 kB / 1.179 GB, free: 5.656 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.689e-05/0.3946, allocations: 31.98 kB / 1.179 GB, free: 5.625 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008806/0.3955, allocations: 0.5488 MB / 1.18 GB, free: 5.074 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007191/0.3963, allocations: 0.4928 MB / 1.18 GB, free: 4.504 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001233/0.3975, allocations: 0.7127 MB / 1.181 GB, free: 3.746 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.637e-06/0.3975, allocations: 4 kB / 1.181 GB, free: 3.742 MB / 0.9356 GB Notification: Performance of matching and sorting (n=88) (initialization_lambda0): time 0.004145/0.4017, allocations: 1.261 MB / 1.182 GB, free: 2.469 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 8.747e-06/0.4017, allocations: 8 kB / 1.182 GB, free: 2.461 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.4017, allocations: 8 kB / 1.182 GB, free: 2.453 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000424/0.4021, allocations: 140.8 kB / 1.182 GB, free: 2.312 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005217/0.4026, allocations: 155.8 kB / 1.182 GB, free: 2.16 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006706/0.4033, allocations: 0.7006 MB / 1.183 GB, free: 1.434 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009034/0.4042, allocations: 143.5 kB / 1.183 GB, free: 1.293 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.581e-05/0.4043, allocations: 35.98 kB / 1.183 GB, free: 1.258 MB / 0.9356 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.0001703/0.4045, allocations: 227.9 kB / 1.183 GB, free: 1.027 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001882/0.4047, allocations: 130.4 kB / 1.184 GB, free: 0.8984 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004133/0.4088, allocations: 1.268 MB / 1.185 GB, free: 15.61 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.101e-05/0.4088, allocations: 11.98 kB / 1.185 GB, free: 15.59 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.4088, allocations: 0 / 1.185 GB, free: 15.59 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003701/0.4126, allocations: 1.099 MB / 1.186 GB, free: 14.46 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005587/0.4182, allocations: 2.614 MB / 1.188 GB, free: 11.73 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.4182, allocations: 4 kB / 1.188 GB, free: 11.73 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004334/0.4186, allocations: 107.9 kB / 1.189 GB, free: 11.62 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004121/0.419, allocations: 137 kB / 1.189 GB, free: 11.49 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.431e-05/0.4191, allocations: 20 kB / 1.189 GB, free: 11.47 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004381/0.4235, allocations: 2.634 MB / 1.191 GB, free: 8.684 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.4235, allocations: 4 kB / 1.191 GB, free: 8.68 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004649/0.4281, allocations: 1.703 MB / 1.193 GB, free: 6.902 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003708/0.4285, allocations: 307.1 kB / 1.193 GB, free: 6.582 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001596/0.4287, allocations: 20 kB / 1.193 GB, free: 6.562 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007814/0.4295, allocations: 83.91 kB / 1.193 GB, free: 6.48 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001074/0.4296, allocations: 64.23 kB / 1.193 GB, free: 6.418 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.354e-05/0.4297, allocations: 31.98 kB / 1.193 GB, free: 6.387 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0009781/0.4306, allocations: 0.8701 MB / 1.194 GB, free: 5.516 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.61e-07/0.4307, allocations: 0 / 1.194 GB, free: 5.516 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.001446/0.4321, allocations: 0.7134 MB / 1.195 GB, free: 4.801 MB / 0.9512 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.005597/0.4377, allocations: 2.572 MB / 1.197 GB, free: 2.164 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.002345/0.4401, allocations: 1.16 MB / 1.199 GB, free: 1 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/0.4401, allocations: 4.188 kB / 1.199 GB, free: 0.9961 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.001288/0.4414, allocations: 0.5563 MB / 1.199 GB, free: 440 kB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002911/0.4443, allocations: 0.797 MB / 1.2 GB, free: 15.66 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02086/0.4652, allocations: 10.86 MB / 1.211 GB, free: 4.285 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006385/0.4658, allocations: 1.175 MB / 1.212 GB, free: 3.078 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.000988/0.4668, allocations: 307 kB / 1.212 GB, free: 2.773 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005879/0.4674, allocations: 0.511 MB / 1.212 GB, free: 2.262 MB / 0.9669 GB Notification: Performance of SimCode: time 2.5e-07/0.4674, allocations: 0 / 1.212 GB, free: 2.262 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.852/2.319, allocations: 41.59 MB / 1.253 GB, free: 185.1 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002457/2.32, allocations: 268.2 kB / 1.253 GB, free: 184.7 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.912/6.231, allocations: 6.188 kB / 1.253 GB, free: 184.7 MB / 0.9981 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=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_HeatPumps_Examples_Carnot_y.fmu > Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe 2>&1)