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.001117/0.001117, allocations: 102.7 kB / 16.36 MB, free: 6.301 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.001131/0.001131, allocations: 192.5 kB / 17.29 MB, free: 5.875 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.376/1.376, allocations: 205.1 MB / 223.2 MB, free: 12.24 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.786/1.786, allocations: 292.3 MB / 0.5496 GB, free: 17.64 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.001388/0.001388, allocations: 70.88 kB / 0.6729 GB, free: 5.832 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2308/0.2322, allocations: 114.6 MB / 0.7848 GB, free: 3.164 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.469/0.7012, allocations: 70.5 MB / 0.8536 GB, free: 2.312 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.02835/0.7296, allocations: 18.82 MB / 0.872 GB, free: 4.816 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004348/0.734, allocations: 66.72 kB / 0.8721 GB, free: 4.793 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.003262/0.7374, allocations: 0.8282 MB / 0.8729 GB, free: 4.242 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.01121/0.7487, allocations: 2.84 MB / 0.8756 GB, free: 2.543 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.005879/0.7546, allocations: 1.668 MB / 0.8773 GB, free: 1.332 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.008305/0.7629, allocations: 4.017 MB / 0.8812 GB, free: 14.91 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00287/0.7658, allocations: 1.474 MB / 0.8826 GB, free: 13.99 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005717/0.7715, allocations: 1.78 MB / 0.8844 GB, free: 12.85 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003159/0.7747, allocations: 1.183 MB / 0.8855 GB, free: 12.11 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.0004804/0.7752, allocations: 177.4 kB / 0.8857 GB, free: 12.11 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004153/0.7794, allocations: 1.422 MB / 0.8871 GB, free: 11.36 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.00053/0.7799, allocations: 391.8 kB / 0.8875 GB, free: 11.04 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.001684/0.7816, allocations: 0.9214 MB / 0.8884 GB, free: 10.39 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.005873/0.7875, allocations: 3.131 MB / 0.8914 GB, free: 8.223 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.7876, allocations: 1.125 kB / 0.8914 GB, free: 8.223 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.492e-06/0.7876, allocations: 4 kB / 0.8914 GB, free: 8.219 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 4.772e-05/0.7876, allocations: 0 / 0.8914 GB, free: 8.219 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.004591/0.7922, allocations: 2.045 MB / 0.8934 GB, free: 6.656 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 4.665e-05/0.7923, allocations: 9.25 kB / 0.8934 GB, free: 6.656 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00243/0.7947, allocations: 447.6 kB / 0.8939 GB, free: 6.449 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003218/0.7979, allocations: 1.557 MB / 0.8954 GB, free: 5.188 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.58e-05/0.7981, allocations: 78.41 kB / 0.8955 GB, free: 5.152 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001778/0.7982, allocations: 103.2 kB / 0.8956 GB, free: 5.121 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002918/0.8012, allocations: 1.315 MB / 0.8968 GB, free: 4.219 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.349e-05/0.8012, allocations: 5.281 kB / 0.8968 GB, free: 4.215 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001028/0.8013, allocations: 47.03 kB / 0.8969 GB, free: 4.18 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.528e-05/0.8014, allocations: 29.69 kB / 0.8969 GB, free: 4.176 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002887/0.8043, allocations: 1.111 MB / 0.898 GB, free: 3.617 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.009451/0.8137, allocations: 7.227 MB / 0.9051 GB, free: 13.06 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003238/0.817, allocations: 0.8499 MB / 0.9059 GB, free: 12.62 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006486/0.8176, allocations: 307.3 kB / 0.9062 GB, free: 12.46 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001311/0.819, allocations: 1.719 MB / 0.9079 GB, free: 10.43 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.318e-05/0.819, allocations: 45.73 kB / 0.9079 GB, free: 10.38 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=52): time 2.484e-06/0.819, allocations: 0 / 0.9079 GB, free: 10.38 MB / 0.7012 GB Notification: Performance of matching and sorting (n=52): time 0.005105/0.8241, allocations: 1.378 MB / 0.9092 GB, free: 9.617 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.984e-05/0.8242, allocations: 56.47 kB / 0.9093 GB, free: 9.555 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002451/0.8266, allocations: 1.545 MB / 0.9108 GB, free: 8.223 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 9.444e-05/0.8268, allocations: 37.7 kB / 0.9108 GB, free: 8.18 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005544/0.8273, allocations: 0.673 MB / 0.9115 GB, free: 7.5 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001802/0.8275, allocations: 189.3 kB / 0.9117 GB, free: 7.312 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003059/0.8278, allocations: 174.4 kB / 0.9118 GB, free: 7.137 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001204/0.8279, allocations: 338 kB / 0.9122 GB, free: 6.801 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009936/0.8289, allocations: 389.7 kB / 0.9125 GB, free: 6.418 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001239/0.8302, allocations: 0.6702 MB / 0.9132 GB, free: 5.617 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00185/0.8321, allocations: 0.9102 MB / 0.9141 GB, free: 4.605 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.511e-06/0.8321, allocations: 0 / 0.9141 GB, free: 4.605 MB / 0.7012 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00312/0.8352, allocations: 1.228 MB / 0.9153 GB, free: 3.367 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 2.238e-05/0.8352, allocations: 11.98 kB / 0.9153 GB, free: 3.355 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.51e-05/0.8353, allocations: 8 kB / 0.9153 GB, free: 3.348 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009136/0.8362, allocations: 228.6 kB / 0.9155 GB, free: 3.121 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007918/0.837, allocations: 207.6 kB / 0.9157 GB, free: 2.918 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008917/0.8379, allocations: 0.7123 MB / 0.9164 GB, free: 2.18 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00183/0.8397, allocations: 210.7 kB / 0.9166 GB, free: 1.973 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001108/0.8398, allocations: 39.98 kB / 0.9167 GB, free: 1.934 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.0006794/0.8405, allocations: 366.6 kB / 0.917 GB, free: 1.566 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003404/0.8409, allocations: 150.2 kB / 0.9171 GB, free: 1.418 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002595/0.8435, allocations: 1.19 MB / 0.9183 GB, free: 240 kB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.051e-05/0.8435, allocations: 12 kB / 0.9183 GB, free: 228 kB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/0.8435, allocations: 1 kB / 0.9183 GB, free: 228 kB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.026e-06/0.8435, allocations: 3.984 kB / 0.9183 GB, free: 224 kB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005591/0.8491, allocations: 2.577 MB / 0.9208 GB, free: 13.56 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.864e-06/0.8492, allocations: 0 / 0.9208 GB, free: 13.56 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004061/0.8496, allocations: 91.88 kB / 0.9209 GB, free: 13.47 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007622/0.8504, allocations: 208.8 kB / 0.9211 GB, free: 13.27 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.594e-05/0.8504, allocations: 16 kB / 0.9211 GB, free: 13.25 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001303/0.8517, allocations: 0.7746 MB / 0.9219 GB, free: 12.45 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.099e-06/0.8517, allocations: 5.969 kB / 0.9219 GB, free: 12.45 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003643/0.8554, allocations: 1.242 MB / 0.9231 GB, free: 11.17 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009664/0.8564, allocations: 358.9 kB / 0.9235 GB, free: 10.8 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002235/0.8566, allocations: 23.94 kB / 0.9235 GB, free: 10.77 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008929/0.8575, allocations: 67.91 kB / 0.9235 GB, free: 10.71 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001037/0.8576, allocations: 44.52 kB / 0.9236 GB, free: 10.66 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.523e-05/0.8577, allocations: 31.97 kB / 0.9236 GB, free: 10.63 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.001806/0.8595, allocations: 1.082 MB / 0.9247 GB, free: 9.551 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.61e-07/0.8595, allocations: 0 / 0.9247 GB, free: 9.551 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.001564/0.8611, allocations: 447.4 kB / 0.9251 GB, free: 9.113 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.001052/0.8622, allocations: 490 kB / 0.9256 GB, free: 8.641 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.002407/0.8646, allocations: 0.8857 MB / 0.9264 GB, free: 7.758 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.8646, allocations: 3.938 kB / 0.9264 GB, free: 7.754 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.001346/0.8659, allocations: 456.4 kB / 0.9269 GB, free: 7.309 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003645/0.8696, allocations: 0.7694 MB / 0.9276 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004088/0.8737, allocations: 2.3 MB / 0.9299 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006985/0.8744, allocations: 1.161 MB / 0.931 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003467/0.8748, allocations: 127.4 kB / 0.9311 GB, free: 2.91 MB / 0.7169 GB Notification: Performance of SimCode: time 6.01e-07/0.8748, allocations: 0 / 0.9311 GB, free: 2.91 MB / 0.7169 GB Notification: Performance of Templates: time 0.048/0.9228, allocations: 34.42 MB / 0.9647 GB, free: 0.7969 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 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe 2>&1)