Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_3.0.0_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo", uses=false)
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 3.0.0/package.mo", uses=false)
Using package Buildings with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/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)
Using package Modelica_StateGraph2 with version 2.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo)
Running command: translateModel(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon")
translateModel(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon")
[/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:257:38-257:110:writable] Warning: The file was not encoded in UTF-8:
"
An important practical aspect of state machines is the abilit...".
Defaulting to 7-bit ASCII with unknown characters replaced by '?'.
To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY").
To change it in a package: add a file package.encoding at the top-level.
Note: The Modelica Language Specification only allows files encoded in UTF-8.
[/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:761:36-761:108:writable] Warning: The file was not encoded in UTF-8:
"
The Modelica_StateGraph2 library is described in detail in (O...".
Defaulting to 7-bit ASCII with unknown characters replaced by '?'.
To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY").
To change it in a package: add a file package.encoding at the top-level.
Note: The Modelica Language Specification only allows files encoded in UTF-8.
[/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:1435:36-1435:108:writable] Warning: The file was not encoded in UTF-8:
"
- Main Authors:
-
SCode: time 0.1987/0.1995, allocations: 82.21 MB / 0.5934 GB, free: 6.035 MB / 446.1 MB
Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.05075/0.2503, allocations: 50.49 MB / 0.6427 GB, free: 3.414 MB / 494.1 MB
Notification: Performance of NFInst.instExpressions: time 0.01307/0.2634, allocations: 9.444 MB / 0.6519 GB, free: 9.953 MB / 0.4981 GB
Notification: Performance of NFInst.updateImplicitVariability: time 0.002201/0.2656, allocations: 39.69 kB / 0.6519 GB, free: 9.914 MB / 0.4981 GB
Notification: Performance of NFTyping.typeComponents: time 0.002285/0.2679, allocations: 0.5753 MB / 0.6525 GB, free: 9.336 MB / 0.4981 GB
Notification: Performance of NFTyping.typeBindings: time 0.005812/0.2738, allocations: 1.833 MB / 0.6543 GB, free: 7.5 MB / 0.4981 GB
Notification: Performance of NFTyping.typeClassSections: time 0.002759/0.2765, allocations: 0.8969 MB / 0.6552 GB, free: 6.625 MB / 0.4981 GB
Notification: Performance of NFFlatten.flatten: time 0.003397/0.28, allocations: 1.784 MB / 0.6569 GB, free: 4.836 MB / 0.4981 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.001191/0.2812, allocations: 0.8093 MB / 0.6577 GB, free: 4.008 MB / 0.4981 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.002159/0.2833, allocations: 1.078 MB / 0.6587 GB, free: 2.926 MB / 0.4981 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.001045/0.2844, allocations: 0.6496 MB / 0.6594 GB, free: 2.273 MB / 0.4981 GB
Notification: Performance of NFPackage.collectConstants: time 0.0001224/0.2845, allocations: 48 kB / 0.6594 GB, free: 2.227 MB / 0.4981 GB
Notification: Performance of NFFlatten.collectFunctions: time 0.001731/0.2863, allocations: 0.6864 MB / 0.6601 GB, free: 1.539 MB / 0.4981 GB
Notification: Performance of NFScalarize.scalarize: time 0.0002293/0.2865, allocations: 207.1 kB / 0.6603 GB, free: 1.336 MB / 0.4981 GB
Notification: Performance of NFVerifyModel.verify: time 0.0003025/0.2868, allocations: 293 kB / 0.6606 GB, free: 1.043 MB / 0.4981 GB
Notification: Performance of NFConvertDAE.convert: time 0.001659/0.2885, allocations: 1.535 MB / 0.6621 GB, free: 15.5 MB / 0.5137 GB
Notification: Performance of FrontEnd - DAE generated: time 2.796e-06/0.2885, allocations: 0 / 0.6621 GB, free: 15.5 MB / 0.5137 GB
Notification: Performance of FrontEnd: time 1.673e-06/0.2885, allocations: 8 kB / 0.6621 GB, free: 15.5 MB / 0.5137 GB
Notification: Performance of Transformations before backend: time 1.545e-05/0.2885, allocations: 0 / 0.6621 GB, free: 15.5 MB / 0.5137 GB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
* Number of equations: 218
* Number of variables: 218
Notification: Performance of Generate backend data structure: time 0.002766/0.2913, allocations: 1.469 MB / 0.6635 GB, free: 13.97 MB / 0.5137 GB
Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.2913, allocations: 8.031 kB / 0.6635 GB, free: 13.96 MB / 0.5137 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002395/0.2937, allocations: 497.9 kB / 0.664 GB, free: 13.47 MB / 0.5137 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.00216/0.2959, allocations: 1.031 MB / 0.665 GB, free: 12.4 MB / 0.5137 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003604/0.2963, allocations: 141.9 kB / 0.6651 GB, free: 12.26 MB / 0.5137 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001245/0.2964, allocations: 84 kB / 0.6652 GB, free: 12.18 MB / 0.5137 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.002632/0.2991, allocations: 1.272 MB / 0.6665 GB, free: 10.82 MB / 0.5137 GB
Notification: Performance of preOpt findStateOrder (simulation): time 2.398e-05/0.2991, allocations: 3.938 kB / 0.6665 GB, free: 10.81 MB / 0.5137 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.636e-05/0.2992, allocations: 39.98 kB / 0.6665 GB, free: 10.77 MB / 0.5137 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.39e-05/0.2993, allocations: 28 kB / 0.6665 GB, free: 10.75 MB / 0.5137 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002991/0.3023, allocations: 1.097 MB / 0.6676 GB, free: 9.648 MB / 0.5137 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.007962/0.3102, allocations: 6.046 MB / 0.6735 GB, free: 3.215 MB / 0.5137 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.002454/0.3127, allocations: 0.7535 MB / 0.6742 GB, free: 2.457 MB / 0.5137 GB
Notification: Performance of preOpt evalFunc (simulation): time 0.0002527/0.313, allocations: 259.6 kB / 0.6745 GB, free: 2.148 MB / 0.5137 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.209e-05/0.313, allocations: 38.89 kB / 0.6745 GB, free: 2.102 MB / 0.5137 GB
Notification: Performance of pre-optimization done (n=39): time 3.717e-06/0.3131, allocations: 4 kB / 0.6745 GB, free: 2.098 MB / 0.5137 GB
Notification: Performance of matching and sorting (n=39): time 0.00848/0.3215, allocations: 2.056 MB / 0.6765 GB, free: 16 kB / 0.5137 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001135/0.3217, allocations: 166.2 kB / 0.6767 GB, free: 15.82 MB / 0.5294 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001713/0.3234, allocations: 1.12 MB / 0.6778 GB, free: 14.68 MB / 0.5294 GB
Notification: Performance of collectPreVariables (initialization): time 9.996e-05/0.3235, allocations: 37.7 kB / 0.6778 GB, free: 14.64 MB / 0.5294 GB
Notification: Performance of collectInitialEqns (initialization): time 0.0004613/0.324, allocations: 0.585 MB / 0.6784 GB, free: 14.05 MB / 0.5294 GB
Notification: Performance of collectInitialBindings (initialization): time 0.0001363/0.3241, allocations: 146 kB / 0.6785 GB, free: 13.91 MB / 0.5294 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 3.808e-05/0.3242, allocations: 8 kB / 0.6785 GB, free: 13.9 MB / 0.5294 GB
Notification: Performance of setup shared object (initialization): time 0.0001312/0.3243, allocations: 334 kB / 0.6789 GB, free: 13.57 MB / 0.5294 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.001023/0.3254, allocations: 381 kB / 0.6792 GB, free: 13.2 MB / 0.5294 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.001259/0.3266, allocations: 0.696 MB / 0.6799 GB, free: 12.36 MB / 0.5294 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.001078/0.3277, allocations: 436.5 kB / 0.6803 GB, free: 11.93 MB / 0.5294 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.54e-06/0.3277, allocations: 4 kB / 0.6803 GB, free: 11.93 MB / 0.5294 GB
Notification: Performance of matching and sorting (n=82) (initialization): time 0.003069/0.3308, allocations: 1.23 MB / 0.6815 GB, free: 10.69 MB / 0.5294 GB
Notification: Performance of prepare postOptimizeDAE: time 0.001024/0.3319, allocations: 2.731 MB / 0.6842 GB, free: 7.758 MB / 0.5294 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.32e-05/0.3319, allocations: 8 kB / 0.6842 GB, free: 7.75 MB / 0.5294 GB
Notification: Performance of postOpt tearingSystem (initialization): time 0.001132/0.333, allocations: 360.6 kB / 0.6845 GB, free: 7.395 MB / 0.5294 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006522/0.3337, allocations: 175.7 kB / 0.6847 GB, free: 7.223 MB / 0.5294 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001587/0.3353, allocations: 0.9933 MB / 0.6857 GB, free: 6.203 MB / 0.5294 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001493/0.3368, allocations: 246.8 kB / 0.6859 GB, free: 5.961 MB / 0.5294 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.062e-05/0.3369, allocations: 39.98 kB / 0.6859 GB, free: 5.922 MB / 0.5294 GB
Notification: Performance of prepare postOptimizeDAE: time 9.238e-06/0.3369, allocations: 4 kB / 0.6859 GB, free: 5.918 MB / 0.5294 GB
Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002504/0.3394, allocations: 1.014 MB / 0.6869 GB, free: 4.898 MB / 0.5294 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.146e-06/0.3394, allocations: 8.688 kB / 0.6869 GB, free: 4.891 MB / 0.5294 GB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0009248/0.3403, allocations: 324.6 kB / 0.6873 GB, free: 4.57 MB / 0.5294 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006066/0.341, allocations: 171.7 kB / 0.6874 GB, free: 4.402 MB / 0.5294 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001356/0.3423, allocations: 0.931 MB / 0.6883 GB, free: 3.445 MB / 0.5294 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001276/0.3436, allocations: 207 kB / 0.6885 GB, free: 3.242 MB / 0.5294 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.624e-05/0.3437, allocations: 31.98 kB / 0.6886 GB, free: 3.211 MB / 0.5294 GB
Notification: Model statistics after passing the back-end for initialization:
* Number of independent subsystems: 31
* 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 (69):
* Single equations (assignments): 68
* Array equations: 0
* Algorithm blocks: 0
* Record equations: 0
* When equations: 0
* If-equations: 0
* Equation systems (linear and non-linear blocks): 0
* Torn equation systems: 1
* Mixed (continuous/discrete) equation systems: 0
Notification: Torn system details for strict tearing set:
* Linear torn systems: 0
* Non-linear torn systems: 1 {1 13}
Notification: Performance of prepare postOptimizeDAE: time 0.0005141/0.3442, allocations: 360.9 kB / 0.6889 GB, free: 2.848 MB / 0.5294 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001573/0.3444, allocations: 110.7 kB / 0.689 GB, free: 2.738 MB / 0.5294 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003757/0.3481, allocations: 1.145 MB / 0.6901 GB, free: 1.586 MB / 0.5294 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.767e-06/0.3481, allocations: 4 kB / 0.6901 GB, free: 1.582 MB / 0.5294 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.3482, allocations: 3.953 kB / 0.6901 GB, free: 1.578 MB / 0.5294 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.633e-06/0.3482, allocations: 3.984 kB / 0.6901 GB, free: 1.574 MB / 0.5294 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3544/0.7026, allocations: 2.217 MB / 0.6923 GB, free: 96.9 MB / 0.5294 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.093e-05/0.7026, allocations: 2.562 kB / 0.6923 GB, free: 96.9 MB / 0.5294 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003753/0.703, allocations: 74.78 kB / 0.6924 GB, free: 96.9 MB / 0.5294 GB
Notification: Performance of postOpt tearingSystem (simulation): time 0.001202/0.7042, allocations: 363 kB / 0.6927 GB, free: 96.89 MB / 0.5294 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.521e-05/0.7043, allocations: 20.47 kB / 0.6927 GB, free: 96.89 MB / 0.5294 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001636/0.7059, allocations: 0.9749 MB / 0.6937 GB, free: 96.38 MB / 0.5294 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.262e-06/0.7059, allocations: 6.344 kB / 0.6937 GB, free: 96.38 MB / 0.5294 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002565/0.7085, allocations: 1.203 MB / 0.6949 GB, free: 96 MB / 0.5294 GB
Notification: Performance of postOpt removeConstants (simulation): time 0.0005149/0.709, allocations: 291 kB / 0.6952 GB, free: 95.91 MB / 0.5294 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000147/0.7092, allocations: 9.75 kB / 0.6952 GB, free: 95.91 MB / 0.5294 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009206/0.7101, allocations: 132.2 kB / 0.6953 GB, free: 95.9 MB / 0.5294 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 8.631e-05/0.7102, allocations: 38.36 kB / 0.6953 GB, free: 95.9 MB / 0.5294 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.091e-05/0.7103, allocations: 26.5 kB / 0.6953 GB, free: 95.9 MB / 0.5294 GB
Notification: Performance of sorting global known variables: time 0.001121/0.7114, allocations: 0.7758 MB / 0.6961 GB, free: 95.79 MB / 0.5294 GB
Notification: Performance of sort global known variables: time 3.2e-07/0.7114, allocations: 2.438 kB / 0.6961 GB, free: 95.79 MB / 0.5294 GB
Notification: Performance of remove unused functions: time 0.001567/0.713, allocations: 0.5549 MB / 0.6967 GB, free: 95.77 MB / 0.5294 GB
Notification: Model statistics after passing the back-end for simulation:
* Number of independent subsystems: 11
* 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 (27):
* Single equations (assignments): 25
* Array equations: 0
* Algorithm blocks: 0
* Record equations: 1
* When equations: 0
* If-equations: 0
* Equation systems (linear and non-linear blocks): 0
* Torn equation systems: 1
* Mixed (continuous/discrete) equation systems: 0
Notification: Torn system details for strict tearing set:
* Linear torn systems: 0
* Non-linear torn systems: 1 {1 13}
Notification: Performance of Backend phase and start with SimCode phase: time 0.0005845/0.7136, allocations: 264.1 kB / 0.6969 GB, free: 95.68 MB / 0.5294 GB
Notification: Performance of simCode: created initialization part: time 0.003403/0.717, allocations: 1.313 MB / 0.6982 GB, free: 95.65 MB / 0.5294 GB
Notification: Performance of simCode: created event and clocks part: time 5.911e-06/0.717, allocations: 0 / 0.6982 GB, free: 95.65 MB / 0.5294 GB
Notification: Performance of simCode: created simulation system equations: time 0.0008957/0.7179, allocations: 375.8 kB / 0.6985 GB, free: 95.63 MB / 0.5294 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002286/0.7202, allocations: 0.552 MB / 0.6991 GB, free: 95.62 MB / 0.5294 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005559/0.7258, allocations: 2.452 MB / 0.7015 GB, free: 94.58 MB / 0.5294 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006913/0.7265, allocations: 1.076 MB / 0.7025 GB, free: 93.87 MB / 0.5294 GB
Notification: Performance of simCode: alias equations: time 0.001176/0.7277, allocations: 243 kB / 0.7028 GB, free: 93.81 MB / 0.5294 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001989/0.7279, allocations: 82.89 kB / 0.7028 GB, free: 93.81 MB / 0.5294 GB
Notification: Performance of SimCode: time 1.092e-06/0.7279, allocations: 0 / 0.7028 GB, free: 93.81 MB / 0.5294 GB
Notification: Performance of Templates: time 0.04133/0.7692, allocations: 24.21 MB / 0.7265 GB, free: 81.45 MB / 0.5294 GB
make -j1 -f Buildings_3.0.0_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.makefile
Environment - environmentSimulation:
(rm -f Buildings_3.0.0_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; mkfifo Buildings_3.0.0_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe >> ../files/Buildings_3.0.0_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.sim & ./Buildings_3.0.0_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe 2>&1)
Environment - environmentSimulation: