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.001366/0.001367, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001658/0.001658, allocations: 196.4 kB / 16.53 MB, free: 6.664 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.481/1.481, allocations: 205.1 MB / 222.4 MB, free: 4.578 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.736/1.736, allocations: 292.3 MB / 0.5489 GB, free: 12.86 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.001421/0.001421, allocations: 70 kB / 0.6715 GB, free: 26.27 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.237/0.2384, allocations: 114.5 MB / 0.7833 GB, free: 13.5 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.05962/0.2981, allocations: 61.22 MB / 0.8431 GB, free: 56 kB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.01659/0.3147, allocations: 11.9 MB / 0.8548 GB, free: 4.125 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002097/0.3169, allocations: 59.69 kB / 0.8548 GB, free: 4.066 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.001886/0.3188, allocations: 0.6791 MB / 0.8555 GB, free: 3.383 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.005133/0.3239, allocations: 1.95 MB / 0.8574 GB, free: 1.426 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.002885/0.3268, allocations: 1.209 MB / 0.8586 GB, free: 228 kB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.003755/0.3306, allocations: 3.071 MB / 0.8616 GB, free: 13.14 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001548/0.3322, allocations: 1.115 MB / 0.8626 GB, free: 12 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002864/0.3351, allocations: 1.338 MB / 0.864 GB, free: 10.66 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00132/0.3364, allocations: 0.9022 MB / 0.8648 GB, free: 9.754 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.0001931/0.3366, allocations: 120 kB / 0.865 GB, free: 9.637 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002685/0.3393, allocations: 1.435 MB / 0.8664 GB, free: 8.199 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.0002802/0.3396, allocations: 298.9 kB / 0.8666 GB, free: 7.906 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.0007602/0.3403, allocations: 0.6959 MB / 0.8673 GB, free: 7.207 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.003907/0.3443, allocations: 2.294 MB / 0.8696 GB, free: 4.906 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3443, allocations: 0 / 0.8696 GB, free: 4.906 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.412e-06/0.3443, allocations: 0 / 0.8696 GB, free: 4.906 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 1.692e-05/0.3443, allocations: 0 / 0.8696 GB, free: 4.906 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.002932/0.3473, allocations: 1.734 MB / 0.8713 GB, free: 3.109 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.3473, allocations: 8.031 kB / 0.8713 GB, free: 3.102 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002153/0.3495, allocations: 410.8 kB / 0.8717 GB, free: 2.699 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002013/0.3515, allocations: 1.116 MB / 0.8727 GB, free: 1.527 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003574/0.3519, allocations: 121.9 kB / 0.8729 GB, free: 1.406 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001205/0.352, allocations: 76 kB / 0.8729 GB, free: 1.332 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001971/0.354, allocations: 1.004 MB / 0.8739 GB, free: 284 kB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.962e-05/0.354, allocations: 7.938 kB / 0.8739 GB, free: 276 kB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.631e-05/0.3541, allocations: 35.94 kB / 0.874 GB, free: 240 kB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.403e-05/0.3541, allocations: 16 kB / 0.874 GB, free: 224 kB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002324/0.3565, allocations: 0.882 MB / 0.8748 GB, free: 15.34 MB / 0.7012 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.006565/0.363, allocations: 4.987 MB / 0.8797 GB, free: 10.02 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003491/0.3665, allocations: 0.8356 MB / 0.8805 GB, free: 9.18 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007934/0.3674, allocations: 322 kB / 0.8808 GB, free: 8.863 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000674/0.368, allocations: 0.9068 MB / 0.8817 GB, free: 7.754 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.918e-05/0.3681, allocations: 39 kB / 0.8817 GB, free: 7.707 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=47): time 2.245e-06/0.3681, allocations: 0 / 0.8817 GB, free: 7.707 MB / 0.7012 GB Notification: Performance of matching and sorting (n=47): time 0.008118/0.3762, allocations: 1.799 MB / 0.8835 GB, free: 5.875 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.812e-05/0.3763, allocations: 59.84 kB / 0.8836 GB, free: 5.805 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00166/0.378, allocations: 1.08 MB / 0.8846 GB, free: 4.711 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 7.494e-05/0.378, allocations: 41.64 kB / 0.8847 GB, free: 4.664 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.000446/0.3785, allocations: 0.5234 MB / 0.8852 GB, free: 4.137 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001471/0.3787, allocations: 169.6 kB / 0.8853 GB, free: 3.969 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002678/0.3789, allocations: 142.2 kB / 0.8855 GB, free: 3.824 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001275/0.3791, allocations: 330 kB / 0.8858 GB, free: 3.496 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009575/0.38, allocations: 319.2 kB / 0.8861 GB, free: 3.18 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001148/0.3812, allocations: 0.5442 MB / 0.8866 GB, free: 2.539 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001747/0.3829, allocations: 0.7521 MB / 0.8873 GB, free: 1.723 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.16e-06/0.383, allocations: 0 / 0.8873 GB, free: 1.723 MB / 0.7012 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.003895/0.3869, allocations: 1.21 MB / 0.8885 GB, free: 0.5039 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/0.3869, allocations: 8 kB / 0.8885 GB, free: 0.4961 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.128e-05/0.3869, allocations: 4 kB / 0.8885 GB, free: 0.4922 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001243/0.3882, allocations: 320.6 kB / 0.8888 GB, free: 180 kB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005836/0.3888, allocations: 131.8 kB / 0.889 GB, free: 48 kB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001512/0.3903, allocations: 0.9146 MB / 0.8899 GB, free: 15.11 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001288/0.3916, allocations: 159.2 kB / 0.89 GB, free: 14.95 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.307e-05/0.3917, allocations: 31.98 kB / 0.89 GB, free: 14.92 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001274/0.393, allocations: 0.5363 MB / 0.8906 GB, free: 14.38 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001146/0.3941, allocations: 0.5403 MB / 0.8911 GB, free: 13.75 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001768/0.3959, allocations: 0.7248 MB / 0.8918 GB, free: 12.96 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.196e-06/0.3959, allocations: 7.875 kB / 0.8918 GB, free: 12.95 MB / 0.7169 GB Notification: Performance of matching and sorting (n=75) (initialization_lambda0): time 0.003844/0.3998, allocations: 1.194 MB / 0.893 GB, free: 11.74 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.834e-05/0.3998, allocations: 12.06 kB / 0.893 GB, free: 11.73 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.237e-05/0.3998, allocations: 4 kB / 0.893 GB, free: 11.73 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001108/0.4009, allocations: 300.6 kB / 0.8933 GB, free: 11.43 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005696/0.4015, allocations: 139.8 kB / 0.8934 GB, free: 11.29 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001485/0.403, allocations: 0.9074 MB / 0.8943 GB, free: 10.36 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001346/0.4044, allocations: 150.2 kB / 0.8944 GB, free: 10.21 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.339e-05/0.4045, allocations: 35.98 kB / 0.8945 GB, free: 10.18 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (61): * Single equations (assignments): 60 * 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.0002804/0.4048, allocations: 214.6 kB / 0.8947 GB, free: 9.965 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002248/0.405, allocations: 114.6 kB / 0.8948 GB, free: 9.852 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004064/0.4091, allocations: 1.151 MB / 0.8959 GB, free: 8.676 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.477e-05/0.4091, allocations: 4 kB / 0.8959 GB, free: 8.672 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.4091, allocations: 0 / 0.8959 GB, free: 8.672 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.4091, allocations: 7.922 kB / 0.8959 GB, free: 8.664 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005777/0.4149, allocations: 2.22 MB / 0.8981 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.016e-05/0.4149, allocations: 0 / 0.8981 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003249/0.4153, allocations: 75.83 kB / 0.8982 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001069/0.4164, allocations: 323.5 kB / 0.8985 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.833e-05/0.4164, allocations: 8 kB / 0.8985 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00155/0.418, allocations: 0.9387 MB / 0.8994 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.065e-06/0.418, allocations: 12 kB / 0.8994 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004877/0.4229, allocations: 1.332 MB / 0.9007 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005786/0.4235, allocations: 271.5 kB / 0.901 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001711/0.4237, allocations: 12 kB / 0.901 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008506/0.4245, allocations: 79.84 kB / 0.9011 GB, free: 3.23 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.712e-05/0.4246, allocations: 35.89 kB / 0.9011 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.389e-05/0.4247, allocations: 23.98 kB / 0.9011 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.001212/0.4259, allocations: 0.759 MB / 0.9019 GB, free: 2.406 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.81e-07/0.4259, allocations: 0 / 0.9019 GB, free: 2.406 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.00165/0.4276, allocations: 0.5731 MB / 0.9024 GB, free: 1.832 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.0008018/0.4284, allocations: 388 kB / 0.9028 GB, free: 1.445 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.003626/0.432, allocations: 1.197 MB / 0.904 GB, free: 256 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 7.383e-06/0.432, allocations: 1.125 kB / 0.904 GB, free: 256 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.001014/0.4331, allocations: 383.1 kB / 0.9043 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002612/0.4357, allocations: 0.5458 MB / 0.9049 GB, free: 15.35 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005393/0.4411, allocations: 2.064 MB / 0.9069 GB, free: 13.23 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006504/0.4418, allocations: 1.062 MB / 0.9079 GB, free: 12.14 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.00115/0.4429, allocations: 237 kB / 0.9081 GB, free: 11.9 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001998/0.4431, allocations: 83.41 kB / 0.9082 GB, free: 11.82 MB / 0.7325 GB Notification: Performance of SimCode: time 7.92e-07/0.4432, allocations: 0 / 0.9082 GB, free: 11.82 MB / 0.7325 GB Notification: Performance of Templates: time 0.4358/0.8789, allocations: 25.62 MB / 0.9332 GB, free: 132.5 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)