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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001377/0.001377, 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.001404/0.001404, 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.349/1.349, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.475/2.475, allocations: 437 MB / 0.7101 GB, free: 5.254 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001265, allocations: 55.91 kB / 0.8688 GB, free: 5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5568/0.5581, allocations: 151.6 MB / 1.017 GB, free: 2.832 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.04888/0.607, allocations: 60.72 MB / 1.076 GB, free: 5.91 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01316/0.6202, allocations: 11.91 MB / 1.088 GB, free: 9.973 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001114/0.6214, allocations: 55.62 kB / 1.088 GB, free: 9.918 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.00129/0.6227, allocations: 0.5829 MB / 1.088 GB, free: 9.332 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.003306/0.626, allocations: 1.821 MB / 1.09 GB, free: 7.504 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.002066/0.6281, allocations: 1.101 MB / 1.091 GB, free: 6.414 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.002514/0.6306, allocations: 3.095 MB / 1.094 GB, free: 3.309 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00104/0.6316, allocations: 1.106 MB / 1.095 GB, free: 2.176 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001979/0.6336, allocations: 1.344 MB / 1.097 GB, free: 0.8281 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008289/0.6345, allocations: 0.9178 MB / 1.098 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.000128/0.6346, allocations: 116 kB / 1.098 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001811/0.6364, allocations: 1.45 MB / 1.099 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0002191/0.6367, allocations: 302.8 kB / 1.099 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.000498/0.6372, allocations: 0.6919 MB / 1.1 GB, free: 13.35 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001992/0.6392, allocations: 2.283 MB / 1.102 GB, free: 11.06 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.005e-06/0.6392, allocations: 0 / 1.102 GB, free: 11.06 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.222e-06/0.6392, allocations: 0 / 1.102 GB, free: 11.06 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.142e-05/0.6392, allocations: 4 kB / 1.102 GB, free: 11.05 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.002364/0.6416, allocations: 1.715 MB / 1.104 GB, free: 9.277 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.28e-05/0.6416, allocations: 8.031 kB / 1.104 GB, free: 9.27 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001208/0.6417, allocations: 126.8 kB / 1.104 GB, free: 9.137 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00202/0.6438, allocations: 410.8 kB / 1.105 GB, free: 8.734 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001673/0.6454, allocations: 1.12 MB / 1.106 GB, free: 7.559 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003231/0.6458, allocations: 125.9 kB / 1.106 GB, free: 7.434 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001014/0.6459, allocations: 80 kB / 1.106 GB, free: 7.355 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001725/0.6476, allocations: 0.9739 MB / 1.107 GB, free: 6.34 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.752e-05/0.6476, allocations: 3.938 kB / 1.107 GB, free: 6.336 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.103e-05/0.6477, allocations: 32 kB / 1.107 GB, free: 6.305 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.498e-05/0.6477, allocations: 24 kB / 1.107 GB, free: 6.281 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002034/0.6498, allocations: 0.8587 MB / 1.108 GB, free: 5.422 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.005113/0.6549, allocations: 4.841 MB / 1.112 GB, free: 228 kB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003123/0.658, allocations: 0.8082 MB / 1.113 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006379/0.6587, allocations: 296.7 kB / 1.113 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000512/0.6592, allocations: 0.9063 MB / 1.114 GB, free: 14 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.598e-05/0.6592, allocations: 46.5 kB / 1.114 GB, free: 13.95 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=43): time 1.583e-06/0.6593, allocations: 0 / 1.114 GB, free: 13.95 MB / 0.8731 GB Notification: Performance of matching and sorting (n=43): time 0.007546/0.6668, allocations: 1.91 MB / 1.116 GB, free: 12.01 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.789e-05/0.6668, allocations: 59.41 kB / 1.116 GB, free: 11.94 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001193/0.668, allocations: 1.044 MB / 1.117 GB, free: 10.88 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 4.733e-05/0.6681, allocations: 37.7 kB / 1.117 GB, free: 10.84 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003341/0.6684, allocations: 0.5196 MB / 1.118 GB, free: 10.31 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001002/0.6685, allocations: 153.8 kB / 1.118 GB, free: 10.16 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001888/0.6687, allocations: 134 kB / 1.118 GB, free: 10.02 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 8.887e-05/0.6688, allocations: 326 kB / 1.118 GB, free: 9.699 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007816/0.6696, allocations: 306.9 kB / 1.119 GB, free: 9.395 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009135/0.6705, allocations: 0.5064 MB / 1.119 GB, free: 8.805 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001432/0.672, allocations: 0.6967 MB / 1.12 GB, free: 8.051 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.672, allocations: 0 / 1.12 GB, free: 8.051 MB / 0.8731 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002302/0.6743, allocations: 0.989 MB / 1.121 GB, free: 7.051 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.408e-05/0.6743, allocations: 4 kB / 1.121 GB, free: 7.047 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.6743, allocations: 4 kB / 1.121 GB, free: 7.043 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001135/0.6755, allocations: 320.8 kB / 1.121 GB, free: 6.727 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004732/0.676, allocations: 111.9 kB / 1.121 GB, free: 6.617 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001266/0.6772, allocations: 0.9125 MB / 1.122 GB, free: 5.68 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001077/0.6783, allocations: 175.2 kB / 1.122 GB, free: 5.508 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.723e-05/0.6784, allocations: 27.98 kB / 1.122 GB, free: 5.48 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001/0.6794, allocations: 0.5088 MB / 1.123 GB, free: 4.965 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009009/0.6803, allocations: 0.5022 MB / 1.123 GB, free: 4.375 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001407/0.6817, allocations: 0.6719 MB / 1.124 GB, free: 3.645 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.516e-06/0.6817, allocations: 4 kB / 1.124 GB, free: 3.641 MB / 0.8731 GB Notification: Performance of matching and sorting (n=65) (initialization_lambda0): time 0.002246/0.684, allocations: 0.9768 MB / 1.125 GB, free: 2.652 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 9.979e-06/0.684, allocations: 8.375 kB / 1.125 GB, free: 2.645 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.684, allocations: 8 kB / 1.125 GB, free: 2.637 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009399/0.685, allocations: 309.3 kB / 1.125 GB, free: 2.332 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004739/0.6855, allocations: 123.8 kB / 1.125 GB, free: 2.211 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001217/0.6867, allocations: 0.905 MB / 1.126 GB, free: 1.281 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001073/0.6878, allocations: 157.1 kB / 1.126 GB, free: 1.129 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.293e-05/0.6878, allocations: 27.98 kB / 1.127 GB, free: 1.102 MB / 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.0001569/0.688, allocations: 224 kB / 1.127 GB, free: 0.875 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001482/0.6881, allocations: 110.6 kB / 1.127 GB, free: 0.7656 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003405/0.6916, allocations: 1.098 MB / 1.128 GB, free: 15.65 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.269e-05/0.6916, allocations: 11.94 kB / 1.128 GB, free: 15.64 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.6916, allocations: 0 / 1.128 GB, free: 15.64 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.552e-06/0.6916, allocations: 3.984 kB / 1.128 GB, free: 15.63 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004391/0.696, allocations: 2.167 MB / 1.13 GB, free: 13.38 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.696, allocations: 0 / 1.13 GB, free: 13.38 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002577/0.6963, allocations: 63.89 kB / 1.13 GB, free: 13.32 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008748/0.6972, allocations: 302 kB / 1.13 GB, free: 13.02 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.445e-05/0.6972, allocations: 19.98 kB / 1.13 GB, free: 13 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00128/0.6985, allocations: 0.9448 MB / 1.131 GB, free: 12.04 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.6985, allocations: 0 / 1.131 GB, free: 12.04 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00316/0.7017, allocations: 1.163 MB / 1.132 GB, free: 10.82 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000295/0.702, allocations: 267.5 kB / 1.133 GB, free: 10.54 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001268/0.7021, allocations: 8 kB / 1.133 GB, free: 10.54 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008282/0.7029, allocations: 95.89 kB / 1.133 GB, free: 10.44 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.9e-05/0.703, allocations: 39.83 kB / 1.133 GB, free: 10.4 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.358e-05/0.7031, allocations: 27.98 kB / 1.133 GB, free: 10.38 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0009183/0.704, allocations: 0.735 MB / 1.134 GB, free: 9.633 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.8e-07/0.704, allocations: 4 kB / 1.134 GB, free: 9.629 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001227/0.7052, allocations: 0.5574 MB / 1.134 GB, free: 9.07 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.004002/0.7092, allocations: 1.981 MB / 1.136 GB, free: 7.043 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.002832/0.7121, allocations: 1.12 MB / 1.137 GB, free: 5.922 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.7121, allocations: 0 / 1.137 GB, free: 5.922 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.000789/0.7129, allocations: 346.5 kB / 1.137 GB, free: 5.586 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001938/0.7148, allocations: 0.5093 MB / 1.138 GB, free: 5.082 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01593/0.7308, allocations: 8.941 MB / 1.147 GB, free: 11.7 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004832/0.7313, allocations: 1.057 MB / 1.148 GB, free: 10.61 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0007345/0.732, allocations: 216.7 kB / 1.148 GB, free: 10.4 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004473/0.7325, allocations: 407.3 kB / 1.148 GB, free: 10 MB / 0.9044 GB Notification: Performance of SimCode: time 3.1e-07/0.7325, allocations: 0 / 1.148 GB, free: 10 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.733/2.465, allocations: 32.75 MB / 1.18 GB, free: 9.715 MB / 0.9356 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002686/2.466, allocations: 276.2 kB / 1.181 GB, free: 9.352 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.172/5.638, allocations: 7.875 kB / 1.181 GB, free: 9.344 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)