Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon") translateModel(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001182/0.001182, allocations: 112.5 kB / 15.99 MB, free: 6.359 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.001179/0.001179, allocations: 191.5 kB / 16.91 MB, free: 6.195 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.421/1.421, allocations: 205.1 MB / 222.8 MB, free: 4.707 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.728/1.728, allocations: 292.3 MB / 0.5492 GB, free: 13.6 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 64.19 kB / 0.6716 GB, free: 26.4 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2532/0.2545, allocations: 114.6 MB / 0.7835 GB, free: 13.89 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.05488/0.3095, allocations: 60.71 MB / 0.8428 GB, free: 0.9648 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.01681/0.3263, allocations: 11.83 MB / 0.8543 GB, free: 5.109 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002862/0.3292, allocations: 55.62 kB / 0.8544 GB, free: 5.055 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.002482/0.3318, allocations: 0.579 MB / 0.855 GB, free: 4.473 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.006414/0.3382, allocations: 1.815 MB / 0.8567 GB, free: 2.652 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.003378/0.3416, allocations: 1.109 MB / 0.8578 GB, free: 1.551 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.004836/0.3465, allocations: 3.091 MB / 0.8608 GB, free: 14.45 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002027/0.3485, allocations: 1.1 MB / 0.8619 GB, free: 13.32 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003854/0.3524, allocations: 1.348 MB / 0.8632 GB, free: 11.97 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001623/0.354, allocations: 0.9296 MB / 0.8641 GB, free: 11.04 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.0002666/0.3543, allocations: 120 kB / 0.8643 GB, free: 10.92 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003081/0.3574, allocations: 1.458 MB / 0.8657 GB, free: 9.457 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.0003577/0.3578, allocations: 298.9 kB / 0.866 GB, free: 9.164 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.000926/0.3587, allocations: 0.6958 MB / 0.8666 GB, free: 8.465 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.002638/0.3614, allocations: 1.762 MB / 0.8684 GB, free: 6.699 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.3614, allocations: 0 / 0.8684 GB, free: 6.699 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.603e-06/0.3614, allocations: 0 / 0.8684 GB, free: 6.699 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 1.602e-05/0.3614, allocations: 0 / 0.8684 GB, free: 6.699 MB / 0.6856 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.003168/0.3646, allocations: 1.738 MB / 0.8701 GB, free: 4.898 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 4.495e-05/0.3646, allocations: 16.02 kB / 0.8701 GB, free: 4.883 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00212/0.3668, allocations: 402.9 kB / 0.8705 GB, free: 4.488 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002144/0.3689, allocations: 1.136 MB / 0.8716 GB, free: 3.297 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003367/0.3693, allocations: 117.9 kB / 0.8717 GB, free: 3.18 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001232/0.3694, allocations: 84 kB / 0.8718 GB, free: 3.098 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002069/0.3715, allocations: 0.98 MB / 0.8727 GB, free: 2.082 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.107e-05/0.3715, allocations: 3.938 kB / 0.8727 GB, free: 2.078 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.211e-05/0.3716, allocations: 32 kB / 0.8727 GB, free: 2.047 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.11e-05/0.3716, allocations: 20 kB / 0.8728 GB, free: 2.027 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002219/0.3739, allocations: 0.8782 MB / 0.8736 GB, free: 1.148 MB / 0.6856 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.006761/0.3806, allocations: 4.572 MB / 0.8781 GB, free: 12.27 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003432/0.3841, allocations: 0.8395 MB / 0.8789 GB, free: 11.42 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007252/0.3848, allocations: 318 kB / 0.8792 GB, free: 11.11 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006863/0.3855, allocations: 0.9068 MB / 0.8801 GB, free: 10 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.505e-05/0.3856, allocations: 43 kB / 0.8801 GB, free: 9.949 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=47): time 4.198e-06/0.3856, allocations: 3.984 kB / 0.8801 GB, free: 9.945 MB / 0.7012 GB Notification: Performance of matching and sorting (n=47): time 0.007816/0.3934, allocations: 1.795 MB / 0.8819 GB, free: 8.117 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.023e-05/0.3935, allocations: 63.78 kB / 0.882 GB, free: 8.043 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001685/0.3952, allocations: 1.051 MB / 0.883 GB, free: 6.977 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.0001257/0.3953, allocations: 37.7 kB / 0.883 GB, free: 6.934 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004303/0.3958, allocations: 0.5236 MB / 0.8835 GB, free: 6.406 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001575/0.3959, allocations: 165.6 kB / 0.8837 GB, free: 6.242 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002433/0.3962, allocations: 134.1 kB / 0.8838 GB, free: 6.102 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001116/0.3963, allocations: 330 kB / 0.8841 GB, free: 5.773 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008538/0.3972, allocations: 310.9 kB / 0.8844 GB, free: 5.469 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001053/0.3982, allocations: 0.5172 MB / 0.8849 GB, free: 4.871 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001584/0.3998, allocations: 0.6981 MB / 0.8856 GB, free: 4.121 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.3999, allocations: 0 / 0.8856 GB, free: 4.121 MB / 0.7012 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.003668/0.4035, allocations: 1.17 MB / 0.8868 GB, free: 2.941 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 2.678e-05/0.4036, allocations: 8 kB / 0.8868 GB, free: 2.934 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/0.4036, allocations: 4 kB / 0.8868 GB, free: 2.93 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001282/0.4049, allocations: 324.8 kB / 0.8871 GB, free: 2.609 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000584/0.4055, allocations: 119.8 kB / 0.8872 GB, free: 2.492 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001479/0.407, allocations: 0.9105 MB / 0.8881 GB, free: 1.559 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001414/0.4084, allocations: 175.2 kB / 0.8883 GB, free: 1.387 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.265e-05/0.4085, allocations: 31.98 kB / 0.8883 GB, free: 1.355 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001277/0.4098, allocations: 0.5205 MB / 0.8888 GB, free: 0.832 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009958/0.4108, allocations: 0.5169 MB / 0.8893 GB, free: 236 kB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001605/0.4124, allocations: 0.6902 MB / 0.89 GB, free: 15.49 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.176e-06/0.4124, allocations: 0 / 0.89 GB, free: 15.49 MB / 0.7169 GB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.003577/0.416, allocations: 1.151 MB / 0.8911 GB, free: 14.32 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.885e-05/0.416, allocations: 12.31 kB / 0.8911 GB, free: 14.31 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.4161, allocations: 8 kB / 0.8911 GB, free: 14.3 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001081/0.4172, allocations: 300.6 kB / 0.8914 GB, free: 14.01 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005668/0.4177, allocations: 123.8 kB / 0.8915 GB, free: 13.89 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001375/0.4191, allocations: 0.9113 MB / 0.8924 GB, free: 12.95 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00139/0.4205, allocations: 159.5 kB / 0.8926 GB, free: 12.79 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.953e-05/0.4206, allocations: 27.98 kB / 0.8926 GB, free: 12.77 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (55): * Single equations (assignments): 54 * 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.000265/0.4209, allocations: 220.1 kB / 0.8928 GB, free: 12.54 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000216/0.4211, allocations: 106.7 kB / 0.8929 GB, free: 12.44 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003758/0.4249, allocations: 1.147 MB / 0.894 GB, free: 11.27 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.627e-05/0.4249, allocations: 4 kB / 0.894 GB, free: 11.27 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.764e-06/0.4249, allocations: 4 kB / 0.894 GB, free: 11.26 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.787e-06/0.4249, allocations: 7.922 kB / 0.894 GB, free: 11.25 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005547/0.4305, allocations: 2.223 MB / 0.8962 GB, free: 8.949 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.899e-06/0.4305, allocations: 0 / 0.8962 GB, free: 8.949 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003238/0.4309, allocations: 75.81 kB / 0.8963 GB, free: 8.875 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001041/0.4319, allocations: 304.9 kB / 0.8966 GB, free: 8.574 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.98e-05/0.432, allocations: 15.98 kB / 0.8966 GB, free: 8.559 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001491/0.4335, allocations: 0.937 MB / 0.8975 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.47e-06/0.4335, allocations: 7.938 kB / 0.8975 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004515/0.438, allocations: 1.356 MB / 0.8988 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00065/0.4387, allocations: 271.5 kB / 0.8991 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002818/0.439, allocations: 8 kB / 0.8991 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001039/0.44, allocations: 95.89 kB / 0.8992 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001055/0.4402, allocations: 39.89 kB / 0.8992 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.543e-05/0.4402, allocations: 23.98 kB / 0.8992 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.001403/0.4416, allocations: 0.7391 MB / 0.9 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2e-07/0.4417, allocations: 4 kB / 0.9 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.001969/0.4436, allocations: 0.5574 MB / 0.9005 GB, free: 4.422 MB / 0.7169 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 (37): * Single equations (assignments): 32 * 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.0009816/0.4446, allocations: 380.5 kB / 0.9009 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.00351/0.4481, allocations: 1.174 MB / 0.902 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/0.4482, allocations: 0 / 0.902 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0009627/0.4491, allocations: 375.3 kB / 0.9024 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003059/0.4522, allocations: 0.5346 MB / 0.9029 GB, free: 1.988 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006159/0.4584, allocations: 2.482 MB / 0.9053 GB, free: 15.44 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007811/0.4592, allocations: 1.062 MB / 0.9064 GB, free: 14.35 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004074/0.4596, allocations: 87.41 kB / 0.9065 GB, free: 14.27 MB / 0.7325 GB Notification: Performance of SimCode: time 2.264e-06/0.4597, allocations: 0 / 0.9065 GB, free: 14.27 MB / 0.7325 GB Notification: Performance of Templates: time 0.4424/0.902, allocations: 24.11 MB / 0.93 GB, free: 133.6 MB / 0.7325 GB make -j1 -f Buildings_8_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.makefile (rm -f Buildings_8_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.sim & ./Buildings_8_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe 2>&1)