Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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_TCon,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatPumps_Examples_Carnot_TCon",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatPumps_Examples_Carnot_TCon",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.0009831/0.0009831, allocations: 97.33 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.00601/0.00601, allocations: 169.7 kB / 16.27 MB, free: 6.652 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.325/1.325, 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 11.0.0-master/package.mo): time 2.596/2.596, allocations: 462.6 MB / 0.7364 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003036/0.0003037, allocations: 12.16 kB / 0.9029 GB, free: 36.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2564/0.2567, allocations: 159.6 MB / 1.059 GB, free: 4.84 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.05915/0.3159, allocations: 59.75 MB / 1.117 GB, free: 8.887 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01626/0.3322, allocations: 11.92 MB / 1.129 GB, free: 12.93 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002004/0.3342, allocations: 55.62 kB / 1.129 GB, free: 12.88 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.00192/0.3362, allocations: 0.5477 MB / 1.129 GB, free: 12.32 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.005468/0.3416, allocations: 1.803 MB / 1.131 GB, free: 10.52 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.002865/0.3445, allocations: 1.075 MB / 1.132 GB, free: 9.449 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.004739/0.3493, allocations: 3.906 MB / 1.136 GB, free: 5.535 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001704/0.351, allocations: 0.8983 MB / 1.137 GB, free: 4.605 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00248/0.3535, allocations: 1.124 MB / 1.138 GB, free: 3.477 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001552/0.3551, allocations: 0.8553 MB / 1.139 GB, free: 2.617 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0002282/0.3553, allocations: 40 kB / 1.139 GB, free: 2.578 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002749/0.3581, allocations: 1.325 MB / 1.14 GB, free: 1.25 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.000325/0.3584, allocations: 214.8 kB / 1.14 GB, free: 1.039 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0009929/0.3594, allocations: 0.6272 MB / 1.141 GB, free: 412 kB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.00325/0.3627, allocations: 2.185 MB / 1.143 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.3627, allocations: 3.938 kB / 1.143 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.813e-06/0.3627, allocations: 7.938 kB / 1.143 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 5.086e-05/0.3627, allocations: 0 / 1.143 GB, free: 14.2 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.003068/0.3658, allocations: 1.477 MB / 1.145 GB, free: 12.66 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.362e-05/0.3659, allocations: 11.97 kB / 1.145 GB, free: 12.65 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002188/0.3661, allocations: 126.9 kB / 1.145 GB, free: 12.52 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002376/0.3685, allocations: 478.8 kB / 1.145 GB, free: 12.05 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002258/0.3707, allocations: 1.127 MB / 1.146 GB, free: 10.87 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003861/0.3711, allocations: 121.9 kB / 1.146 GB, free: 10.75 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001413/0.3713, allocations: 87.98 kB / 1.146 GB, free: 10.66 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0022/0.3735, allocations: 1.013 MB / 1.147 GB, free: 9.605 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.884e-05/0.3735, allocations: 0 / 1.147 GB, free: 9.605 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.814e-05/0.3736, allocations: 36 kB / 1.147 GB, free: 9.57 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.767e-05/0.3737, allocations: 20 kB / 1.147 GB, free: 9.551 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002571/0.3762, allocations: 0.9172 MB / 1.148 GB, free: 8.633 MB / 0.9044 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.006335/0.3826, allocations: 4.894 MB / 1.153 GB, free: 3.379 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003684/0.3863, allocations: 0.8936 MB / 1.154 GB, free: 2.473 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008103/0.3871, allocations: 324.7 kB / 1.154 GB, free: 2.152 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007051/0.3878, allocations: 0.9025 MB / 1.155 GB, free: 1.047 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.159e-05/0.3879, allocations: 38.5 kB / 1.155 GB, free: 1 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=43): time 2.475e-06/0.3879, allocations: 0 / 1.155 GB, free: 1 MB / 0.9044 GB Notification: Performance of matching and sorting (n=43): time 0.009387/0.3973, allocations: 2.16 MB / 1.157 GB, free: 14.81 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.7e-05/0.3973, allocations: 63.34 kB / 1.157 GB, free: 14.73 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001797/0.3991, allocations: 1.055 MB / 1.158 GB, free: 13.66 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 7.753e-05/0.3992, allocations: 37.7 kB / 1.158 GB, free: 13.62 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004436/0.3997, allocations: 0.5196 MB / 1.159 GB, free: 13.1 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001457/0.3998, allocations: 149.8 kB / 1.159 GB, free: 12.95 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.597e-05/0.3999, allocations: 49.69 kB / 1.159 GB, free: 12.89 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001388/0.4001, allocations: 330 kB / 1.159 GB, free: 12.57 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009686/0.401, allocations: 324.9 kB / 1.16 GB, free: 12.25 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001154/0.4022, allocations: 0.5337 MB / 1.16 GB, free: 11.63 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001779/0.404, allocations: 0.7396 MB / 1.161 GB, free: 10.83 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.404, allocations: 0 / 1.161 GB, free: 10.83 MB / 0.92 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002922/0.4069, allocations: 1.055 MB / 1.162 GB, free: 9.766 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001453/0.4071, allocations: 213.3 kB / 1.162 GB, free: 9.496 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.296e-05/0.4071, allocations: 4 kB / 1.162 GB, free: 9.492 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001374/0.4085, allocations: 344.6 kB / 1.163 GB, free: 9.152 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005541/0.4091, allocations: 127.8 kB / 1.163 GB, free: 9.027 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001577/0.4106, allocations: 0.9414 MB / 1.164 GB, free: 8.062 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001396/0.4121, allocations: 187.3 kB / 1.164 GB, free: 7.879 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.604e-05/0.4121, allocations: 31.92 kB / 1.164 GB, free: 7.848 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 9.749e-06/0.4122, allocations: 4 kB / 1.164 GB, free: 7.844 MB / 0.92 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002608/0.4148, allocations: 0.91 MB / 1.165 GB, free: 6.93 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.118e-05/0.4148, allocations: 7.938 kB / 1.165 GB, free: 6.922 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001144/0.4159, allocations: 325 kB / 1.165 GB, free: 6.602 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005326/0.4165, allocations: 135.8 kB / 1.165 GB, free: 6.469 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001498/0.418, allocations: 0.9269 MB / 1.166 GB, free: 5.516 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001242/0.4193, allocations: 175.4 kB / 1.166 GB, free: 5.344 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.416e-05/0.4193, allocations: 24 kB / 1.166 GB, free: 5.32 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (51): * Single equations (assignments): 50 * 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,14)} Notification: Performance of prepare postOptimizeDAE: time 0.0005305/0.4199, allocations: 360.8 kB / 1.167 GB, free: 4.957 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000211/0.4201, allocations: 106.7 kB / 1.167 GB, free: 4.852 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004124/0.4242, allocations: 1.199 MB / 1.168 GB, free: 3.641 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.665e-05/0.4243, allocations: 7.984 kB / 1.168 GB, free: 3.633 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.4243, allocations: 0 / 1.168 GB, free: 3.633 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/0.4243, allocations: 3.938 kB / 1.168 GB, free: 3.629 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005647/0.4299, allocations: 2.28 MB / 1.17 GB, free: 1.266 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.843e-06/0.43, allocations: 3.938 kB / 1.17 GB, free: 1.262 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002941/0.4303, allocations: 67.89 kB / 1.17 GB, free: 1.195 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001088/0.4314, allocations: 318.3 kB / 1.171 GB, free: 0.8828 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.974e-05/0.4314, allocations: 19.98 kB / 1.171 GB, free: 0.8633 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001595/0.433, allocations: 0.9711 MB / 1.171 GB, free: 15.86 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.433, allocations: 0 / 1.171 GB, free: 15.86 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003942/0.437, allocations: 1.261 MB / 1.173 GB, free: 14.55 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005964/0.4376, allocations: 275.6 kB / 1.173 GB, free: 14.26 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002149/0.4378, allocations: 16 kB / 1.173 GB, free: 14.25 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001004/0.4388, allocations: 115.7 kB / 1.173 GB, free: 14.13 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.42e-05/0.4389, allocations: 35.89 kB / 1.173 GB, free: 14.1 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.364e-05/0.439, allocations: 27.92 kB / 1.173 GB, free: 14.07 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001267/0.4403, allocations: 0.7428 MB / 1.174 GB, free: 13.32 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.8e-07/0.4403, allocations: 0 / 1.174 GB, free: 13.32 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.001726/0.442, allocations: 0.5535 MB / 1.174 GB, free: 12.77 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 simulation (33): * Single equations (assignments): 28 * 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,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004992/0.447, allocations: 2.082 MB / 1.176 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.003405/0.4504, allocations: 1.164 MB / 1.178 GB, free: 9.48 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 7.884e-06/0.4505, allocations: 8.125 kB / 1.178 GB, free: 9.473 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0009599/0.4514, allocations: 358.3 kB / 1.178 GB, free: 9.121 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003071/0.4545, allocations: 0.5131 MB / 1.178 GB, free: 8.613 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0204/0.4749, allocations: 9.192 MB / 1.187 GB, free: 14.98 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007064/0.4757, allocations: 1.065 MB / 1.188 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.001029/0.4767, allocations: 220.7 kB / 1.189 GB, free: 13.66 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005951/0.4773, allocations: 411.3 kB / 1.189 GB, free: 13.26 MB / 0.9512 GB Notification: Performance of SimCode: time 6.82e-07/0.4773, allocations: 0 / 1.189 GB, free: 13.26 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08358/0.5609, allocations: 32.06 MB / 1.22 GB, free: 13.66 MB / 0.9825 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002403/0.5612, allocations: 277.2 kB / 1.221 GB, free: 13.3 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.513/3.074, allocations: 4 kB / 1.221 GB, free: 13.29 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatPumps_Examples_Carnot_TCon_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_HeatPumps_Examples_Carnot_TCon.fmu > Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe 2>&1)