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.004484/0.004484, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.001089/0.001089, allocations: 194.2 kB / 16.68 MB, free: 5.969 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.289/1.289, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002112/0.002112, allocations: 296.2 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9376/0.9376, allocations: 169.2 MB / 0.4983 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001819/0.001819, allocations: 91.86 kB / 0.681 GB, free: 7.477 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4144/0.4162, allocations: 86.98 MB / 0.7659 GB, free: 3.875 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.06758/0.4839, allocations: 70.43 MB / 0.8347 GB, free: 13.2 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.02285/0.5067, allocations: 18.93 MB / 0.8532 GB, free: 10.22 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002481/0.5093, allocations: 67.62 kB / 0.8532 GB, free: 10.15 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.002264/0.5116, allocations: 0.8385 MB / 0.854 GB, free: 9.309 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.007562/0.5192, allocations: 3.009 MB / 0.857 GB, free: 6.289 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.004698/0.5239, allocations: 1.661 MB / 0.8586 GB, free: 4.637 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.005744/0.5296, allocations: 4.062 MB / 0.8626 GB, free: 0.5625 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002039/0.5317, allocations: 1.449 MB / 0.864 GB, free: 15.08 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003747/0.5355, allocations: 1.805 MB / 0.8657 GB, free: 13.27 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001951/0.5374, allocations: 1.196 MB / 0.8669 GB, free: 12.07 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.000274/0.5377, allocations: 176 kB / 0.8671 GB, free: 11.9 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002793/0.5405, allocations: 1.404 MB / 0.8685 GB, free: 10.49 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.000378/0.5409, allocations: 390.7 kB / 0.8688 GB, free: 10.11 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.001073/0.542, allocations: 0.9176 MB / 0.8697 GB, free: 9.188 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.004384/0.5464, allocations: 3.131 MB / 0.8728 GB, free: 6.051 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 8.355e-06/0.5464, allocations: 4 kB / 0.8728 GB, free: 6.047 MB / 0.6387 GB Notification: Performance of FrontEnd: time 2.004e-06/0.5464, allocations: 0 / 0.8728 GB, free: 6.047 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 3.904e-05/0.5465, allocations: 0 / 0.8728 GB, free: 6.047 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.003657/0.5502, allocations: 2.097 MB / 0.8748 GB, free: 3.887 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/0.5502, allocations: 8.031 kB / 0.8748 GB, free: 3.879 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001889/0.5504, allocations: 156.6 kB / 0.875 GB, free: 3.719 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002326/0.5527, allocations: 463.1 kB / 0.8754 GB, free: 3.266 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002855/0.5556, allocations: 1.556 MB / 0.877 GB, free: 1.652 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.628e-05/0.5557, allocations: 82.03 kB / 0.877 GB, free: 1.57 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002065/0.5559, allocations: 100 kB / 0.8771 GB, free: 1.473 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002543/0.5585, allocations: 1.323 MB / 0.8784 GB, free: 44 kB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.432e-05/0.5585, allocations: 3.938 kB / 0.8784 GB, free: 40 kB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001188/0.5587, allocations: 48.08 kB / 0.8785 GB, free: 15.99 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.952e-05/0.5587, allocations: 24 kB / 0.8785 GB, free: 15.96 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002599/0.5613, allocations: 1.104 MB / 0.8796 GB, free: 14.86 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.008412/0.5697, allocations: 7.506 MB / 0.8869 GB, free: 6.84 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003168/0.5729, allocations: 0.7979 MB / 0.8877 GB, free: 6.035 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000615/0.5736, allocations: 290 kB / 0.888 GB, free: 5.75 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001266/0.5748, allocations: 1.714 MB / 0.8896 GB, free: 3.645 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.864e-05/0.5749, allocations: 50.88 kB / 0.8897 GB, free: 3.586 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=48): time 2.575e-06/0.5749, allocations: 0 / 0.8897 GB, free: 3.586 MB / 0.6544 GB Notification: Performance of matching and sorting (n=48): time 0.004893/0.5798, allocations: 1.347 MB / 0.891 GB, free: 2.215 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.271e-05/0.5798, allocations: 55.84 kB / 0.891 GB, free: 2.148 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002247/0.5821, allocations: 1.542 MB / 0.8926 GB, free: 0.5977 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 8.872e-05/0.5822, allocations: 37.7 kB / 0.8926 GB, free: 0.5547 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006463/0.5828, allocations: 0.6857 MB / 0.8933 GB, free: 15.86 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001777/0.583, allocations: 178.5 kB / 0.8934 GB, free: 15.69 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002949/0.5833, allocations: 174.5 kB / 0.8936 GB, free: 15.51 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001451/0.5835, allocations: 333.9 kB / 0.8939 GB, free: 15.18 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009946/0.5845, allocations: 365.8 kB / 0.8943 GB, free: 14.82 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001204/0.5857, allocations: 0.6546 MB / 0.8949 GB, free: 14.05 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001775/0.5875, allocations: 0.8867 MB / 0.8958 GB, free: 13.05 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.623e-06/0.5875, allocations: 7.938 kB / 0.8958 GB, free: 13.05 MB / 0.67 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002961/0.5905, allocations: 1.194 MB / 0.8969 GB, free: 11.84 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 2.203e-05/0.5905, allocations: 15 kB / 0.897 GB, free: 11.83 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.237e-05/0.5905, allocations: 8 kB / 0.897 GB, free: 11.82 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008647/0.5914, allocations: 224.6 kB / 0.8972 GB, free: 11.6 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007733/0.5922, allocations: 191.7 kB / 0.8974 GB, free: 11.41 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008341/0.593, allocations: 0.724 MB / 0.8981 GB, free: 10.66 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001517/0.5946, allocations: 223 kB / 0.8983 GB, free: 10.45 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.781e-05/0.5947, allocations: 43.97 kB / 0.8983 GB, free: 10.4 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.0005517/0.5952, allocations: 361.6 kB / 0.8987 GB, free: 10.04 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002414/0.5955, allocations: 151 kB / 0.8988 GB, free: 9.891 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002366/0.5978, allocations: 1.144 MB / 0.8999 GB, free: 8.727 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.566e-05/0.5979, allocations: 8 kB / 0.8999 GB, free: 8.719 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.5979, allocations: 0 / 0.8999 GB, free: 8.719 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.5979, allocations: 3.984 kB / 0.8999 GB, free: 8.715 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005113/0.603, allocations: 2.518 MB / 0.9024 GB, free: 6.113 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.206e-06/0.603, allocations: 4 kB / 0.9024 GB, free: 6.109 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003707/0.6034, allocations: 83.88 kB / 0.9025 GB, free: 6.027 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007438/0.6042, allocations: 212.8 kB / 0.9027 GB, free: 5.816 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.969e-05/0.6042, allocations: 12 kB / 0.9027 GB, free: 5.805 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001283/0.6055, allocations: 0.7864 MB / 0.9035 GB, free: 4.992 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.6055, allocations: 0 / 0.9035 GB, free: 4.992 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003402/0.6089, allocations: 1.204 MB / 0.9046 GB, free: 3.75 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006017/0.6095, allocations: 371.6 kB / 0.905 GB, free: 3.367 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002028/0.6098, allocations: 15.94 kB / 0.905 GB, free: 3.352 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009272/0.6107, allocations: 71.91 kB / 0.9051 GB, free: 3.281 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.418e-05/0.6108, allocations: 36.52 kB / 0.9051 GB, free: 3.246 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.334e-05/0.6109, allocations: 23.98 kB / 0.9051 GB, free: 3.223 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.001716/0.6126, allocations: 1.086 MB / 0.9062 GB, free: 2.141 MB / 0.67 GB Notification: Performance of sort global known variables: time 2.81e-07/0.6126, allocations: 4 kB / 0.9062 GB, free: 2.137 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.00124/0.6138, allocations: 447.1 kB / 0.9066 GB, free: 1.699 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.004603/0.6184, allocations: 2.127 MB / 0.9087 GB, free: 15.54 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.002394/0.6209, allocations: 0.8439 MB / 0.9095 GB, free: 14.69 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.6209, allocations: 1.125 kB / 0.9095 GB, free: 14.69 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.001341/0.6222, allocations: 443.3 kB / 0.9099 GB, free: 14.25 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003241/0.6255, allocations: 0.7422 MB / 0.9107 GB, free: 13.52 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01691/0.6424, allocations: 10.5 MB / 0.9209 GB, free: 2.656 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006584/0.6431, allocations: 1.176 MB / 0.9221 GB, free: 1.449 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.000979/0.6441, allocations: 260.1 kB / 0.9223 GB, free: 1.191 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000735/0.6448, allocations: 0.55 MB / 0.9229 GB, free: 0.6406 MB / 0.6856 GB Notification: Performance of SimCode: time 6.92e-07/0.6449, allocations: 0 / 0.9229 GB, free: 0.6406 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07403/0.7189, allocations: 43.77 MB / 0.9656 GB, free: 5.492 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.59/14.31, allocations: 7.312 kB / 0.9656 GB, free: 5.488 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)