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/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.399/1.399, allocations: 251.9 MB / 266.9 MB, free: 11.02 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001328/0.001328, allocations: 187.8 kB / 326.5 MB, free: 2.234 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.649/1.649, allocations: 205.4 MB / 0.5775 GB, free: 20.27 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009048/0.000905, allocations: 90.34 kB / 0.6821 GB, free: 12.9 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003648/0.000365, allocations: 10.28 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2322/0.2326, allocations: 106.3 MB / 0.9001 GB, free: 63.86 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.04342/0.2761, allocations: 59.18 MB / 0.9579 GB, free: 4.523 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.01957/0.2957, allocations: 14.95 MB / 0.9725 GB, free: 5.543 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002492/0.2983, allocations: 59.56 kB / 0.9726 GB, free: 5.484 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.002394/0.3007, allocations: 0.7034 MB / 0.9733 GB, free: 4.777 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.007535/0.3082, allocations: 2.251 MB / 0.9755 GB, free: 2.52 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.004711/0.313, allocations: 1.483 MB / 0.9769 GB, free: 1.059 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.005115/0.3181, allocations: 2.274 MB / 0.9792 GB, free: 14.77 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001807/0.3199, allocations: 1.022 MB / 0.9802 GB, free: 13.73 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002878/0.3228, allocations: 1.265 MB / 0.9814 GB, free: 12.46 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001484/0.3243, allocations: 0.7973 MB / 0.9822 GB, free: 11.66 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 0.0001561/0.3245, allocations: 60 kB / 0.9822 GB, free: 11.6 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00281/0.3273, allocations: 0.9596 MB / 0.9832 GB, free: 10.64 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 0.0002688/0.3276, allocations: 250.9 kB / 0.9834 GB, free: 10.39 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 0.0004859/0.3281, allocations: 372.8 kB / 0.9838 GB, free: 10.02 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.003073/0.3311, allocations: 2.276 MB / 0.986 GB, free: 7.742 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.3312, allocations: 0 / 0.986 GB, free: 7.742 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.534e-06/0.3312, allocations: 4 kB / 0.986 GB, free: 7.738 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 5.298e-05/0.3312, allocations: 0 / 0.986 GB, free: 7.738 MB / 0.6355 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.003756/0.335, allocations: 1.727 MB / 0.9877 GB, free: 5.949 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 6.217e-05/0.3351, allocations: 8.031 kB / 0.9877 GB, free: 5.941 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000226/0.3353, allocations: 160.4 kB / 0.9878 GB, free: 5.777 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002392/0.3377, allocations: 0.4937 MB / 0.9883 GB, free: 5.281 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002687/0.3404, allocations: 1.439 MB / 0.9897 GB, free: 3.785 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003853/0.3408, allocations: 142 kB / 0.9899 GB, free: 3.645 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001504/0.341, allocations: 104 kB / 0.9899 GB, free: 3.543 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002617/0.3436, allocations: 1.311 MB / 0.9912 GB, free: 2.145 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.941e-05/0.3436, allocations: 0 / 0.9912 GB, free: 2.145 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001009/0.3438, allocations: 40 kB / 0.9913 GB, free: 2.105 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.286e-05/0.3438, allocations: 28 kB / 0.9913 GB, free: 2.078 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002859/0.3466, allocations: 1.171 MB / 0.9924 GB, free: 0.9062 MB / 0.6355 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.009532/0.3562, allocations: 6.956 MB / 0.9992 GB, free: 9.496 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003333/0.3596, allocations: 0.9518 MB / 1 GB, free: 8.539 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001464/0.3611, allocations: 1.722 MB / 1.002 GB, free: 6.43 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.344e-05/0.3611, allocations: 35 kB / 1.002 GB, free: 6.387 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=52): time 3.436e-06/0.3611, allocations: 7.875 kB / 1.002 GB, free: 6.379 MB / 0.6511 GB Notification: Performance of matching and sorting (n=52): time 0.005036/0.3662, allocations: 1.479 MB / 1.003 GB, free: 4.867 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.727e-05/0.3663, allocations: 55.84 kB / 1.003 GB, free: 4.801 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00267/0.3689, allocations: 1.553 MB / 1.005 GB, free: 3.238 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0001377/0.3691, allocations: 37.7 kB / 1.005 GB, free: 3.195 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006626/0.3698, allocations: 0.6576 MB / 1.006 GB, free: 2.531 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002034/0.37, allocations: 181.4 kB / 1.006 GB, free: 2.352 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.494e-05/0.37, allocations: 16 kB / 1.006 GB, free: 2.336 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.000193/0.3702, allocations: 337.9 kB / 1.006 GB, free: 2 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001045/0.3713, allocations: 401.8 kB / 1.006 GB, free: 1.605 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001283/0.3726, allocations: 0.6705 MB / 1.007 GB, free: 0.8164 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001142/0.3737, allocations: 457.9 kB / 1.008 GB, free: 376 kB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.081e-06/0.3738, allocations: 0 / 1.008 GB, free: 376 kB / 0.6511 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.003231/0.377, allocations: 1.256 MB / 1.009 GB, free: 15.1 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 2.944e-05/0.377, allocations: 8 kB / 1.009 GB, free: 15.09 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.507e-05/0.3771, allocations: 4 kB / 1.009 GB, free: 15.09 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009165/0.378, allocations: 228.7 kB / 1.009 GB, free: 14.86 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008109/0.3788, allocations: 199.7 kB / 1.009 GB, free: 14.66 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009249/0.3798, allocations: 0.7318 MB / 1.01 GB, free: 13.91 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001874/0.3816, allocations: 262.7 kB / 1.01 GB, free: 13.65 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001173/0.3818, allocations: 43.98 kB / 1.01 GB, free: 13.61 MB / 0.6667 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 (82): * Single equations (assignments): 81 * 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 8} Notification: Performance of prepare postOptimizeDAE: time 0.00074/0.3825, allocations: 353.6 kB / 1.011 GB, free: 13.25 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002788/0.3828, allocations: 146.2 kB / 1.011 GB, free: 13.11 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002648/0.3855, allocations: 1.227 MB / 1.012 GB, free: 11.87 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.782e-05/0.3855, allocations: 11.98 kB / 1.012 GB, free: 11.86 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.3855, allocations: 0 / 1.012 GB, free: 11.86 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/0.3855, allocations: 4.078 kB / 1.012 GB, free: 11.85 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00609/0.3916, allocations: 2.674 MB / 1.015 GB, free: 9.094 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.191e-05/0.3917, allocations: 7.969 kB / 1.015 GB, free: 9.086 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004454/0.3922, allocations: 104.1 kB / 1.015 GB, free: 8.984 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008915/0.3931, allocations: 216.6 kB / 1.015 GB, free: 8.77 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.494e-05/0.3931, allocations: 19.98 kB / 1.015 GB, free: 8.75 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001489/0.3946, allocations: 0.802 MB / 1.016 GB, free: 7.922 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.64e-06/0.3947, allocations: 4.031 kB / 1.016 GB, free: 7.918 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00417/0.3988, allocations: 1.408 MB / 1.017 GB, free: 6.43 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001074/0.3999, allocations: 386.7 kB / 1.017 GB, free: 6.031 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001993/0.4001, allocations: 12 kB / 1.017 GB, free: 6.02 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001016/0.4012, allocations: 107.9 kB / 1.017 GB, free: 5.914 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.969e-05/0.4013, allocations: 40.5 kB / 1.018 GB, free: 5.875 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.076e-05/0.4014, allocations: 39.97 kB / 1.018 GB, free: 5.836 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.001955/0.4033, allocations: 1.082 MB / 1.019 GB, free: 4.758 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.062e-06/0.4033, allocations: 0 / 1.019 GB, free: 4.758 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.001475/0.4048, allocations: 439.4 kB / 1.019 GB, free: 4.328 MB / 0.6667 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 (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 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.00494/0.4098, allocations: 2.703 MB / 1.022 GB, free: 1.555 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.002316/0.4121, allocations: 0.8952 MB / 1.023 GB, free: 0.6602 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.4121, allocations: 0 / 1.023 GB, free: 0.6602 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.001382/0.4135, allocations: 499.7 kB / 1.023 GB, free: 176 kB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003351/0.4169, allocations: 0.7083 MB / 1.024 GB, free: 15.47 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00742/0.4243, allocations: 8.519 MB / 1.032 GB, free: 6.613 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007534/0.4251, allocations: 1.207 MB / 1.033 GB, free: 5.379 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.001304/0.4264, allocations: 267.7 kB / 1.033 GB, free: 5.117 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000744/0.4272, allocations: 0.5617 MB / 1.034 GB, free: 4.555 MB / 0.6823 GB Notification: Performance of SimCode: time 1.002e-06/0.4272, allocations: 0 / 1.034 GB, free: 4.555 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5516/0.9788, allocations: 43.01 MB / 1.076 GB, free: 138.3 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001822/0.979, allocations: 263.9 kB / 1.076 GB, free: 137.9 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.242/4.221, allocations: 5.688 kB / 1.076 GB, free: 137.9 MB / 0.698 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe 2>&1)