Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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_TCon,fileNamePrefix="Buildings_10_Buildings_Fluid_HeatPumps_Examples_Carnot_TCon",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon,fileNamePrefix="Buildings_10_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.001004/0.001004, allocations: 97.64 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.007489/0.007489, allocations: 170.1 kB / 16.27 MB, free: 6.66 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.369/1.369, allocations: 223.3 MB / 240.3 MB, free: 5.34 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.592/2.592, allocations: 437.8 MB / 0.7121 GB, free: 7.004 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0005577/0.0005578, allocations: 12 kB / 0.8729 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6848/0.6854, allocations: 153.8 MB / 1.023 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.05851/0.744, allocations: 59.76 MB / 1.081 GB, free: 3.883 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01586/0.7599, allocations: 11.92 MB / 1.093 GB, free: 7.938 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001926/0.7619, allocations: 55.62 kB / 1.093 GB, free: 7.883 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001546/0.7634, allocations: 0.5399 MB / 1.094 GB, free: 7.34 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.004431/0.7679, allocations: 1.812 MB / 1.095 GB, free: 5.52 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.00245/0.7703, allocations: 1.073 MB / 1.097 GB, free: 4.453 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.00393/0.7743, allocations: 3.895 MB / 1.1 GB, free: 0.5469 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001172/0.7755, allocations: 0.9041 MB / 1.101 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001834/0.7773, allocations: 1.12 MB / 1.102 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001053/0.7784, allocations: 0.8515 MB / 1.103 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001008/0.7785, allocations: 40 kB / 1.103 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002343/0.7808, allocations: 1.337 MB / 1.104 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0002172/0.7811, allocations: 206.9 kB / 1.105 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0006257/0.7817, allocations: 0.6311 MB / 1.105 GB, free: 11.41 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.002981/0.7847, allocations: 2.185 MB / 1.107 GB, free: 9.215 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.7847, allocations: 0 / 1.107 GB, free: 9.215 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.114e-06/0.7847, allocations: 4 kB / 1.107 GB, free: 9.211 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.756e-05/0.7847, allocations: 0 / 1.107 GB, free: 9.211 MB / 0.8575 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.0029/0.7876, allocations: 1.477 MB / 1.109 GB, free: 7.676 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.347e-05/0.7877, allocations: 8.031 kB / 1.109 GB, free: 7.668 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001792/0.7879, allocations: 126.9 kB / 1.109 GB, free: 7.535 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002196/0.7901, allocations: 478.8 kB / 1.109 GB, free: 7.066 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002069/0.7922, allocations: 1.132 MB / 1.111 GB, free: 5.875 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003611/0.7926, allocations: 125.9 kB / 1.111 GB, free: 5.754 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001187/0.7927, allocations: 80 kB / 1.111 GB, free: 5.676 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002027/0.7947, allocations: 1.009 MB / 1.112 GB, free: 4.621 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.858e-05/0.7948, allocations: 3.938 kB / 1.112 GB, free: 4.617 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.941e-05/0.7948, allocations: 32 kB / 1.112 GB, free: 4.586 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.723e-05/0.7949, allocations: 20 kB / 1.112 GB, free: 4.566 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002404/0.7973, allocations: 0.9134 MB / 1.113 GB, free: 3.656 MB / 0.8575 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.006314/0.8036, allocations: 4.898 MB / 1.117 GB, free: 14.4 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003602/0.8072, allocations: 0.9096 MB / 1.118 GB, free: 13.48 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007533/0.808, allocations: 324.7 kB / 1.119 GB, free: 13.16 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007023/0.8087, allocations: 0.9024 MB / 1.12 GB, free: 12.05 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.294e-05/0.8087, allocations: 38.5 kB / 1.12 GB, free: 12.01 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=43): time 2.885e-06/0.8088, allocations: 0 / 1.12 GB, free: 12.01 MB / 0.8731 GB Notification: Performance of matching and sorting (n=43): time 0.009081/0.8178, allocations: 2.157 MB / 1.122 GB, free: 9.82 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.095e-05/0.8179, allocations: 55.41 kB / 1.122 GB, free: 9.754 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001568/0.8195, allocations: 1.055 MB / 1.123 GB, free: 8.684 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 7.013e-05/0.8196, allocations: 37.7 kB / 1.123 GB, free: 8.641 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004152/0.82, allocations: 0.5195 MB / 1.123 GB, free: 8.117 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001281/0.8201, allocations: 153.8 kB / 1.123 GB, free: 7.965 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.187e-05/0.8202, allocations: 49.69 kB / 1.124 GB, free: 7.91 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001151/0.8203, allocations: 330 kB / 1.124 GB, free: 7.582 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009145/0.8213, allocations: 324.9 kB / 1.124 GB, free: 7.266 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001085/0.8224, allocations: 0.5475 MB / 1.125 GB, free: 6.633 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001689/0.8241, allocations: 0.7318 MB / 1.125 GB, free: 5.844 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.8241, allocations: 0 / 1.125 GB, free: 5.844 MB / 0.8731 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002688/0.8268, allocations: 1.052 MB / 1.126 GB, free: 4.781 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.000123/0.8269, allocations: 214.9 kB / 1.127 GB, free: 4.512 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.8269, allocations: 4 kB / 1.127 GB, free: 4.508 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001262/0.8282, allocations: 336.7 kB / 1.127 GB, free: 4.176 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005286/0.8287, allocations: 131.8 kB / 1.127 GB, free: 4.047 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001478/0.8302, allocations: 0.9425 MB / 1.128 GB, free: 3.078 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001285/0.8315, allocations: 191.3 kB / 1.128 GB, free: 2.891 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.348e-05/0.8316, allocations: 31.92 kB / 1.128 GB, free: 2.859 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 8.306e-06/0.8316, allocations: 4 kB / 1.128 GB, free: 2.855 MB / 0.8731 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002453/0.8341, allocations: 0.9103 MB / 1.129 GB, free: 1.941 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/0.8341, allocations: 7.938 kB / 1.129 GB, free: 1.934 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001102/0.8352, allocations: 330.9 kB / 1.129 GB, free: 1.609 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005279/0.8357, allocations: 131.8 kB / 1.13 GB, free: 1.48 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001433/0.8372, allocations: 0.9347 MB / 1.13 GB, free: 0.5195 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001156/0.8383, allocations: 167.4 kB / 1.131 GB, free: 364 kB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.858e-05/0.8384, allocations: 27.98 kB / 1.131 GB, free: 336 kB / 0.8731 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.0004959/0.8389, allocations: 357 kB / 1.131 GB, free: 15.96 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001836/0.8391, allocations: 110.6 kB / 1.131 GB, free: 15.86 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003984/0.8431, allocations: 1.199 MB / 1.132 GB, free: 14.64 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.479e-05/0.8431, allocations: 7.984 kB / 1.132 GB, free: 14.64 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.8431, allocations: 0 / 1.132 GB, free: 14.64 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.8431, allocations: 3.938 kB / 1.132 GB, free: 14.63 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005406/0.8485, allocations: 2.261 MB / 1.134 GB, free: 12.29 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.189e-05/0.8486, allocations: 3.984 kB / 1.134 GB, free: 12.29 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002956/0.8489, allocations: 71.89 kB / 1.135 GB, free: 12.21 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001082/0.85, allocations: 324.8 kB / 1.135 GB, free: 11.89 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.152e-05/0.85, allocations: 19.98 kB / 1.135 GB, free: 11.88 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001529/0.8516, allocations: 0.9716 MB / 1.136 GB, free: 10.88 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.8516, allocations: 0 / 1.136 GB, free: 10.88 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003795/0.8554, allocations: 1.256 MB / 1.137 GB, free: 9.574 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004979/0.8559, allocations: 295.4 kB / 1.137 GB, free: 9.266 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001763/0.8561, allocations: 12 kB / 1.137 GB, free: 9.254 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009627/0.8571, allocations: 111.8 kB / 1.137 GB, free: 9.145 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.67e-05/0.8572, allocations: 39.89 kB / 1.137 GB, free: 9.105 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.512e-05/0.8572, allocations: 27.92 kB / 1.138 GB, free: 9.078 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.001267/0.8585, allocations: 0.7389 MB / 1.138 GB, free: 8.332 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.8e-07/0.8585, allocations: 4 kB / 1.138 GB, free: 8.328 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001512/0.86, allocations: 0.5574 MB / 1.139 GB, free: 7.77 MB / 0.8887 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.004583/0.8646, allocations: 2.074 MB / 1.141 GB, free: 5.648 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.003166/0.8678, allocations: 1.165 MB / 1.142 GB, free: 4.484 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.8678, allocations: 8.125 kB / 1.142 GB, free: 4.477 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0008969/0.8687, allocations: 362.3 kB / 1.142 GB, free: 4.125 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002848/0.8716, allocations: 0.5077 MB / 1.143 GB, free: 3.621 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01948/0.8911, allocations: 9.201 MB / 1.152 GB, free: 9.984 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006401/0.8917, allocations: 1.065 MB / 1.153 GB, free: 8.887 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0009792/0.8927, allocations: 212.6 kB / 1.153 GB, free: 8.676 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005461/0.8933, allocations: 407.3 kB / 1.153 GB, free: 8.277 MB / 0.9044 GB Notification: Performance of SimCode: time 9.22e-07/0.8933, allocations: 0 / 1.153 GB, free: 8.277 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05748/0.9508, allocations: 32.07 MB / 1.185 GB, free: 8.656 MB / 0.9356 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002267/0.951, allocations: 272.7 kB / 1.185 GB, free: 8.297 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.705/3.656, allocations: 4 kB / 1.185 GB, free: 8.293 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; mkfifo Buildings_10_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe >> ../files/Buildings_10_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_HeatPumps_Examples_Carnot_TCon_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_HeatPumps_Examples_Carnot_TCon.fmu > Buildings_10_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe 2>&1)