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.001163/0.001163, allocations: 100.2 kB / 16.26 MB, free: 6.418 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.001038/0.001038, allocations: 189.7 kB / 17.2 MB, free: 5.953 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.441/1.441, allocations: 205.1 MB / 223.1 MB, free: 12.31 MB / 190.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.833/1.833, allocations: 292.3 MB / 0.5495 GB, free: 17.47 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.001646/0.001646, allocations: 63.91 kB / 0.6721 GB, free: 6.547 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2406/0.2422, allocations: 114.6 MB / 0.784 GB, free: 3.871 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.4535/0.6958, allocations: 61.21 MB / 0.8438 GB, free: 9.031 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.01777/0.7136, allocations: 11.9 MB / 0.8554 GB, free: 0.5234 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003386/0.7171, allocations: 62.31 kB / 0.8555 GB, free: 0.5 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.002493/0.7196, allocations: 0.6793 MB / 0.8561 GB, free: 64 kB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.008247/0.7279, allocations: 1.948 MB / 0.858 GB, free: 14.89 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.004278/0.7322, allocations: 1.212 MB / 0.8592 GB, free: 14.23 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.006285/0.7385, allocations: 3.066 MB / 0.8622 GB, free: 12.73 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00246/0.741, allocations: 1.107 MB / 0.8633 GB, free: 12.23 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004508/0.7455, allocations: 1.336 MB / 0.8646 GB, free: 11.57 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002428/0.748, allocations: 0.9026 MB / 0.8655 GB, free: 11.14 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.0003276/0.7483, allocations: 117.5 kB / 0.8656 GB, free: 11.14 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004376/0.7527, allocations: 1.439 MB / 0.867 GB, free: 10.66 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.0004977/0.7532, allocations: 289.5 kB / 0.8673 GB, free: 10.47 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.001371/0.7546, allocations: 0.6996 MB / 0.868 GB, free: 10.03 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.005518/0.7602, allocations: 2.296 MB / 0.8702 GB, free: 8.906 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.7602, allocations: 0 / 0.8702 GB, free: 8.906 MB / 0.67 GB Notification: Performance of FrontEnd: time 2.204e-06/0.7602, allocations: 0 / 0.8702 GB, free: 8.906 MB / 0.67 GB Notification: Performance of Transformations before backend: time 4.197e-05/0.7603, allocations: 1.312 kB / 0.8702 GB, free: 8.906 MB / 0.67 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.004494/0.7648, allocations: 1.733 MB / 0.8719 GB, free: 7.566 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 5.28e-05/0.7648, allocations: 8.719 kB / 0.8719 GB, free: 7.566 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002319/0.7672, allocations: 405.6 kB / 0.8723 GB, free: 7.383 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002673/0.7698, allocations: 1.118 MB / 0.8734 GB, free: 6.473 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003594/0.7702, allocations: 114.5 kB / 0.8735 GB, free: 6.426 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001563/0.7704, allocations: 80 kB / 0.8736 GB, free: 6.402 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002212/0.7726, allocations: 1.011 MB / 0.8746 GB, free: 5.738 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.158e-05/0.7727, allocations: 1.375 kB / 0.8746 GB, free: 5.738 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.263e-05/0.7727, allocations: 32.72 kB / 0.8746 GB, free: 5.715 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.947e-05/0.7728, allocations: 19.06 kB / 0.8746 GB, free: 5.715 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002392/0.7752, allocations: 0.8792 MB / 0.8755 GB, free: 5.277 MB / 0.67 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.007655/0.7828, allocations: 5.001 MB / 0.8804 GB, free: 0.8398 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003593/0.7865, allocations: 0.8368 MB / 0.8812 GB, free: 428 kB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008142/0.7873, allocations: 317.5 kB / 0.8815 GB, free: 272 kB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007772/0.7881, allocations: 0.9022 MB / 0.8824 GB, free: 15.2 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.479e-05/0.7881, allocations: 45.84 kB / 0.8824 GB, free: 15.16 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=47): time 3.316e-06/0.7881, allocations: 0 / 0.8824 GB, free: 15.16 MB / 0.6856 GB Notification: Performance of matching and sorting (n=47): time 0.008287/0.7964, allocations: 1.808 MB / 0.8842 GB, free: 14.22 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.741e-05/0.7965, allocations: 55.69 kB / 0.8842 GB, free: 14.16 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002249/0.7988, allocations: 1.071 MB / 0.8853 GB, free: 13.56 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0001494/0.799, allocations: 42.89 kB / 0.8853 GB, free: 13.52 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005368/0.7995, allocations: 0.5247 MB / 0.8858 GB, free: 13.05 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002144/0.7997, allocations: 171 kB / 0.886 GB, free: 12.91 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003297/0.8001, allocations: 146.3 kB / 0.8861 GB, free: 12.82 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001432/0.8002, allocations: 326.6 kB / 0.8864 GB, free: 12.5 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001026/0.8013, allocations: 327.4 kB / 0.8867 GB, free: 12.33 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001243/0.8025, allocations: 0.549 MB / 0.8873 GB, free: 11.89 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001942/0.8045, allocations: 0.7309 MB / 0.888 GB, free: 11.41 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.818e-06/0.8045, allocations: 1.125 kB / 0.888 GB, free: 11.41 MB / 0.6856 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.004334/0.8088, allocations: 1.209 MB / 0.8892 GB, free: 10.8 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 2.8e-05/0.8089, allocations: 5.875 kB / 0.8892 GB, free: 10.8 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.577e-05/0.8089, allocations: 10.03 kB / 0.8892 GB, free: 10.8 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001371/0.8103, allocations: 320.4 kB / 0.8895 GB, free: 10.65 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006271/0.8109, allocations: 133.4 kB / 0.8896 GB, free: 10.62 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001664/0.8126, allocations: 0.9216 MB / 0.8905 GB, free: 9.887 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001598/0.8142, allocations: 155.2 kB / 0.8907 GB, free: 9.805 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001247/0.8144, allocations: 35.23 kB / 0.8907 GB, free: 9.793 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001513/0.8159, allocations: 0.5271 MB / 0.8912 GB, free: 9.48 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001232/0.8171, allocations: 0.5385 MB / 0.8917 GB, free: 9.043 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001879/0.819, allocations: 0.7311 MB / 0.8925 GB, free: 8.559 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.488e-06/0.819, allocations: 2.438 kB / 0.8925 GB, free: 8.559 MB / 0.6856 GB Notification: Performance of matching and sorting (n=75) (initialization_lambda0): time 0.004094/0.8231, allocations: 1.2 MB / 0.8936 GB, free: 7.957 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.8232, allocations: 9.188 kB / 0.8936 GB, free: 7.957 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.8232, allocations: 5.438 kB / 0.8936 GB, free: 7.957 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001172/0.8244, allocations: 311.8 kB / 0.8939 GB, free: 7.812 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006192/0.825, allocations: 135.5 kB / 0.8941 GB, free: 7.773 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001561/0.8266, allocations: 0.9135 MB / 0.895 GB, free: 7.047 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00167/0.8283, allocations: 137.8 kB / 0.8951 GB, free: 6.98 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001285/0.8284, allocations: 35.06 kB / 0.8951 GB, free: 6.969 MB / 0.6856 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.000336/0.8288, allocations: 221 kB / 0.8953 GB, free: 6.758 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004563/0.8292, allocations: 117.6 kB / 0.8955 GB, free: 6.695 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004388/0.8336, allocations: 1.145 MB / 0.8966 GB, free: 6.059 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.988e-05/0.8337, allocations: 9.5 kB / 0.8966 GB, free: 6.055 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.406e-06/0.8337, allocations: 4 kB / 0.8966 GB, free: 6.051 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.758e-06/0.8337, allocations: 5.359 kB / 0.8966 GB, free: 6.047 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006629/0.8403, allocations: 2.208 MB / 0.8987 GB, free: 4.207 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.576e-05/0.8404, allocations: 12.27 kB / 0.8988 GB, free: 4.195 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003282/0.8407, allocations: 75.33 kB / 0.8988 GB, free: 4.125 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001081/0.8418, allocations: 303 kB / 0.8991 GB, free: 3.828 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.686e-05/0.8419, allocations: 19.98 kB / 0.8991 GB, free: 3.809 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001599/0.8435, allocations: 0.941 MB / 0.9001 GB, free: 2.844 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.815e-06/0.8435, allocations: 3.984 kB / 0.9001 GB, free: 2.84 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004872/0.8484, allocations: 1.345 MB / 0.9014 GB, free: 1.453 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007505/0.8492, allocations: 263.5 kB / 0.9016 GB, free: 1.176 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003459/0.8496, allocations: 16 kB / 0.9016 GB, free: 1.16 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001027/0.8506, allocations: 79.84 kB / 0.9017 GB, free: 1.082 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001098/0.8507, allocations: 39.83 kB / 0.9018 GB, free: 1.043 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.034e-05/0.8508, allocations: 23.98 kB / 0.9018 GB, free: 1.02 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.001418/0.8522, allocations: 0.7551 MB / 0.9025 GB, free: 264 kB / 0.6856 GB Notification: Performance of sort global known variables: time 2.71e-07/0.8522, allocations: 0 / 0.9025 GB, free: 264 kB / 0.6856 GB Notification: Performance of remove unused functions: time 0.002319/0.8545, allocations: 0.5731 MB / 0.9031 GB, free: 15.68 MB / 0.7012 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.001238/0.8558, allocations: 383.5 kB / 0.9034 GB, free: 15.31 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.003811/0.8596, allocations: 1.205 MB / 0.9046 GB, free: 14.11 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/0.8597, allocations: 4.062 kB / 0.9046 GB, free: 14.1 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.001016/0.8607, allocations: 375.1 kB / 0.905 GB, free: 13.73 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003221/0.8639, allocations: 0.5269 MB / 0.9055 GB, free: 13.26 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006116/0.87, allocations: 2.096 MB / 0.9075 GB, free: 11.1 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008424/0.8709, allocations: 1.062 MB / 0.9086 GB, free: 10.01 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003591/0.8713, allocations: 91.41 kB / 0.9087 GB, free: 9.918 MB / 0.7012 GB Notification: Performance of SimCode: time 1.252e-06/0.8713, allocations: 0 / 0.9087 GB, free: 9.918 MB / 0.7012 GB Notification: Performance of Templates: time 0.03599/0.9073, allocations: 24.37 MB / 0.9325 GB, free: 1.793 MB / 0.7169 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)