Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,fileNamePrefix="BuildingSystems_BuildingSystems_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.007193/0.007193, allocations: 101.2 kB / 15.73 MB, free: 6.062 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.001869/0.001869, allocations: 189.5 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.38/1.38, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002428/0.002428, allocations: 285.2 kB / 290.8 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9808/0.9808, allocations: 169.3 MB / 0.4983 GB, free: 4.414 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002662/0.002662, allocations: 99.84 kB / 0.681 GB, free: 7.477 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4022/0.4049, allocations: 86.97 MB / 0.7659 GB, free: 3.891 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.0784/0.4833, allocations: 70.44 MB / 0.8347 GB, free: 13.21 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.02619/0.5096, allocations: 18.92 MB / 0.8532 GB, free: 10.23 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002375/0.512, allocations: 71.56 kB / 0.8532 GB, free: 10.16 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.002371/0.5144, allocations: 0.8228 MB / 0.854 GB, free: 9.332 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.007784/0.5222, allocations: 2.859 MB / 0.8568 GB, free: 6.461 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.004221/0.5264, allocations: 1.651 MB / 0.8584 GB, free: 4.82 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.006318/0.5328, allocations: 4.054 MB / 0.8624 GB, free: 0.7578 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002424/0.5352, allocations: 1.453 MB / 0.8638 GB, free: 15.27 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0042/0.5394, allocations: 1.767 MB / 0.8655 GB, free: 13.5 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002329/0.5418, allocations: 1.183 MB / 0.8667 GB, free: 12.31 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.000355/0.5422, allocations: 172 kB / 0.8669 GB, free: 12.14 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003252/0.5454, allocations: 1.412 MB / 0.8682 GB, free: 10.73 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.000485/0.5459, allocations: 394.6 kB / 0.8686 GB, free: 10.34 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.001323/0.5473, allocations: 0.9138 MB / 0.8695 GB, free: 9.422 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.005096/0.5524, allocations: 3.131 MB / 0.8726 GB, free: 6.285 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.5524, allocations: 0 / 0.8726 GB, free: 6.285 MB / 0.6387 GB Notification: Performance of FrontEnd: time 2.254e-06/0.5524, allocations: 0 / 0.8726 GB, free: 6.285 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 4.257e-05/0.5525, allocations: 0 / 0.8726 GB, free: 6.285 MB / 0.6387 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.003918/0.5564, allocations: 2.087 MB / 0.8746 GB, free: 4.133 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.703e-05/0.5564, allocations: 12.03 kB / 0.8746 GB, free: 4.121 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000201/0.5566, allocations: 156.6 kB / 0.8748 GB, free: 3.961 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002256/0.5589, allocations: 459.1 kB / 0.8752 GB, free: 3.512 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002932/0.5619, allocations: 1.56 MB / 0.8767 GB, free: 1.895 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.473e-05/0.562, allocations: 78.03 kB / 0.8768 GB, free: 1.816 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001613/0.5621, allocations: 108 kB / 0.8769 GB, free: 1.711 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002752/0.5649, allocations: 1.315 MB / 0.8782 GB, free: 296 kB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.692e-05/0.5649, allocations: 4 kB / 0.8782 GB, free: 292 kB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001071/0.565, allocations: 48 kB / 0.8782 GB, free: 244 kB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.35e-05/0.5651, allocations: 24 kB / 0.8783 GB, free: 220 kB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002823/0.5679, allocations: 1.112 MB / 0.8793 GB, free: 15.1 MB / 0.6544 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.01015/0.5781, allocations: 7.51 MB / 0.8867 GB, free: 7.074 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0032/0.5813, allocations: 0.7979 MB / 0.8875 GB, free: 6.27 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006418/0.5819, allocations: 286 kB / 0.8877 GB, free: 5.988 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001494/0.5835, allocations: 1.718 MB / 0.8894 GB, free: 3.879 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.056e-05/0.5835, allocations: 46.92 kB / 0.8895 GB, free: 3.824 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=48): time 2.184e-06/0.5835, allocations: 8 kB / 0.8895 GB, free: 3.816 MB / 0.6544 GB Notification: Performance of matching and sorting (n=48): time 0.004918/0.5884, allocations: 1.339 MB / 0.8908 GB, free: 2.453 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.546e-05/0.5885, allocations: 55.84 kB / 0.8908 GB, free: 2.387 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002588/0.5911, allocations: 1.542 MB / 0.8923 GB, free: 0.8359 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 8.789e-05/0.5912, allocations: 37.7 kB / 0.8924 GB, free: 0.793 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006678/0.5919, allocations: 0.6896 MB / 0.893 GB, free: 100 kB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002054/0.5921, allocations: 174.7 kB / 0.8932 GB, free: 15.92 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003039/0.5924, allocations: 170.5 kB / 0.8934 GB, free: 15.75 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001651/0.5926, allocations: 342 kB / 0.8937 GB, free: 15.41 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001013/0.5936, allocations: 357.8 kB / 0.894 GB, free: 15.06 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001316/0.5949, allocations: 0.6662 MB / 0.8947 GB, free: 14.27 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001904/0.5968, allocations: 0.8826 MB / 0.8955 GB, free: 13.29 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.77e-06/0.5968, allocations: 0 / 0.8955 GB, free: 13.29 MB / 0.67 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.003315/0.6002, allocations: 1.202 MB / 0.8967 GB, free: 12.08 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 2.853e-05/0.6002, allocations: 10.97 kB / 0.8967 GB, free: 12.07 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.703e-05/0.6002, allocations: 8 kB / 0.8967 GB, free: 12.06 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009501/0.6012, allocations: 228.6 kB / 0.897 GB, free: 11.84 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007737/0.602, allocations: 187.7 kB / 0.8971 GB, free: 11.65 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009549/0.6029, allocations: 0.7317 MB / 0.8978 GB, free: 10.89 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001616/0.6046, allocations: 211 kB / 0.8981 GB, free: 10.69 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001084/0.6047, allocations: 43.97 kB / 0.8981 GB, free: 10.64 MB / 0.67 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 (84): * Single equations (assignments): 83 * 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.0007092/0.6054, allocations: 357.6 kB / 0.8984 GB, free: 10.29 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000296/0.6057, allocations: 155 kB / 0.8986 GB, free: 10.13 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00257/0.6083, allocations: 1.144 MB / 0.8997 GB, free: 8.969 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-05/0.6083, allocations: 11.98 kB / 0.8997 GB, free: 8.957 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.185e-06/0.6083, allocations: 0 / 0.8997 GB, free: 8.957 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.498e-06/0.6084, allocations: 7.922 kB / 0.8997 GB, free: 8.949 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005595/0.614, allocations: 2.506 MB / 0.9022 GB, free: 6.359 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.005e-06/0.614, allocations: 0 / 0.9022 GB, free: 6.359 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003676/0.6144, allocations: 91.81 kB / 0.9023 GB, free: 6.27 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007855/0.6152, allocations: 212.8 kB / 0.9025 GB, free: 6.059 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.834e-05/0.6152, allocations: 19.98 kB / 0.9025 GB, free: 6.039 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001374/0.6166, allocations: 0.7708 MB / 0.9032 GB, free: 5.242 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.6166, allocations: 0 / 0.9032 GB, free: 5.242 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003539/0.6202, allocations: 1.212 MB / 0.9044 GB, free: 3.992 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006819/0.6209, allocations: 359.7 kB / 0.9048 GB, free: 3.621 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001859/0.6211, allocations: 16 kB / 0.9048 GB, free: 3.605 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008692/0.6219, allocations: 71.91 kB / 0.9048 GB, free: 3.535 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001031/0.6221, allocations: 44.45 kB / 0.9049 GB, free: 3.492 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.977e-05/0.6221, allocations: 23.98 kB / 0.9049 GB, free: 3.469 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.001896/0.624, allocations: 1.086 MB / 0.906 GB, free: 2.387 MB / 0.67 GB Notification: Performance of sort global known variables: time 2.51e-07/0.624, allocations: 0 / 0.906 GB, free: 2.387 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.001368/0.6254, allocations: 451.1 kB / 0.9064 GB, free: 1.945 MB / 0.67 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 (52): * Single equations (assignments): 41 * 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.004759/0.6302, allocations: 2.136 MB / 0.9085 GB, free: 15.78 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.002266/0.6325, allocations: 0.8408 MB / 0.9093 GB, free: 14.93 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.6325, allocations: 0 / 0.9093 GB, free: 14.93 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.001322/0.6338, allocations: 443.6 kB / 0.9097 GB, free: 14.5 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003213/0.637, allocations: 0.7346 MB / 0.9104 GB, free: 13.77 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01852/0.6556, allocations: 10.51 MB / 0.9207 GB, free: 2.895 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008705/0.6565, allocations: 1.168 MB / 0.9218 GB, free: 1.695 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.001035/0.6575, allocations: 275.9 kB / 0.9221 GB, free: 1.426 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008185/0.6584, allocations: 0.5461 MB / 0.9226 GB, free: 0.8789 MB / 0.6856 GB Notification: Performance of SimCode: time 6.21e-07/0.6584, allocations: 4 kB / 0.9226 GB, free: 0.875 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08717/0.7455, allocations: 43.76 MB / 0.9654 GB, free: 5.746 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.92/14.66, allocations: 14.64 kB / 0.9654 GB, free: 5.734 MB / 0.7325 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw.fmu > BuildingSystems_BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe 2>&1)