Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_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.007938/0.007938, allocations: 100.3 kB / 15.73 MB, free: 6.496 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.001439/0.001438, allocations: 196.5 kB / 16.68 MB, free: 6.375 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.652/1.652, allocations: 205.1 MB / 222.5 MB, free: 4.52 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.54/1.54, allocations: 251.7 MB / 0.5094 GB, free: 3.102 MB / 414.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.001573/0.001573, allocations: 67.89 kB / 0.7258 GB, free: 9.023 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2873/0.2889, allocations: 104.7 MB / 0.828 GB, free: 220 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.07673/0.3657, allocations: 70.51 MB / 0.8969 GB, free: 9.465 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.7527/1.118, allocations: 18.78 MB / 0.9152 GB, free: 18.93 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004357/1.123, allocations: 72.84 kB / 0.9153 GB, free: 18.93 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.00336/1.126, allocations: 0.8196 MB / 0.9161 GB, free: 18.93 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.01391/1.14, allocations: 2.832 MB / 0.9189 GB, free: 18.86 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.006775/1.147, allocations: 1.672 MB / 0.9205 GB, free: 18.82 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.01203/1.159, allocations: 4.035 MB / 0.9244 GB, free: 18.82 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004246/1.163, allocations: 1.459 MB / 0.9259 GB, free: 18.64 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008004/1.172, allocations: 1.758 MB / 0.9276 GB, free: 18.51 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00452/1.176, allocations: 1.189 MB / 0.9287 GB, free: 18.3 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.001227/1.177, allocations: 178.2 kB / 0.9289 GB, free: 18.3 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006417/1.184, allocations: 1.397 MB / 0.9303 GB, free: 18.27 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.001402/1.185, allocations: 397 kB / 0.9307 GB, free: 18.21 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.004036/1.189, allocations: 0.92 MB / 0.9315 GB, free: 17.96 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.01164/1.201, allocations: 3.116 MB / 0.9346 GB, free: 17.61 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 1.295e-05/1.201, allocations: 0 / 0.9346 GB, free: 17.61 MB / 0.7169 GB Notification: Performance of FrontEnd: time 4.679e-06/1.201, allocations: 0 / 0.9346 GB, free: 17.61 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 0.0001723/1.201, allocations: 1.125 kB / 0.9346 GB, free: 17.61 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.01018/1.211, allocations: 2.032 MB / 0.9366 GB, free: 16.56 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.738e-05/1.211, allocations: 10.5 kB / 0.9366 GB, free: 16.56 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00419/1.216, allocations: 444.8 kB / 0.937 GB, free: 16.46 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007647/1.223, allocations: 1.566 MB / 0.9385 GB, free: 16.04 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002801/1.224, allocations: 80.28 kB / 0.9386 GB, free: 16.04 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008768/1.225, allocations: 105.8 kB / 0.9387 GB, free: 16.02 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004758/1.229, allocations: 1.311 MB / 0.94 GB, free: 15.34 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.411e-05/1.229, allocations: 1.281 kB / 0.94 GB, free: 15.34 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001252/1.23, allocations: 47.16 kB / 0.94 GB, free: 15.3 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.014e-05/1.23, allocations: 26.83 kB / 0.9401 GB, free: 15.3 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003431/1.233, allocations: 1.113 MB / 0.9412 GB, free: 14.89 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.0116/1.245, allocations: 7.253 MB / 0.9482 GB, free: 9.309 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003597/1.248, allocations: 0.8539 MB / 0.9491 GB, free: 9.023 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007421/1.249, allocations: 295.6 kB / 0.9494 GB, free: 8.918 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001294/1.25, allocations: 1.726 MB / 0.951 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.974e-05/1.251, allocations: 43.97 kB / 0.9511 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=52): time 8.095e-06/1.251, allocations: 0 / 0.9511 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of matching and sorting (n=52): time 0.006641/1.257, allocations: 1.371 MB / 0.9524 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.84e-05/1.257, allocations: 64.69 kB / 0.9525 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003853/1.261, allocations: 1.547 MB / 0.954 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0001636/1.261, allocations: 39.17 kB / 0.954 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006692/1.262, allocations: 0.6731 MB / 0.9547 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002445/1.262, allocations: 186.3 kB / 0.9549 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003862/1.263, allocations: 179 kB / 0.955 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001026/1.263, allocations: 337.7 kB / 0.9554 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001158/1.264, allocations: 379 kB / 0.9557 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001449/1.265, allocations: 0.672 MB / 0.9564 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002059/1.267, allocations: 0.9146 MB / 0.9573 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.096e-05/1.267, allocations: 6.906 kB / 0.9573 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003917/1.271, allocations: 1.225 MB / 0.9585 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.761e-05/1.271, allocations: 12.19 kB / 0.9585 GB, free: 2.855 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.046e-05/1.271, allocations: 6.875 kB / 0.9585 GB, free: 2.855 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001133/1.273, allocations: 222 kB / 0.9587 GB, free: 2.801 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008962/1.274, allocations: 201.2 kB / 0.9589 GB, free: 2.781 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000875/1.274, allocations: 0.7151 MB / 0.9596 GB, free: 2.18 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00224/1.277, allocations: 210.6 kB / 0.9598 GB, free: 2.102 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001508/1.277, allocations: 47.3 kB / 0.9598 GB, free: 2.094 MB / 0.7169 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.0009995/1.278, allocations: 361.2 kB / 0.9602 GB, free: 1.828 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004355/1.278, allocations: 150.8 kB / 0.9603 GB, free: 1.75 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002955/1.281, allocations: 1.181 MB / 0.9615 GB, free: 1.277 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.586e-05/1.281, allocations: 14.33 kB / 0.9615 GB, free: 1.273 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.815e-06/1.281, allocations: 0 / 0.9615 GB, free: 1.273 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.125e-05/1.281, allocations: 9.719 kB / 0.9615 GB, free: 1.266 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005945/1.287, allocations: 2.57 MB / 0.964 GB, free: 15.54 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.366e-05/1.287, allocations: 2.25 kB / 0.964 GB, free: 15.54 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004513/1.288, allocations: 91.42 kB / 0.9641 GB, free: 15.52 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008621/1.289, allocations: 219.2 kB / 0.9643 GB, free: 15.4 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.236e-05/1.289, allocations: 20.45 kB / 0.9643 GB, free: 15.38 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001459/1.29, allocations: 0.7753 MB / 0.9651 GB, free: 14.72 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/1.29, allocations: 0 / 0.9651 GB, free: 14.72 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004445/1.295, allocations: 1.24 MB / 0.9663 GB, free: 13.99 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001088/1.296, allocations: 353.9 kB / 0.9666 GB, free: 13.68 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002074/1.296, allocations: 12.38 kB / 0.9666 GB, free: 13.67 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009648/1.297, allocations: 75.58 kB / 0.9667 GB, free: 13.64 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001092/1.297, allocations: 45.38 kB / 0.9668 GB, free: 13.61 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.831e-05/1.297, allocations: 29.08 kB / 0.9668 GB, free: 13.6 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.002272/1.299, allocations: 1.092 MB / 0.9679 GB, free: 13 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.765e-06/1.299, allocations: 0 / 0.9679 GB, free: 13 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.002187/1.302, allocations: 451.4 kB / 0.9683 GB, free: 12.89 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.001111/1.303, allocations: 470.2 kB / 0.9687 GB, free: 12.66 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.002607/1.305, allocations: 0.871 MB / 0.9696 GB, free: 12.26 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/1.305, allocations: 4.031 kB / 0.9696 GB, free: 12.26 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.001412/1.307, allocations: 470.7 kB / 0.97 GB, free: 12.04 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003615/1.31, allocations: 0.7645 MB / 0.9708 GB, free: 11.64 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004901/1.315, allocations: 2.268 MB / 0.973 GB, free: 10.29 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008866/1.316, allocations: 1.176 MB / 0.9741 GB, free: 9.375 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001344/1.318, allocations: 271.8 kB / 0.9744 GB, free: 9.238 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003012/1.318, allocations: 121 kB / 0.9745 GB, free: 9.211 MB / 0.7325 GB Notification: Performance of SimCode: time 1.072e-06/1.318, allocations: 0 / 0.9745 GB, free: 9.211 MB / 0.7325 GB Notification: Performance of Templates: time 0.06328/1.381, allocations: 32.3 MB / 1.006 GB, free: 12.27 MB / 0.7637 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe 2>&1)