Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon") translateModel(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.349/1.349, allocations: 252 MB / 268 MB, free: 10.88 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001037/0.001038, allocations: 185.6 kB / 327.6 MB, free: 2.098 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.603/1.603, allocations: 205.4 MB / 0.5786 GB, free: 20.41 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007359/0.000736, allocations: 86.36 kB / 0.6832 GB, free: 13.21 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0005027/0.0005028, allocations: 9.719 kB / 0.7976 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2792/0.2797, allocations: 106.3 MB / 0.9014 GB, free: 63.85 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.04285/0.3226, allocations: 59.76 MB / 0.9598 GB, free: 3.879 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.01547/0.3382, allocations: 11.79 MB / 0.9713 GB, free: 8.059 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002459/0.3407, allocations: 47.69 kB / 0.9714 GB, free: 8.012 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.001886/0.3426, allocations: 0.5477 MB / 0.9719 GB, free: 7.461 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.005516/0.3481, allocations: 1.789 MB / 0.9736 GB, free: 5.66 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.003245/0.3514, allocations: 1.098 MB / 0.9747 GB, free: 4.574 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.004846/0.3562, allocations: 3.881 MB / 0.9785 GB, free: 0.6797 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001527/0.3578, allocations: 0.9019 MB / 0.9794 GB, free: 15.75 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00266/0.3605, allocations: 1.128 MB / 0.9805 GB, free: 14.61 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001527/0.362, allocations: 0.8631 MB / 0.9813 GB, free: 13.75 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 0.0001281/0.3622, allocations: 44 kB / 0.9814 GB, free: 13.7 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002875/0.365, allocations: 1.294 MB / 0.9826 GB, free: 12.41 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 0.0002683/0.3653, allocations: 218.9 kB / 0.9828 GB, free: 12.19 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 0.0007998/0.3661, allocations: 0.635 MB / 0.9835 GB, free: 11.55 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.00226/0.3684, allocations: 1.684 MB / 0.9851 GB, free: 9.859 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.3684, allocations: 0 / 0.9851 GB, free: 9.859 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.835e-06/0.3684, allocations: 0 / 0.9851 GB, free: 9.859 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 3.193e-05/0.3685, allocations: 0 / 0.9851 GB, free: 9.859 MB / 0.6355 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.002779/0.3713, allocations: 1.497 MB / 0.9866 GB, free: 8.305 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.3713, allocations: 8.031 kB / 0.9866 GB, free: 8.297 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002162/0.3735, allocations: 474.8 kB / 0.987 GB, free: 7.832 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002316/0.3758, allocations: 1.136 MB / 0.9881 GB, free: 6.637 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003575/0.3762, allocations: 129.9 kB / 0.9883 GB, free: 6.512 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001288/0.3763, allocations: 87.94 kB / 0.9883 GB, free: 6.426 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00211/0.3785, allocations: 0.9995 MB / 0.9893 GB, free: 5.387 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.296e-05/0.3785, allocations: 3.984 kB / 0.9893 GB, free: 5.383 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.654e-05/0.3786, allocations: 35.98 kB / 0.9894 GB, free: 5.348 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.884e-05/0.3786, allocations: 20 kB / 0.9894 GB, free: 5.328 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002333/0.3809, allocations: 0.929 MB / 0.9903 GB, free: 4.398 MB / 0.6355 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.006563/0.3875, allocations: 4.644 MB / 0.9948 GB, free: 15.43 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003451/0.391, allocations: 0.9416 MB / 0.9957 GB, free: 14.48 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007604/0.3918, allocations: 342 kB / 0.9961 GB, free: 14.15 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007099/0.3925, allocations: 0.9068 MB / 0.997 GB, free: 13.04 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.944e-05/0.3925, allocations: 39 kB / 0.997 GB, free: 12.99 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=47): time 3.246e-06/0.3925, allocations: 0 / 0.997 GB, free: 12.99 MB / 0.6511 GB Notification: Performance of matching and sorting (n=47): time 0.008109/0.4007, allocations: 2.025 MB / 0.999 GB, free: 10.94 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.515e-05/0.4007, allocations: 55.84 kB / 0.999 GB, free: 10.88 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001589/0.4023, allocations: 1.051 MB / 1 GB, free: 9.809 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 8.902e-05/0.4024, allocations: 45.64 kB / 1 GB, free: 9.758 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004118/0.4029, allocations: 0.5196 MB / 1.001 GB, free: 9.234 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001471/0.403, allocations: 161.7 kB / 1.001 GB, free: 9.074 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.583e-05/0.4031, allocations: 8 kB / 1.001 GB, free: 9.066 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001178/0.4032, allocations: 334 kB / 1.001 GB, free: 8.734 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000901/0.4041, allocations: 332.9 kB / 1.001 GB, free: 8.406 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001073/0.4052, allocations: 0.5446 MB / 1.002 GB, free: 7.785 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001699/0.4069, allocations: 0.741 MB / 1.003 GB, free: 6.992 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/0.4069, allocations: 0 / 1.003 GB, free: 6.992 MB / 0.6511 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.003791/0.4107, allocations: 1.241 MB / 1.004 GB, free: 5.738 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001392/0.4109, allocations: 204 kB / 1.004 GB, free: 5.488 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-05/0.4109, allocations: 8 kB / 1.004 GB, free: 5.48 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00125/0.4121, allocations: 340.5 kB / 1.004 GB, free: 5.145 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005854/0.4127, allocations: 139.7 kB / 1.005 GB, free: 5.008 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001494/0.4142, allocations: 0.9386 MB / 1.005 GB, free: 4.043 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001401/0.4156, allocations: 191.2 kB / 1.006 GB, free: 3.855 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.009e-05/0.4157, allocations: 31.98 kB / 1.006 GB, free: 3.824 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.22e-05/0.4158, allocations: 7.938 kB / 1.006 GB, free: 3.816 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003393/0.4192, allocations: 1.092 MB / 1.007 GB, free: 2.719 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.4192, allocations: 4 kB / 1.007 GB, free: 2.715 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001128/0.4203, allocations: 327.1 kB / 1.007 GB, free: 2.395 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006044/0.421, allocations: 135.8 kB / 1.007 GB, free: 2.262 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001464/0.4224, allocations: 0.9387 MB / 1.008 GB, free: 1.297 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001336/0.4238, allocations: 175.2 kB / 1.008 GB, free: 1.125 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.947e-05/0.4239, allocations: 27.98 kB / 1.008 GB, free: 1.098 MB / 0.6511 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.0006443/0.4245, allocations: 353 kB / 1.009 GB, free: 0.7422 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001903/0.4247, allocations: 110.6 kB / 1.009 GB, free: 0.6328 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003975/0.4287, allocations: 1.248 MB / 1.01 GB, free: 15.37 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.895e-05/0.4287, allocations: 8 kB / 1.01 GB, free: 15.36 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.4288, allocations: 0 / 1.01 GB, free: 15.36 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.273e-05/0.4288, allocations: 3.984 kB / 1.01 GB, free: 15.36 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005454/0.4342, allocations: 2.31 MB / 1.012 GB, free: 12.96 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.089e-05/0.4343, allocations: 4 kB / 1.012 GB, free: 12.96 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003289/0.4346, allocations: 80.16 kB / 1.012 GB, free: 12.88 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001072/0.4357, allocations: 332.4 kB / 1.013 GB, free: 12.55 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.244e-05/0.4357, allocations: 12 kB / 1.013 GB, free: 12.54 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001486/0.4372, allocations: 0.9699 MB / 1.014 GB, free: 11.55 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.513e-06/0.4373, allocations: 7.938 kB / 1.014 GB, free: 11.54 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004754/0.442, allocations: 1.453 MB / 1.015 GB, free: 10.03 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006573/0.4427, allocations: 291.4 kB / 1.015 GB, free: 9.727 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001267/0.4428, allocations: 15.92 kB / 1.015 GB, free: 9.711 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009055/0.4438, allocations: 115.8 kB / 1.015 GB, free: 9.598 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.656e-05/0.4439, allocations: 35.91 kB / 1.015 GB, free: 9.562 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.788e-05/0.4439, allocations: 23.98 kB / 1.015 GB, free: 9.539 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.001231/0.4452, allocations: 0.7547 MB / 1.016 GB, free: 8.777 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.71e-07/0.4452, allocations: 0 / 1.016 GB, free: 8.777 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.001577/0.4468, allocations: 0.5536 MB / 1.017 GB, free: 8.223 MB / 0.6667 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.0008351/0.4476, allocations: 371.9 kB / 1.017 GB, free: 7.855 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.003261/0.4509, allocations: 1.221 MB / 1.018 GB, free: 6.637 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 7.183e-06/0.4509, allocations: 4 kB / 1.018 GB, free: 6.633 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0009248/0.4518, allocations: 387 kB / 1.019 GB, free: 6.254 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002981/0.4548, allocations: 0.5263 MB / 1.019 GB, free: 5.734 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005574/0.4604, allocations: 2.575 MB / 1.022 GB, free: 3.094 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006118/0.4611, allocations: 1.07 MB / 1.023 GB, free: 1.996 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00029/0.4614, allocations: 83.41 kB / 1.023 GB, free: 1.914 MB / 0.6667 GB Notification: Performance of SimCode: time 4.21e-07/0.4614, allocations: 0 / 1.023 GB, free: 1.914 MB / 0.6667 GB Notification: Performance of Templates: time 0.03309/0.4945, allocations: 23.93 MB / 1.046 GB, free: 10.11 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe 2>&1)