Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.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.Chillers.Validation.Carnot_TEva_2ndLaw,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw") translateModel(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001215/0.001215, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001408/0.001407, allocations: 193 kB / 16.53 MB, free: 6.664 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.617/1.617, allocations: 205.1 MB / 222.4 MB, free: 4.605 MB / 174.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.787/1.787, allocations: 292.3 MB / 0.5489 GB, free: 12.85 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.001392/0.001392, allocations: 70.52 kB / 0.6715 GB, free: 26.29 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2459/0.2473, allocations: 114.5 MB / 0.7834 GB, free: 13.47 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.0667/0.3141, allocations: 70.51 MB / 0.8522 GB, free: 6.711 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.02751/0.3416, allocations: 18.84 MB / 0.8706 GB, free: 3.832 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003938/0.3456, allocations: 67.56 kB / 0.8707 GB, free: 3.766 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.003394/0.349, allocations: 0.8229 MB / 0.8715 GB, free: 2.938 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.009499/0.3586, allocations: 2.826 MB / 0.8742 GB, free: 100 kB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.004823/0.3634, allocations: 1.667 MB / 0.8759 GB, free: 14.44 MB / 0.7012 GB Notification: Performance of NFFlatten.flatten: time 0.00657/0.37, allocations: 4.03 MB / 0.8798 GB, free: 10.39 MB / 0.7012 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002679/0.3727, allocations: 1.461 MB / 0.8812 GB, free: 8.898 MB / 0.7012 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004801/0.3776, allocations: 1.773 MB / 0.883 GB, free: 7.125 MB / 0.7012 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002127/0.3797, allocations: 1.19 MB / 0.8841 GB, free: 5.93 MB / 0.7012 GB Notification: Performance of NFPackage.collectConstants: time 0.0002821/0.38, allocations: 180 kB / 0.8843 GB, free: 5.754 MB / 0.7012 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003351/0.3834, allocations: 1.416 MB / 0.8857 GB, free: 4.336 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.000381/0.3837, allocations: 390.6 kB / 0.886 GB, free: 3.953 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.001094/0.3848, allocations: 0.9254 MB / 0.8869 GB, free: 3.023 MB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.004628/0.3895, allocations: 3.105 MB / 0.89 GB, free: 15.91 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.3895, allocations: 0 / 0.89 GB, free: 15.91 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.214e-06/0.3895, allocations: 0 / 0.89 GB, free: 15.91 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.27e-05/0.3896, allocations: 4 kB / 0.89 GB, free: 15.91 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 257 * Number of variables: 257 Notification: Performance of Generate backend data structure: time 0.004001/0.3936, allocations: 2.042 MB / 0.892 GB, free: 13.8 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.449e-05/0.3936, allocations: 8.031 kB / 0.892 GB, free: 13.79 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002236/0.3959, allocations: 449.8 kB / 0.8924 GB, free: 13.35 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002572/0.3985, allocations: 1.493 MB / 0.8939 GB, free: 11.8 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003717/0.3988, allocations: 138 kB / 0.894 GB, free: 11.66 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001516/0.399, allocations: 100 kB / 0.8941 GB, free: 11.57 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002674/0.4017, allocations: 1.322 MB / 0.8954 GB, free: 10.14 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.568e-05/0.4017, allocations: 7.938 kB / 0.8954 GB, free: 10.14 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001143/0.4019, allocations: 47.98 kB / 0.8954 GB, free: 10.09 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.922e-05/0.4019, allocations: 27.94 kB / 0.8955 GB, free: 10.06 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002704/0.4046, allocations: 1.116 MB / 0.8966 GB, free: 8.949 MB / 0.7169 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.01033/0.4149, allocations: 7.273 MB / 0.9037 GB, free: 1.207 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003257/0.4182, allocations: 0.8483 MB / 0.9045 GB, free: 360 kB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006748/0.4189, allocations: 302 kB / 0.9048 GB, free: 56 kB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001328/0.4203, allocations: 1.722 MB / 0.9065 GB, free: 13.95 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.215e-05/0.4203, allocations: 39 kB / 0.9065 GB, free: 13.9 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=52): time 3.055e-06/0.4203, allocations: 4 kB / 0.9065 GB, free: 13.89 MB / 0.7325 GB Notification: Performance of matching and sorting (n=52): time 0.005082/0.4254, allocations: 1.381 MB / 0.9078 GB, free: 12.48 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.152e-05/0.4255, allocations: 55.84 kB / 0.9079 GB, free: 12.41 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002517/0.428, allocations: 1.557 MB / 0.9094 GB, free: 10.85 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 0.0001001/0.4281, allocations: 37.7 kB / 0.9095 GB, free: 10.8 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005618/0.4287, allocations: 0.6769 MB / 0.9101 GB, free: 10.12 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001864/0.4289, allocations: 185.3 kB / 0.9103 GB, free: 9.938 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002995/0.4292, allocations: 178.4 kB / 0.9105 GB, free: 9.758 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001275/0.4293, allocations: 334 kB / 0.9108 GB, free: 9.426 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001004/0.4304, allocations: 381.8 kB / 0.9111 GB, free: 9.051 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001253/0.4316, allocations: 0.6856 MB / 0.9118 GB, free: 8.238 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001832/0.4335, allocations: 0.9219 MB / 0.9127 GB, free: 7.211 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.213e-06/0.4335, allocations: 4 kB / 0.9127 GB, free: 7.207 MB / 0.7325 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003217/0.4367, allocations: 1.236 MB / 0.9139 GB, free: 5.961 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.451e-05/0.4367, allocations: 12 kB / 0.9139 GB, free: 5.949 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.644e-05/0.4368, allocations: 12 kB / 0.914 GB, free: 5.938 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009532/0.4377, allocations: 216.7 kB / 0.9142 GB, free: 5.723 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007906/0.4385, allocations: 199.7 kB / 0.9143 GB, free: 5.527 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009163/0.4395, allocations: 0.72 MB / 0.9151 GB, free: 4.781 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001809/0.4413, allocations: 230.6 kB / 0.9153 GB, free: 4.555 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.981e-05/0.4414, allocations: 47.97 kB / 0.9153 GB, free: 4.508 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * 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 (88): * Single equations (assignments): 87 * 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,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0006414/0.442, allocations: 357.6 kB / 0.9157 GB, free: 4.148 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002763/0.4423, allocations: 150.1 kB / 0.9158 GB, free: 4 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002566/0.4449, allocations: 1.192 MB / 0.917 GB, free: 2.785 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.256e-05/0.4449, allocations: 11.98 kB / 0.917 GB, free: 2.773 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.4449, allocations: 0 / 0.917 GB, free: 2.773 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.686e-06/0.445, allocations: 3.984 kB / 0.917 GB, free: 2.77 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005558/0.4505, allocations: 2.573 MB / 0.9195 GB, free: 116 kB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.755e-06/0.4506, allocations: 0 / 0.9195 GB, free: 116 kB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000407/0.451, allocations: 103.8 kB / 0.9196 GB, free: 12 kB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.6276/1.079, allocations: 202.3 kB / 0.9198 GB, free: 136.3 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001627/1.079, allocations: 15.91 kB / 0.9198 GB, free: 136.3 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001409/1.08, allocations: 0.7684 MB / 0.9205 GB, free: 135.7 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.482e-06/1.08, allocations: 6.312 kB / 0.9206 GB, free: 135.7 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004235/1.084, allocations: 1.241 MB / 0.9218 GB, free: 135.5 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000949/1.085, allocations: 355.9 kB / 0.9221 GB, free: 135.4 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002213/1.086, allocations: 14.09 kB / 0.9221 GB, free: 135.4 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009673/1.087, allocations: 77.19 kB / 0.9222 GB, free: 135.4 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001159/1.087, allocations: 49.23 kB / 0.9222 GB, free: 135.4 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.76e-05/1.087, allocations: 29.95 kB / 0.9223 GB, free: 135.4 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.002348/1.089, allocations: 1.092 MB / 0.9233 GB, free: 135.3 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.8e-07/1.089, allocations: 0 / 0.9233 GB, free: 135.3 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.001758/1.091, allocations: 454.9 kB / 0.9238 GB, free: 135.3 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (56): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * 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,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001037/1.092, allocations: 469.2 kB / 0.9242 GB, free: 135.2 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.002995/1.095, allocations: 0.9156 MB / 0.9251 GB, free: 135 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/1.095, allocations: 0 / 0.9251 GB, free: 135 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.001377/1.096, allocations: 465.2 kB / 0.9256 GB, free: 134.9 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003623/1.1, allocations: 0.7681 MB / 0.9263 GB, free: 134.7 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004401/1.104, allocations: 2.307 MB / 0.9286 GB, free: 133.5 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006461/1.105, allocations: 1.176 MB / 0.9297 GB, free: 132.8 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001425/1.107, allocations: 269.1 kB / 0.93 GB, free: 132.8 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002867/1.107, allocations: 122.6 kB / 0.9301 GB, free: 132.8 MB / 0.7325 GB Notification: Performance of SimCode: time 5.71e-07/1.107, allocations: 2.625 kB / 0.9301 GB, free: 132.8 MB / 0.7325 GB Notification: Performance of Templates: time 0.07268/1.18, allocations: 32.17 MB / 0.9615 GB, free: 119.7 MB / 0.7325 GB make -j1 -f Buildings_8_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.makefile (rm -f Buildings_8_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; mkfifo Buildings_8_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe >> ../files/Buildings_8_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.sim & ./Buildings_8_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe 2>&1)