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.513/1.513, allocations: 251.5 MB / 267.4 MB, free: 11.06 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.0009452/0.0009451, allocations: 177.3 kB / 326.5 MB, free: 2.691 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.749/1.749, allocations: 205 MB / 0.5766 GB, free: 20.98 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.000723/0.000723, allocations: 76.02 kB / 0.6803 GB, free: 14.72 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0002989/0.0002989, allocations: 8.5 kB / 0.7938 GB, free: 136.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2175/0.2179, allocations: 105.4 MB / 0.8967 GB, free: 68.2 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.03997/0.2579, allocations: 60.53 MB / 0.9558 GB, free: 7.453 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.01493/0.2728, allocations: 11.93 MB / 0.9675 GB, free: 11.49 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003583/0.2765, allocations: 55.62 kB / 0.9675 GB, free: 11.44 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0028/0.2793, allocations: 0.5477 MB / 0.9681 GB, free: 10.89 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.006641/0.286, allocations: 1.791 MB / 0.9698 GB, free: 9.09 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.003315/0.2893, allocations: 1.087 MB / 0.9709 GB, free: 8.012 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.005309/0.2946, allocations: 3.886 MB / 0.9747 GB, free: 4.105 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001677/0.2963, allocations: 0.8884 MB / 0.9756 GB, free: 3.184 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002735/0.2991, allocations: 1.124 MB / 0.9767 GB, free: 2.055 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001591/0.3007, allocations: 0.8708 MB / 0.9775 GB, free: 1.18 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 0.0001508/0.3009, allocations: 44 kB / 0.9775 GB, free: 1.137 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002856/0.3037, allocations: 1.29 MB / 0.9788 GB, free: 15.84 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 0.0002662/0.304, allocations: 214.9 kB / 0.979 GB, free: 15.63 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 0.0008013/0.3048, allocations: 0.606 MB / 0.9796 GB, free: 15.02 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.002275/0.3071, allocations: 1.684 MB / 0.9812 GB, free: 13.34 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.3071, allocations: 11.94 kB / 0.9813 GB, free: 13.32 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.833e-06/0.3071, allocations: 0 / 0.9813 GB, free: 13.32 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.447e-05/0.3072, allocations: 4 kB / 0.9813 GB, free: 13.32 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.002793/0.31, allocations: 1.491 MB / 0.9827 GB, free: 11.77 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.881e-05/0.31, allocations: 12.03 kB / 0.9827 GB, free: 11.76 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00221/0.3122, allocations: 470.9 kB / 0.9832 GB, free: 11.3 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002223/0.3145, allocations: 1.128 MB / 0.9843 GB, free: 10.11 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003507/0.3148, allocations: 121.9 kB / 0.9844 GB, free: 9.992 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001126/0.3149, allocations: 84 kB / 0.9845 GB, free: 9.91 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00207/0.317, allocations: 1.007 MB / 0.9855 GB, free: 8.867 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.119e-05/0.3171, allocations: 11.88 kB / 0.9855 GB, free: 8.855 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.912e-05/0.3171, allocations: 36 kB / 0.9855 GB, free: 8.82 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.921e-05/0.3172, allocations: 16 kB / 0.9855 GB, free: 8.805 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002354/0.3195, allocations: 0.9329 MB / 0.9864 GB, free: 7.867 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.006786/0.3263, allocations: 4.648 MB / 0.991 GB, free: 2.906 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003499/0.3299, allocations: 0.9454 MB / 0.9919 GB, free: 1.953 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000819/0.3307, allocations: 336.5 kB / 0.9922 GB, free: 1.625 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006713/0.3314, allocations: 0.9068 MB / 0.9931 GB, free: 0.5156 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.271e-05/0.3314, allocations: 42.98 kB / 0.9931 GB, free: 476 kB / 0.6355 GB Notification: Performance of pre-optimization done (n=47): time 2.244e-06/0.3314, allocations: 0 / 0.9931 GB, free: 476 kB / 0.6355 GB Notification: Performance of matching and sorting (n=47): time 0.008056/0.3395, allocations: 2.018 MB / 0.9951 GB, free: 14.42 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.061e-05/0.3396, allocations: 55.84 kB / 0.9952 GB, free: 14.35 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001701/0.3413, allocations: 1.059 MB / 0.9962 GB, free: 13.28 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.000116/0.3414, allocations: 41.7 kB / 0.9962 GB, free: 13.23 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004621/0.3419, allocations: 0.5196 MB / 0.9967 GB, free: 12.71 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001552/0.342, allocations: 157.7 kB / 0.9969 GB, free: 12.55 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.358e-05/0.3421, allocations: 49.7 kB / 0.9969 GB, free: 12.5 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001444/0.3423, allocations: 326 kB / 0.9973 GB, free: 12.17 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00091/0.3432, allocations: 344.9 kB / 0.9976 GB, free: 11.84 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001114/0.3443, allocations: 0.5329 MB / 0.9981 GB, free: 11.23 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001873/0.3462, allocations: 0.7488 MB / 0.9988 GB, free: 10.43 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.397e-06/0.3463, allocations: 4 kB / 0.9988 GB, free: 10.42 MB / 0.6511 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.004166/0.3504, allocations: 1.26 MB / 1 GB, free: 9.148 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001875/0.3506, allocations: 209 kB / 1 GB, free: 8.891 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.416e-05/0.3507, allocations: 4 kB / 1 GB, free: 8.887 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001397/0.3521, allocations: 332.5 kB / 1.001 GB, free: 8.559 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006218/0.3527, allocations: 139.8 kB / 1.001 GB, free: 8.422 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001616/0.3543, allocations: 0.9406 MB / 1.002 GB, free: 7.457 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001488/0.3558, allocations: 195.2 kB / 1.002 GB, free: 7.266 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.001e-05/0.3559, allocations: 35.92 kB / 1.002 GB, free: 7.23 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.224e-05/0.356, allocations: 4 kB / 1.002 GB, free: 7.227 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00351/0.3595, allocations: 1.108 MB / 1.003 GB, free: 6.113 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.3595, allocations: 4 kB / 1.003 GB, free: 6.109 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001121/0.3606, allocations: 325 kB / 1.003 GB, free: 5.789 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005394/0.3612, allocations: 131.8 kB / 1.003 GB, free: 5.66 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001441/0.3626, allocations: 0.9377 MB / 1.004 GB, free: 4.699 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001317/0.364, allocations: 167.3 kB / 1.004 GB, free: 4.535 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.163e-05/0.364, allocations: 39.91 kB / 1.005 GB, free: 4.496 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.0006078/0.3647, allocations: 353 kB / 1.005 GB, free: 4.141 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002042/0.3649, allocations: 110.6 kB / 1.005 GB, free: 4.031 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003815/0.3687, allocations: 1.241 MB / 1.006 GB, free: 2.77 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-05/0.3687, allocations: 12 kB / 1.006 GB, free: 2.758 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.3688, allocations: 4 kB / 1.006 GB, free: 2.754 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.518e-06/0.3688, allocations: 3.984 kB / 1.006 GB, free: 2.75 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005518/0.3743, allocations: 2.302 MB / 1.008 GB, free: 372 kB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.328e-06/0.3743, allocations: 0 / 1.008 GB, free: 372 kB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003097/0.3747, allocations: 84.16 kB / 1.009 GB, free: 288 kB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001071/0.3757, allocations: 328.5 kB / 1.009 GB, free: 15.95 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.22e-05/0.3758, allocations: 16 kB / 1.009 GB, free: 15.94 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001449/0.3773, allocations: 0.9804 MB / 1.01 GB, free: 14.93 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.3773, allocations: 4.031 kB / 1.01 GB, free: 14.93 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004415/0.3817, allocations: 1.453 MB / 1.011 GB, free: 13.43 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006268/0.3823, allocations: 271.5 kB / 1.011 GB, free: 13.14 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002616/0.3826, allocations: 15.94 kB / 1.011 GB, free: 13.12 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009399/0.3836, allocations: 111.8 kB / 1.012 GB, free: 13.02 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001051/0.3837, allocations: 51.83 kB / 1.012 GB, free: 12.96 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.729e-05/0.3837, allocations: 23.98 kB / 1.012 GB, free: 12.94 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.001156/0.3849, allocations: 0.7469 MB / 1.012 GB, free: 12.19 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3849, allocations: 0 / 1.012 GB, free: 12.19 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.001561/0.3865, allocations: 0.5536 MB / 1.013 GB, free: 11.63 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.0007603/0.3873, allocations: 354.9 kB / 1.013 GB, free: 11.28 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.003295/0.3906, allocations: 1.218 MB / 1.014 GB, free: 10.07 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.3906, allocations: 3.938 kB / 1.014 GB, free: 10.06 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0009455/0.3915, allocations: 395 kB / 1.015 GB, free: 9.676 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003072/0.3946, allocations: 0.5251 MB / 1.015 GB, free: 9.16 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005954/0.4006, allocations: 2.562 MB / 1.018 GB, free: 6.539 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007218/0.4014, allocations: 1.062 MB / 1.019 GB, free: 5.449 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003417/0.4017, allocations: 87.41 kB / 1.019 GB, free: 5.363 MB / 0.6667 GB Notification: Performance of SimCode: time 9.22e-07/0.4017, allocations: 0 / 1.019 GB, free: 5.363 MB / 0.6667 GB Notification: Performance of Templates: time 0.03452/0.4363, allocations: 23.93 MB / 1.042 GB, free: 13.55 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)