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.001425/0.001425, allocations: 108 kB / 15.6 MB, free: 132 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.001648/0.001648, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.291/1.291, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002076/0.002076, allocations: 295 kB / 290.7 MB, free: 2.004 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9152/0.9152, allocations: 169.3 MB / 0.4982 GB, free: 13.94 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001731/0.001731, allocations: 98 kB / 0.5953 GB, free: 27.69 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1388/0.1405, allocations: 86.98 MB / 0.6803 GB, free: 0.582 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.06314/0.2037, allocations: 70.43 MB / 0.7491 GB, free: 9.941 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.02177/0.2255, allocations: 18.93 MB / 0.7675 GB, free: 6.961 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001924/0.2274, allocations: 71.56 kB / 0.7676 GB, free: 6.891 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001758/0.2292, allocations: 0.8189 MB / 0.7684 GB, free: 6.066 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.005762/0.235, allocations: 2.854 MB / 0.7712 GB, free: 3.199 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.003307/0.2383, allocations: 1.657 MB / 0.7728 GB, free: 1.555 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.2682/0.5065, allocations: 4.023 MB / 0.7767 GB, free: 25.9 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001999/0.5086, allocations: 1.448 MB / 0.7782 GB, free: 25.81 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003288/0.5119, allocations: 1.763 MB / 0.7799 GB, free: 25.8 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001409/0.5133, allocations: 1.179 MB / 0.781 GB, free: 25.72 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0002499/0.5136, allocations: 176.7 kB / 0.7812 GB, free: 25.72 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002434/0.516, allocations: 1.413 MB / 0.7826 GB, free: 25.72 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002673/0.5163, allocations: 385.6 kB / 0.7829 GB, free: 25.66 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0006861/0.517, allocations: 0.924 MB / 0.7838 GB, free: 25.42 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.003005/0.52, allocations: 3.084 MB / 0.7869 GB, free: 25.16 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.52, allocations: 3.562 kB / 0.7869 GB, free: 25.16 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.263e-06/0.52, allocations: 2.844 kB / 0.7869 GB, free: 25.16 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 2.306e-05/0.52, allocations: 0 / 0.7869 GB, free: 25.16 MB / 0.5606 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.002929/0.523, allocations: 2.028 MB / 0.7888 GB, free: 24.14 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.339e-05/0.523, allocations: 11.91 kB / 0.7889 GB, free: 24.14 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001616/0.5232, allocations: 152.2 kB / 0.789 GB, free: 24.11 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002215/0.5254, allocations: 447.7 kB / 0.7894 GB, free: 24.01 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002095/0.5275, allocations: 1.486 MB / 0.7909 GB, free: 23.59 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003686/0.5279, allocations: 135.7 kB / 0.791 GB, free: 23.59 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001309/0.528, allocations: 103.2 kB / 0.7911 GB, free: 23.59 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002199/0.5302, allocations: 1.327 MB / 0.7924 GB, free: 23.29 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.276e-05/0.5303, allocations: 1.062 kB / 0.7924 GB, free: 23.29 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001026/0.5304, allocations: 43.28 kB / 0.7924 GB, free: 23.29 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.859e-05/0.5304, allocations: 27.92 kB / 0.7925 GB, free: 23.29 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002528/0.5329, allocations: 1.106 MB / 0.7936 GB, free: 23.27 MB / 0.5606 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.006347/0.5393, allocations: 7.557 MB / 0.8009 GB, free: 18.84 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003006/0.5423, allocations: 0.8081 MB / 0.8017 GB, free: 18.8 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000537/0.5429, allocations: 278.5 kB / 0.802 GB, free: 18.8 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007393/0.5436, allocations: 1.727 MB / 0.8037 GB, free: 16.82 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.86e-05/0.5436, allocations: 42.31 kB / 0.8037 GB, free: 16.78 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=48): time 2.805e-06/0.5437, allocations: 0 / 0.8037 GB, free: 16.78 MB / 0.5606 GB Notification: Performance of matching and sorting (n=48): time 0.004546/0.5482, allocations: 1.341 MB / 0.805 GB, free: 16.53 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.425e-05/0.5482, allocations: 56.5 kB / 0.8051 GB, free: 16.47 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002279/0.5505, allocations: 1.551 MB / 0.8066 GB, free: 16.29 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 5.081e-05/0.5506, allocations: 39.39 kB / 0.8066 GB, free: 16.26 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004073/0.551, allocations: 0.6774 MB / 0.8073 GB, free: 16.03 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001087/0.5511, allocations: 170.4 kB / 0.8075 GB, free: 15.92 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002569/0.5514, allocations: 172.6 kB / 0.8076 GB, free: 15.9 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.971e-05/0.5514, allocations: 331.8 kB / 0.8079 GB, free: 15.59 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009565/0.5524, allocations: 370.9 kB / 0.8083 GB, free: 15.59 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001089/0.5535, allocations: 0.6649 MB / 0.8089 GB, free: 15.24 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001637/0.5551, allocations: 0.8931 MB / 0.8098 GB, free: 14.94 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.932e-06/0.5552, allocations: 2.375 kB / 0.8098 GB, free: 14.94 MB / 0.5606 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002732/0.5579, allocations: 1.204 MB / 0.811 GB, free: 14.79 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.889e-05/0.5579, allocations: 7.625 kB / 0.811 GB, free: 14.79 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.329e-05/0.5579, allocations: 8.406 kB / 0.811 GB, free: 14.79 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007976/0.5587, allocations: 218.6 kB / 0.8112 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007439/0.5595, allocations: 196.5 kB / 0.8114 GB, free: 14.76 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006981/0.5602, allocations: 0.7189 MB / 0.8121 GB, free: 14.24 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001425/0.5616, allocations: 224.6 kB / 0.8123 GB, free: 14.17 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.46e-05/0.5617, allocations: 41.58 kB / 0.8124 GB, free: 14.17 MB / 0.5606 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.000439/0.5622, allocations: 357.8 kB / 0.8127 GB, free: 14.05 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002059/0.5624, allocations: 146.1 kB / 0.8128 GB, free: 13.98 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002219/0.5646, allocations: 1.147 MB / 0.814 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.522e-05/0.5647, allocations: 6.812 kB / 0.814 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.5647, allocations: 1.156 kB / 0.814 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.5647, allocations: 3.375 kB / 0.814 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004583/0.5693, allocations: 2.514 MB / 0.8164 GB, free: 13.41 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.032e-06/0.5693, allocations: 2.953 kB / 0.8164 GB, free: 13.41 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003406/0.5696, allocations: 80.75 kB / 0.8165 GB, free: 13.41 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006727/0.5703, allocations: 222.5 kB / 0.8167 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.802e-05/0.5704, allocations: 16.75 kB / 0.8167 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001105/0.5715, allocations: 0.7738 MB / 0.8175 GB, free: 12.86 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.5715, allocations: 1.375 kB / 0.8175 GB, free: 12.86 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003113/0.5746, allocations: 1.209 MB / 0.8187 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003997/0.575, allocations: 347.3 kB / 0.819 GB, free: 12.37 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001893/0.5752, allocations: 17.03 kB / 0.819 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008874/0.5761, allocations: 79.19 kB / 0.8191 GB, free: 12.34 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.251e-05/0.5762, allocations: 37.97 kB / 0.8191 GB, free: 12.33 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.405e-05/0.5763, allocations: 29.38 kB / 0.8192 GB, free: 12.32 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001502/0.5778, allocations: 1.088 MB / 0.8202 GB, free: 11.89 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5778, allocations: 0 / 0.8202 GB, free: 11.89 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001208/0.579, allocations: 447.6 kB / 0.8206 GB, free: 11.79 MB / 0.5606 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.004045/0.5831, allocations: 2.123 MB / 0.8227 GB, free: 10.64 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.002143/0.5852, allocations: 0.8846 MB / 0.8236 GB, free: 10.38 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.5852, allocations: 1.969 kB / 0.8236 GB, free: 10.38 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001195/0.5864, allocations: 445 kB / 0.824 GB, free: 10.26 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002767/0.5892, allocations: 0.7408 MB / 0.8247 GB, free: 10.02 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0145/0.6037, allocations: 11.39 MB / 0.8359 GB, free: 3.051 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004708/0.6042, allocations: 1.172 MB / 0.837 GB, free: 2.137 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001046/0.6053, allocations: 267.2 kB / 0.8373 GB, free: 2.008 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005823/0.6059, allocations: 0.5502 MB / 0.8378 GB, free: 1.547 MB / 0.5606 GB Notification: Performance of SimCode: time 4.91e-07/0.6059, allocations: 0 / 0.8378 GB, free: 1.547 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07146/0.6773, allocations: 43.47 MB / 0.8803 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.09/11.77, allocations: 9.438 kB / 0.8803 GB, free: 10.41 MB / 0.6075 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)