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.001396/0.001396, allocations: 105.7 kB / 16.29 MB, free: 6.031 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.001572/0.001572, allocations: 183.3 kB / 17.22 MB, free: 5.637 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.579/1.579, allocations: 205.1 MB / 223.1 MB, free: 12.32 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.894/1.894, allocations: 292.3 MB / 0.5495 GB, free: 17.4 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.001656/0.001656, allocations: 72.22 kB / 0.6722 GB, free: 6.582 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2676/0.2693, allocations: 114.6 MB / 0.7841 GB, free: 3.914 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.6328/0.9021, allocations: 70.51 MB / 0.8529 GB, free: 2.309 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.03122/0.9334, allocations: 18.82 MB / 0.8713 GB, free: 4.809 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004475/0.9379, allocations: 70.12 kB / 0.8714 GB, free: 4.781 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.003466/0.9414, allocations: 0.8276 MB / 0.8722 GB, free: 4.23 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.01275/0.9542, allocations: 2.829 MB / 0.8749 GB, free: 2.543 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.00644/0.9607, allocations: 1.672 MB / 0.8766 GB, free: 1.441 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.009198/0.9699, allocations: 4.017 MB / 0.8805 GB, free: 15.02 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002798/0.9727, allocations: 1.464 MB / 0.8819 GB, free: 14.11 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005799/0.9786, allocations: 1.784 MB / 0.8837 GB, free: 12.96 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003112/0.9817, allocations: 1.194 MB / 0.8848 GB, free: 12.22 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.0007007/0.9824, allocations: 177.9 kB / 0.885 GB, free: 12.22 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004828/0.9872, allocations: 1.421 MB / 0.8864 GB, free: 11.46 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.0006174/0.9879, allocations: 384.1 kB / 0.8868 GB, free: 11.15 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.001859/0.9897, allocations: 0.9249 MB / 0.8877 GB, free: 10.5 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.006195/0.9959, allocations: 3.135 MB / 0.8907 GB, free: 8.324 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/0.996, allocations: 4.969 kB / 0.8907 GB, free: 8.32 MB / 0.6856 GB Notification: Performance of FrontEnd: time 2.164e-06/0.996, allocations: 0 / 0.8907 GB, free: 8.32 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 4.087e-05/0.996, allocations: 0 / 0.8907 GB, free: 8.32 MB / 0.6856 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.004689/1.001, allocations: 2.045 MB / 0.8927 GB, free: 6.758 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/1.001, allocations: 9.688 kB / 0.8927 GB, free: 6.758 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002437/1.003, allocations: 452.4 kB / 0.8932 GB, free: 6.547 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003244/1.006, allocations: 1.485 MB / 0.8946 GB, free: 5.324 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003776/1.007, allocations: 135.9 kB / 0.8947 GB, free: 5.266 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000196/1.007, allocations: 101.9 kB / 0.8948 GB, free: 5.234 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003034/1.01, allocations: 1.322 MB / 0.8961 GB, free: 4.328 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.048e-05/1.01, allocations: 6.375 kB / 0.8961 GB, free: 4.324 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001185/1.01, allocations: 41.81 kB / 0.8962 GB, free: 4.293 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.504e-05/1.01, allocations: 38.64 kB / 0.8962 GB, free: 4.281 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002933/1.013, allocations: 1.121 MB / 0.8973 GB, free: 3.719 MB / 0.6856 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.01184/1.025, allocations: 7.222 MB / 0.9044 GB, free: 13.17 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003168/1.028, allocations: 0.8538 MB / 0.9052 GB, free: 12.72 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006716/1.029, allocations: 306.5 kB / 0.9055 GB, free: 12.57 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001427/1.03, allocations: 1.724 MB / 0.9072 GB, free: 10.54 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.969e-05/1.031, allocations: 37.59 kB / 0.9072 GB, free: 10.49 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=52): time 2.665e-06/1.031, allocations: 0 / 0.9072 GB, free: 10.49 MB / 0.7012 GB Notification: Performance of matching and sorting (n=52): time 0.005237/1.036, allocations: 1.373 MB / 0.9085 GB, free: 9.734 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.448e-05/1.036, allocations: 65.28 kB / 0.9086 GB, free: 9.664 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002676/1.039, allocations: 1.552 MB / 0.9101 GB, free: 8.703 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 9.18e-05/1.039, allocations: 37.7 kB / 0.9102 GB, free: 8.66 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005684/1.039, allocations: 0.6652 MB / 0.9108 GB, free: 7.988 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001744/1.039, allocations: 189.3 kB / 0.911 GB, free: 7.801 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002971/1.04, allocations: 182.4 kB / 0.9112 GB, free: 7.617 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001233/1.04, allocations: 338 kB / 0.9115 GB, free: 7.281 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009388/1.041, allocations: 377.8 kB / 0.9118 GB, free: 6.91 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00128/1.042, allocations: 0.6858 MB / 0.9125 GB, free: 6.094 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001814/1.044, allocations: 0.918 MB / 0.9134 GB, free: 5.074 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/1.044, allocations: 0 / 0.9134 GB, free: 5.074 MB / 0.7012 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003153/1.047, allocations: 1.236 MB / 0.9146 GB, free: 3.824 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 2.32e-05/1.047, allocations: 12.03 kB / 0.9146 GB, free: 3.812 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.467e-05/1.047, allocations: 8 kB / 0.9146 GB, free: 3.805 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008859/1.048, allocations: 220.6 kB / 0.9149 GB, free: 3.586 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007705/1.049, allocations: 203.7 kB / 0.915 GB, free: 3.387 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008383/1.05, allocations: 0.72 MB / 0.9157 GB, free: 2.641 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001776/1.051, allocations: 218.7 kB / 0.916 GB, free: 2.426 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001201/1.052, allocations: 47.11 kB / 0.916 GB, free: 2.383 MB / 0.7012 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.0006992/1.052, allocations: 362.6 kB / 0.9163 GB, free: 2.02 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002669/1.053, allocations: 154.1 kB / 0.9165 GB, free: 1.867 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002429/1.055, allocations: 1.177 MB / 0.9176 GB, free: 0.6953 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.019e-05/1.055, allocations: 15.98 kB / 0.9177 GB, free: 0.6797 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/1.055, allocations: 0 / 0.9177 GB, free: 0.6797 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.004e-05/1.055, allocations: 3.984 kB / 0.9177 GB, free: 0.6758 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005274/1.06, allocations: 2.574 MB / 0.9202 GB, free: 14.02 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.585e-06/1.06, allocations: 3.938 kB / 0.9202 GB, free: 14.02 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004024/1.061, allocations: 97.44 kB / 0.9203 GB, free: 13.93 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007922/1.062, allocations: 212.7 kB / 0.9205 GB, free: 13.71 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.559e-05/1.062, allocations: 19.98 kB / 0.9205 GB, free: 13.7 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001207/1.063, allocations: 0.767 MB / 0.9212 GB, free: 12.9 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/1.063, allocations: 3.938 kB / 0.9212 GB, free: 12.9 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003483/1.066, allocations: 1.238 MB / 0.9225 GB, free: 11.62 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008643/1.067, allocations: 358.9 kB / 0.9228 GB, free: 11.25 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002275/1.068, allocations: 19.88 kB / 0.9228 GB, free: 11.23 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008984/1.068, allocations: 75.91 kB / 0.9229 GB, free: 11.16 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.422e-05/1.069, allocations: 48.5 kB / 0.9229 GB, free: 11.11 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.127e-05/1.069, allocations: 23.98 kB / 0.923 GB, free: 11.08 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.001773/1.07, allocations: 1.09 MB / 0.924 GB, free: 9.996 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.7e-07/1.07, allocations: 4.188 kB / 0.924 GB, free: 9.992 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.001479/1.072, allocations: 447.4 kB / 0.9245 GB, free: 9.555 MB / 0.7169 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.0009224/1.073, allocations: 486.1 kB / 0.9249 GB, free: 9.086 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.002195/1.075, allocations: 0.8813 MB / 0.9258 GB, free: 8.207 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/1.075, allocations: 0 / 0.9258 GB, free: 8.207 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.001203/1.076, allocations: 464.8 kB / 0.9262 GB, free: 7.754 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00289/1.079, allocations: 0.7722 MB / 0.927 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003885/1.083, allocations: 2.273 MB / 0.9292 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007492/1.084, allocations: 1.168 MB / 0.9303 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0009608/1.085, allocations: 275.9 kB / 0.9306 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002671/1.085, allocations: 123.4 kB / 0.9307 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of SimCode: time 4.4e-07/1.085, allocations: 0 / 0.9307 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of Templates: time 0.05342/1.139, allocations: 32.14 MB / 0.9621 GB, free: 3.434 MB / 0.7481 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 -s cvode -lv LOG_STATS > Buildings_8_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe 2>&1)