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: "" <> buildModelFMU(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,fileNamePrefix="Buildings_8_Buildings_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,fileNamePrefix="Buildings_8_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00115/0.00115, allocations: 105.4 kB / 15.7 MB, free: 24 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.001155/0.001155, allocations: 197.4 kB / 16.64 MB, free: 6.449 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.47/1.47, allocations: 205.1 MB / 222.5 MB, free: 4.559 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.697/1.697, allocations: 292.3 MB / 0.549 GB, free: 12.76 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.001439/0.001439, allocations: 68.02 kB / 0.6718 GB, free: 26.16 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2585/0.26, allocations: 114.5 MB / 0.7836 GB, free: 13.27 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.07391/0.3339, allocations: 70.51 MB / 0.8525 GB, free: 6.5 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.02619/0.3602, allocations: 18.83 MB / 0.8709 GB, free: 3.621 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003023/0.3632, allocations: 63.62 kB / 0.8709 GB, free: 3.559 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.002803/0.3661, allocations: 0.8267 MB / 0.8717 GB, free: 2.727 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.008994/0.3751, allocations: 2.832 MB / 0.8745 GB, free: 15.88 MB / 0.7012 GB Notification: Performance of NFTyping.typeClassSections: time 0.005043/0.3802, allocations: 1.675 MB / 0.8761 GB, free: 14.22 MB / 0.7012 GB Notification: Performance of NFFlatten.flatten: time 0.006583/0.3868, allocations: 4.038 MB / 0.8801 GB, free: 10.16 MB / 0.7012 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002605/0.3894, allocations: 1.457 MB / 0.8815 GB, free: 8.676 MB / 0.7012 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004539/0.394, allocations: 1.786 MB / 0.8833 GB, free: 6.883 MB / 0.7012 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002429/0.3964, allocations: 1.19 MB / 0.8844 GB, free: 5.688 MB / 0.7012 GB Notification: Performance of NFPackage.collectConstants: time 0.0003587/0.3968, allocations: 187.9 kB / 0.8846 GB, free: 5.504 MB / 0.7012 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003277/0.4001, allocations: 1.408 MB / 0.886 GB, free: 4.094 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.0003998/0.4005, allocations: 390.6 kB / 0.8863 GB, free: 3.711 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.001238/0.4017, allocations: 0.9255 MB / 0.8872 GB, free: 2.781 MB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.004739/0.4065, allocations: 3.132 MB / 0.8903 GB, free: 15.64 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.4065, allocations: 0 / 0.8903 GB, free: 15.64 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.053e-06/0.4065, allocations: 0 / 0.8903 GB, free: 15.64 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.529e-05/0.4066, allocations: 0 / 0.8903 GB, free: 15.64 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.003998/0.4106, allocations: 2.042 MB / 0.8923 GB, free: 13.54 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/0.4106, allocations: 8.031 kB / 0.8923 GB, free: 13.53 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001782/0.4108, allocations: 156.6 kB / 0.8925 GB, free: 13.37 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002229/0.4131, allocations: 445.7 kB / 0.8929 GB, free: 12.93 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002923/0.416, allocations: 1.559 MB / 0.8944 GB, free: 11.31 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.583e-05/0.4161, allocations: 78.03 kB / 0.8945 GB, free: 11.23 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001426/0.4162, allocations: 108 kB / 0.8946 GB, free: 11.13 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00255/0.4188, allocations: 1.314 MB / 0.8959 GB, free: 9.715 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.175e-05/0.4188, allocations: 4 kB / 0.8959 GB, free: 9.711 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.972e-05/0.4189, allocations: 44 kB / 0.8959 GB, free: 9.668 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.515e-05/0.419, allocations: 31.94 kB / 0.8959 GB, free: 9.637 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002666/0.4216, allocations: 1.108 MB / 0.897 GB, free: 8.531 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.009175/0.4308, allocations: 7.23 MB / 0.9041 GB, free: 0.832 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003313/0.4342, allocations: 0.852 MB / 0.9049 GB, free: 15.97 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000673/0.4349, allocations: 301.9 kB / 0.9052 GB, free: 15.68 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001454/0.4363, allocations: 1.718 MB / 0.9069 GB, free: 13.57 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.823e-05/0.4364, allocations: 43 kB / 0.9069 GB, free: 13.52 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=52): time 3.096e-06/0.4364, allocations: 0 / 0.9069 GB, free: 13.52 MB / 0.7325 GB Notification: Performance of matching and sorting (n=52): time 0.005279/0.4417, allocations: 1.381 MB / 0.9083 GB, free: 12.11 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.946e-05/0.4418, allocations: 59.84 kB / 0.9083 GB, free: 12.04 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00268/0.4444, allocations: 1.553 MB / 0.9098 GB, free: 10.47 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 9.98e-05/0.4446, allocations: 37.7 kB / 0.9099 GB, free: 10.43 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.000652/0.4452, allocations: 0.6691 MB / 0.9105 GB, free: 9.754 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001962/0.4454, allocations: 185.3 kB / 0.9107 GB, free: 9.57 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003137/0.4457, allocations: 178.4 kB / 0.9109 GB, free: 9.391 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001646/0.4459, allocations: 337.9 kB / 0.9112 GB, free: 9.055 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001017/0.4469, allocations: 377.8 kB / 0.9116 GB, free: 8.684 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001285/0.4482, allocations: 0.6741 MB / 0.9122 GB, free: 7.883 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001953/0.4502, allocations: 0.9102 MB / 0.9131 GB, free: 6.867 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.4502, allocations: 4 kB / 0.9131 GB, free: 6.863 MB / 0.7325 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003242/0.4535, allocations: 1.228 MB / 0.9143 GB, free: 5.625 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.645e-05/0.4535, allocations: 8 kB / 0.9143 GB, free: 5.617 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.646e-05/0.4535, allocations: 8 kB / 0.9143 GB, free: 5.609 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000979/0.4545, allocations: 224.6 kB / 0.9145 GB, free: 5.387 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007788/0.4553, allocations: 199.7 kB / 0.9147 GB, free: 5.191 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008691/0.4562, allocations: 0.7123 MB / 0.9154 GB, free: 4.453 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001658/0.4579, allocations: 214.7 kB / 0.9156 GB, free: 4.242 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000111/0.458, allocations: 51.91 kB / 0.9157 GB, free: 4.191 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.0006859/0.4587, allocations: 353.6 kB / 0.916 GB, free: 3.836 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002926/0.459, allocations: 154.1 kB / 0.9162 GB, free: 3.684 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002695/0.4617, allocations: 1.191 MB / 0.9173 GB, free: 2.473 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.745e-05/0.4617, allocations: 15.97 kB / 0.9173 GB, free: 2.457 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.303e-05/0.4618, allocations: 0 / 0.9173 GB, free: 2.457 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.217e-05/0.4618, allocations: 8.016 kB / 0.9174 GB, free: 2.449 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3882/0.85, allocations: 2.572 MB / 0.9199 GB, free: 135.8 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.09e-05/0.8501, allocations: 2.469 kB / 0.9199 GB, free: 135.8 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005478/0.8506, allocations: 93.83 kB / 0.92 GB, free: 135.8 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009908/0.8516, allocations: 211.9 kB / 0.9202 GB, free: 135.7 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.639e-05/0.8517, allocations: 17.94 kB / 0.9202 GB, free: 135.7 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001308/0.853, allocations: 0.7656 MB / 0.9209 GB, free: 135.2 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/0.8531, allocations: 9.906 kB / 0.9209 GB, free: 135.2 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003964/0.857, allocations: 1.237 MB / 0.9221 GB, free: 135 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006396/0.8577, allocations: 355.5 kB / 0.9225 GB, free: 134.9 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000209/0.8579, allocations: 13.06 kB / 0.9225 GB, free: 134.9 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000909/0.8588, allocations: 80.52 kB / 0.9226 GB, free: 134.9 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001039/0.8589, allocations: 46.97 kB / 0.9226 GB, free: 134.9 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.992e-05/0.859, allocations: 25.58 kB / 0.9226 GB, free: 134.9 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.001782/0.8608, allocations: 1.09 MB / 0.9237 GB, free: 134.8 MB / 0.7325 GB Notification: Performance of sort global known variables: time 4.91e-07/0.8608, allocations: 0 / 0.9237 GB, free: 134.8 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.001459/0.8623, allocations: 447.6 kB / 0.9241 GB, free: 134.8 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.004405/0.8667, allocations: 2.148 MB / 0.9262 GB, free: 133.9 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.002099/0.8688, allocations: 0.8828 MB / 0.9271 GB, free: 133.7 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.8688, allocations: 0 / 0.9271 GB, free: 133.7 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.001279/0.8701, allocations: 461.1 kB / 0.9275 GB, free: 133.5 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003261/0.8734, allocations: 0.7689 MB / 0.9283 GB, free: 133.3 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02064/0.894, allocations: 10.6 MB / 0.9386 GB, free: 128.1 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001308/0.8954, allocations: 1.174 MB / 0.9398 GB, free: 127.4 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001898/0.8973, allocations: 280.1 kB / 0.94 GB, free: 127.3 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001086/0.8984, allocations: 0.5544 MB / 0.9406 GB, free: 126.9 MB / 0.7325 GB Notification: Performance of SimCode: time 1.994e-06/0.8984, allocations: 0.5 kB / 0.9406 GB, free: 126.9 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07154/0.9699, allocations: 44.16 MB / 0.9837 GB, free: 96.76 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.96/14.93, allocations: 3.859 kB / 0.9837 GB, free: 96.76 MB / 0.7325 GB (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 & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw.fmu > Buildings_8_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe 2>&1)