Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_Buildings_Fluid_HeatPumps_Examples_Carnot_y",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.Carnot_y,fileNamePrefix="Buildings_10_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.0007974/0.0007971, allocations: 98.03 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.004404/0.004404, allocations: 168.9 kB / 16.26 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.33/1.33, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.548/2.548, allocations: 437.8 MB / 0.7121 GB, free: 7.004 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000382/0.000382, allocations: 11.94 kB / 0.8729 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7585/0.7589, allocations: 153.8 MB / 1.023 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_y): time 0.07085/0.8298, allocations: 73.47 MB / 1.095 GB, free: 6.164 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.02073/0.8506, allocations: 15.06 MB / 1.11 GB, free: 7.066 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002714/0.8533, allocations: 59.56 kB / 1.11 GB, free: 7.008 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.002366/0.8557, allocations: 0.676 MB / 1.11 GB, free: 6.328 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.008707/0.8644, allocations: 2.372 MB / 1.113 GB, free: 3.945 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.004908/0.8694, allocations: 1.277 MB / 1.114 GB, free: 2.68 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.008232/0.8776, allocations: 5.564 MB / 1.119 GB, free: 13.1 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002713/0.8804, allocations: 1.159 MB / 1.12 GB, free: 11.91 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003728/0.8841, allocations: 1.318 MB / 1.122 GB, free: 10.58 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002246/0.8864, allocations: 1.143 MB / 1.123 GB, free: 9.434 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0004989/0.8869, allocations: 56 kB / 1.123 GB, free: 9.379 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003234/0.8901, allocations: 1.247 MB / 1.124 GB, free: 8.129 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0005086/0.8907, allocations: 282.7 kB / 1.124 GB, free: 7.852 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.001454/0.8921, allocations: 0.8022 MB / 1.125 GB, free: 7.039 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.004431/0.8966, allocations: 2.726 MB / 1.128 GB, free: 4.305 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.8966, allocations: 0 / 1.128 GB, free: 4.305 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.903e-06/0.8966, allocations: 0 / 1.128 GB, free: 4.305 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 7.428e-05/0.8967, allocations: 0 / 1.128 GB, free: 4.305 MB / 0.8731 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.004477/0.9012, allocations: 1.772 MB / 1.13 GB, free: 2.469 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.894e-05/0.9012, allocations: 8.031 kB / 1.13 GB, free: 2.461 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000288/0.9015, allocations: 148.1 kB / 1.13 GB, free: 2.309 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009343/0.9025, allocations: 246.8 kB / 1.13 GB, free: 2.066 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002851/0.9053, allocations: 1.489 MB / 1.131 GB, free: 0.5195 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.118e-05/0.9054, allocations: 74 kB / 1.131 GB, free: 460 kB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001783/0.9056, allocations: 104 kB / 1.132 GB, free: 356 kB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002233/0.9079, allocations: 1.124 MB / 1.133 GB, free: 15.18 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.976e-05/0.9079, allocations: 3.906 kB / 1.133 GB, free: 15.18 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001071/0.908, allocations: 44 kB / 1.133 GB, free: 15.14 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.686e-05/0.9081, allocations: 24 kB / 1.133 GB, free: 15.11 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002187/0.9103, allocations: 0.9329 MB / 1.134 GB, free: 14.18 MB / 0.8887 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.00664/0.9169, allocations: 4.915 MB / 1.138 GB, free: 8.984 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001532/0.9185, allocations: 0.6443 MB / 1.139 GB, free: 8.336 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007833/0.9193, allocations: 374.3 kB / 1.139 GB, free: 7.969 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006738/0.9199, allocations: 0.8277 MB / 1.14 GB, free: 6.953 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.489e-05/0.92, allocations: 43.06 kB / 1.14 GB, free: 6.902 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=61): time 2.564e-06/0.92, allocations: 0 / 1.14 GB, free: 6.902 MB / 0.8887 GB Notification: Performance of matching and sorting (n=61): time 0.008068/0.9281, allocations: 1.892 MB / 1.142 GB, free: 4.98 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.631e-05/0.9282, allocations: 55.97 kB / 1.142 GB, free: 4.914 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002467/0.9307, allocations: 1.218 MB / 1.143 GB, free: 3.68 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0001504/0.9309, allocations: 37.7 kB / 1.143 GB, free: 3.637 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005954/0.9315, allocations: 0.6143 MB / 1.144 GB, free: 3.016 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002621/0.9317, allocations: 208.9 kB / 1.144 GB, free: 2.809 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000104/0.9318, allocations: 65.69 kB / 1.144 GB, free: 2.738 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001388/0.932, allocations: 337.9 kB / 1.145 GB, free: 2.402 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007533/0.9327, allocations: 305.8 kB / 1.145 GB, free: 2.105 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009141/0.9337, allocations: 0.5047 MB / 1.145 GB, free: 1.516 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001576/0.9353, allocations: 0.7519 MB / 1.146 GB, free: 0.7109 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.993e-06/0.9353, allocations: 4 kB / 1.146 GB, free: 0.707 MB / 0.8887 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.005314/0.9406, allocations: 1.402 MB / 1.147 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001496/0.9408, allocations: 202.2 kB / 1.148 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.219e-05/0.9408, allocations: 4 kB / 1.148 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000632/0.9414, allocations: 144.7 kB / 1.148 GB, free: 14.9 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006501/0.9421, allocations: 167.8 kB / 1.148 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009443/0.943, allocations: 0.7239 MB / 1.149 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001276/0.9443, allocations: 163 kB / 1.149 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.384e-05/0.9444, allocations: 43.92 kB / 1.149 GB, free: 13.78 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 8.767e-06/0.9444, allocations: 4 kB / 1.149 GB, free: 13.78 MB / 0.9044 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004859/0.9493, allocations: 1.249 MB / 1.15 GB, free: 12.52 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.9493, allocations: 4 kB / 1.15 GB, free: 12.52 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005184/0.9498, allocations: 145.1 kB / 1.15 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006098/0.9505, allocations: 163.8 kB / 1.15 GB, free: 12.21 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009358/0.9514, allocations: 0.7239 MB / 1.151 GB, free: 11.46 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001238/0.9527, allocations: 151.2 kB / 1.151 GB, free: 11.32 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.1e-05/0.9527, allocations: 31.98 kB / 1.151 GB, free: 11.29 MB / 0.9044 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.0006805/0.9534, allocations: 424.8 kB / 1.152 GB, free: 10.86 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002751/0.9537, allocations: 134.3 kB / 1.152 GB, free: 10.73 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005188/0.9589, allocations: 1.4 MB / 1.153 GB, free: 9.312 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.512e-05/0.9589, allocations: 8 kB / 1.153 GB, free: 9.305 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.9589, allocations: 0 / 1.153 GB, free: 9.305 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004646/0.9636, allocations: 1.236 MB / 1.154 GB, free: 8.027 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007263/0.9709, allocations: 2.743 MB / 1.157 GB, free: 5.172 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-05/0.9709, allocations: 11.98 kB / 1.157 GB, free: 5.16 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005095/0.9714, allocations: 120.3 kB / 1.157 GB, free: 5.043 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005266/0.972, allocations: 140.6 kB / 1.157 GB, free: 4.902 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.618e-05/0.972, allocations: 19.98 kB / 1.157 GB, free: 4.883 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005219/0.9773, allocations: 2.482 MB / 1.16 GB, free: 2.25 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.08e-06/0.9773, allocations: 8.062 kB / 1.16 GB, free: 2.242 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005993/0.9833, allocations: 1.844 MB / 1.162 GB, free: 340 kB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007899/0.9841, allocations: 346.9 kB / 1.162 GB, free: 15.97 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002757/0.9844, allocations: 20.05 kB / 1.162 GB, free: 15.95 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001047/0.9855, allocations: 87.86 kB / 1.162 GB, free: 15.86 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001527/0.9856, allocations: 64.23 kB / 1.162 GB, free: 15.8 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.144e-05/0.9857, allocations: 32.09 kB / 1.162 GB, free: 15.77 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.001457/0.9872, allocations: 0.8739 MB / 1.163 GB, free: 14.89 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.8e-07/0.9872, allocations: 0 / 1.163 GB, free: 14.89 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.002177/0.9894, allocations: 0.7057 MB / 1.164 GB, free: 14.19 MB / 0.92 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.007289/0.9967, allocations: 2.744 MB / 1.166 GB, free: 11.38 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.003065/0.9998, allocations: 1.168 MB / 1.167 GB, free: 10.22 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 6.242e-06/0.9998, allocations: 0 / 1.167 GB, free: 10.22 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.001726/1.002, allocations: 0.5995 MB / 1.168 GB, free: 9.605 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006141/1.008, allocations: 0.7883 MB / 1.169 GB, free: 8.828 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02639/1.034, allocations: 11.22 MB / 1.18 GB, free: 13.09 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007822/1.035, allocations: 1.187 MB / 1.181 GB, free: 11.88 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.001258/1.036, allocations: 299 kB / 1.181 GB, free: 11.58 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007294/1.037, allocations: 0.5188 MB / 1.182 GB, free: 11.06 MB / 0.9356 GB Notification: Performance of SimCode: time 4.91e-07/1.037, allocations: 0 / 1.182 GB, free: 11.06 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06833/1.105, allocations: 42.47 MB / 1.223 GB, free: 1.133 MB / 0.9669 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002228/1.106, allocations: 257.9 kB / 1.223 GB, free: 0.7812 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.887/3.992, allocations: 4 kB / 1.223 GB, free: 0.7773 MB / 0.9669 GB (rm -f Buildings_10_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe ; mkfifo Buildings_10_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe >> ../files/Buildings_10_Buildings.Fluid.HeatPumps.Examples.Carnot_y.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.HeatPumps.Examples.Carnot_y_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_HeatPumps_Examples_Carnot_y_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_HeatPumps_Examples_Carnot_y.fmu > Buildings_10_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe 2>&1)