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.001141/0.001142, allocations: 112.8 kB / 16.37 MB, free: 6.012 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.001136/0.001136, allocations: 188.8 kB / 17.31 MB, free: 5.609 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.469/1.469, allocations: 205.1 MB / 223.2 MB, free: 12.26 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.743/1.743, allocations: 292.3 MB / 0.5496 GB, free: 17.62 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.001475/0.001475, allocations: 72.11 kB / 0.6729 GB, free: 5.883 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2655/0.267, allocations: 114.5 MB / 0.7848 GB, free: 3.227 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.4828/0.7498, allocations: 61.23 MB / 0.8446 GB, free: 8.797 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.01605/0.7659, allocations: 11.89 MB / 0.8562 GB, free: 308 kB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003137/0.7691, allocations: 55.44 kB / 0.8562 GB, free: 288 kB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.002268/0.7715, allocations: 0.6875 MB / 0.8569 GB, free: 15.84 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.006851/0.7784, allocations: 1.948 MB / 0.8588 GB, free: 14.67 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.004169/0.7826, allocations: 1.217 MB / 0.86 GB, free: 14 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.005583/0.7882, allocations: 3.069 MB / 0.863 GB, free: 12.5 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001913/0.7901, allocations: 1.11 MB / 0.8641 GB, free: 12.01 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003849/0.794, allocations: 1.343 MB / 0.8654 GB, free: 11.34 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00194/0.7959, allocations: 0.9046 MB / 0.8663 GB, free: 10.92 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.0002626/0.7962, allocations: 115.8 kB / 0.8664 GB, free: 10.92 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003924/0.8001, allocations: 1.445 MB / 0.8678 GB, free: 10.43 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.0003937/0.8005, allocations: 290.8 kB / 0.8681 GB, free: 10.24 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.00116/0.8017, allocations: 0.697 MB / 0.8688 GB, free: 9.805 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.004471/0.8062, allocations: 2.315 MB / 0.871 GB, free: 8.617 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/0.8062, allocations: 0 / 0.871 GB, free: 8.617 MB / 0.67 GB Notification: Performance of FrontEnd: time 2.324e-06/0.8062, allocations: 0 / 0.871 GB, free: 8.617 MB / 0.67 GB Notification: Performance of Transformations before backend: time 2.943e-05/0.8063, allocations: 5.469 kB / 0.871 GB, free: 8.613 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.003638/0.8099, allocations: 1.724 MB / 0.8727 GB, free: 7.281 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/0.81, allocations: 9.812 kB / 0.8727 GB, free: 7.281 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002238/0.8122, allocations: 410.4 kB / 0.8731 GB, free: 7.094 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00239/0.8146, allocations: 1.173 MB / 0.8743 GB, free: 6.156 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.791e-05/0.8147, allocations: 60.78 kB / 0.8743 GB, free: 6.129 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001251/0.8148, allocations: 86.78 kB / 0.8744 GB, free: 6.102 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002086/0.8169, allocations: 0.9964 MB / 0.8754 GB, free: 5.445 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.21e-05/0.817, allocations: 10.06 kB / 0.8754 GB, free: 5.438 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.728e-05/0.8171, allocations: 31.31 kB / 0.8754 GB, free: 5.414 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.102e-05/0.8171, allocations: 23.72 kB / 0.8754 GB, free: 5.41 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002363/0.8195, allocations: 0.8645 MB / 0.8763 GB, free: 4.984 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.006905/0.8264, allocations: 4.97 MB / 0.8811 GB, free: 0.5625 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003505/0.8299, allocations: 0.8192 MB / 0.8819 GB, free: 152 kB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007921/0.8307, allocations: 314.3 kB / 0.8822 GB, free: 15.99 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006781/0.8314, allocations: 0.9031 MB / 0.8831 GB, free: 14.93 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.532e-05/0.8314, allocations: 37.5 kB / 0.8831 GB, free: 14.89 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=47): time 2.224e-06/0.8315, allocations: 0 / 0.8831 GB, free: 14.89 MB / 0.6856 GB Notification: Performance of matching and sorting (n=47): time 0.008032/0.8395, allocations: 1.764 MB / 0.8849 GB, free: 13.97 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.178e-05/0.8396, allocations: 64.62 kB / 0.8849 GB, free: 13.9 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001823/0.8414, allocations: 1.07 MB / 0.886 GB, free: 13.3 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0001227/0.8415, allocations: 38.27 kB / 0.886 GB, free: 13.27 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004394/0.842, allocations: 0.5297 MB / 0.8865 GB, free: 12.8 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001631/0.8422, allocations: 162 kB / 0.8867 GB, free: 12.66 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002658/0.8424, allocations: 142.6 kB / 0.8868 GB, free: 12.57 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001107/0.8426, allocations: 331.4 kB / 0.8871 GB, free: 12.25 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009377/0.8435, allocations: 320.6 kB / 0.8874 GB, free: 12.09 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001144/0.8446, allocations: 0.5411 MB / 0.888 GB, free: 11.64 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001763/0.8464, allocations: 0.7242 MB / 0.8887 GB, free: 11.16 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.606e-06/0.8464, allocations: 2.625 kB / 0.8887 GB, free: 11.16 MB / 0.6856 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.004008/0.8505, allocations: 1.193 MB / 0.8898 GB, free: 10.56 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 2.515e-05/0.8505, allocations: 10.91 kB / 0.8899 GB, free: 10.56 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.547e-05/0.8505, allocations: 8.656 kB / 0.8899 GB, free: 10.56 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001256/0.8518, allocations: 306.3 kB / 0.8902 GB, free: 10.42 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006129/0.8524, allocations: 133.2 kB / 0.8903 GB, free: 10.38 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001461/0.8539, allocations: 0.8964 MB / 0.8912 GB, free: 9.668 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001523/0.8554, allocations: 153 kB / 0.8913 GB, free: 9.586 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001053/0.8555, allocations: 30.8 kB / 0.8913 GB, free: 9.578 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001329/0.8569, allocations: 0.5306 MB / 0.8918 GB, free: 9.258 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001092/0.858, allocations: 0.5316 MB / 0.8924 GB, free: 8.824 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001736/0.8597, allocations: 0.7243 MB / 0.8931 GB, free: 8.34 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.599e-06/0.8597, allocations: 2.219 kB / 0.8931 GB, free: 8.34 MB / 0.6856 GB Notification: Performance of matching and sorting (n=75) (initialization_lambda0): time 0.003827/0.8636, allocations: 1.169 MB / 0.8942 GB, free: 7.754 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/0.8636, allocations: 6.781 kB / 0.8942 GB, free: 7.754 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.8636, allocations: 4.75 kB / 0.8942 GB, free: 7.754 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001099/0.8647, allocations: 298.3 kB / 0.8945 GB, free: 7.613 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005729/0.8653, allocations: 136.7 kB / 0.8946 GB, free: 7.574 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001377/0.8667, allocations: 0.9012 MB / 0.8955 GB, free: 6.852 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001522/0.8682, allocations: 137.8 kB / 0.8957 GB, free: 6.781 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.506e-05/0.8683, allocations: 29.98 kB / 0.8957 GB, free: 6.773 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.0002861/0.8686, allocations: 221.8 kB / 0.8959 GB, free: 6.562 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000243/0.8689, allocations: 112.2 kB / 0.896 GB, free: 6.504 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003939/0.8728, allocations: 1.13 MB / 0.8971 GB, free: 5.875 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.828e-05/0.8729, allocations: 9.469 kB / 0.8971 GB, free: 5.871 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.8729, allocations: 1.688 kB / 0.8971 GB, free: 5.871 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.749e-06/0.8729, allocations: 3.984 kB / 0.8971 GB, free: 5.867 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005358/0.8783, allocations: 2.198 MB / 0.8993 GB, free: 4.031 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.837e-06/0.8783, allocations: 8.219 kB / 0.8993 GB, free: 4.023 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003103/0.8786, allocations: 73.88 kB / 0.8993 GB, free: 3.953 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009801/0.8796, allocations: 307.4 kB / 0.8996 GB, free: 3.652 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.817e-05/0.8797, allocations: 12 kB / 0.8997 GB, free: 3.641 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001414/0.8811, allocations: 0.9213 MB / 0.9006 GB, free: 2.695 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.422e-06/0.8811, allocations: 3.938 kB / 0.9006 GB, free: 2.691 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004491/0.8856, allocations: 1.329 MB / 0.9019 GB, free: 1.32 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006441/0.8862, allocations: 267.5 kB / 0.9021 GB, free: 1.039 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001585/0.8864, allocations: 8 kB / 0.9021 GB, free: 1.031 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008324/0.8872, allocations: 75.91 kB / 0.9022 GB, free: 0.957 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.276e-05/0.8873, allocations: 35.89 kB / 0.9022 GB, free: 0.9219 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.888e-05/0.8874, allocations: 23.98 kB / 0.9022 GB, free: 0.8984 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.001283/0.8887, allocations: 0.7551 MB / 0.903 GB, free: 140 kB / 0.6856 GB Notification: Performance of sort global known variables: time 4.31e-07/0.8887, allocations: 4 kB / 0.903 GB, free: 136 kB / 0.6856 GB Notification: Performance of remove unused functions: time 0.002021/0.8907, allocations: 0.5693 MB / 0.9035 GB, free: 15.56 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.001059/0.8918, allocations: 383.3 kB / 0.9039 GB, free: 15.19 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.003501/0.8953, allocations: 1.182 MB / 0.9051 GB, free: 14.01 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 6.072e-06/0.8953, allocations: 0 / 0.9051 GB, free: 14.01 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.0009505/0.8963, allocations: 375.4 kB / 0.9054 GB, free: 13.64 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002607/0.8989, allocations: 0.527 MB / 0.9059 GB, free: 13.16 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005197/0.9041, allocations: 2.049 MB / 0.9079 GB, free: 11.05 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005914/0.9047, allocations: 1.066 MB / 0.909 GB, free: 9.953 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003001/0.9051, allocations: 87.41 kB / 0.9091 GB, free: 9.867 MB / 0.7012 GB Notification: Performance of SimCode: time 1.152e-06/0.9051, allocations: 0 / 0.9091 GB, free: 9.867 MB / 0.7012 GB Notification: Performance of Templates: time 0.03175/0.9368, allocations: 24.36 MB / 0.9328 GB, free: 1.762 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)