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.001394/0.001394, allocations: 112.5 kB / 15.73 MB, free: 76 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.001346/0.001346, allocations: 190.7 kB / 16.67 MB, free: 6.539 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.443/1.443, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002562/0.002562, allocations: 290.5 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.039/1.039, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002754/0.002754, allocations: 95.86 kB / 0.6809 GB, free: 12 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1527/0.1554, allocations: 86.98 MB / 0.7659 GB, free: 8.961 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.3669/0.5224, allocations: 70.45 MB / 0.8347 GB, free: 0.6523 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.02529/0.5477, allocations: 18.91 MB / 0.8532 GB, free: 2.062 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002532/0.5503, allocations: 71.41 kB / 0.8532 GB, free: 2.035 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.002323/0.5527, allocations: 0.8155 MB / 0.854 GB, free: 1.324 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.007565/0.5602, allocations: 2.851 MB / 0.8568 GB, free: 15.04 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.004079/0.5643, allocations: 1.653 MB / 0.8584 GB, free: 13.75 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.005612/0.57, allocations: 4.043 MB / 0.8624 GB, free: 11.31 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002158/0.5721, allocations: 1.464 MB / 0.8638 GB, free: 10.36 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004553/0.5767, allocations: 1.769 MB / 0.8655 GB, free: 9.215 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002432/0.5792, allocations: 1.174 MB / 0.8667 GB, free: 8.484 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0002884/0.5795, allocations: 175.1 kB / 0.8668 GB, free: 8.484 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003026/0.5825, allocations: 1.42 MB / 0.8682 GB, free: 7.73 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0003825/0.5829, allocations: 382.6 kB / 0.8686 GB, free: 7.414 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.001099/0.584, allocations: 0.917 MB / 0.8695 GB, free: 6.773 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.004427/0.5884, allocations: 3.132 MB / 0.8725 GB, free: 4.605 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.5885, allocations: 0 / 0.8725 GB, free: 4.605 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.282e-06/0.5885, allocations: 0 / 0.8725 GB, free: 4.605 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 2.484e-05/0.5885, allocations: 0 / 0.8725 GB, free: 4.605 MB / 0.6231 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.003571/0.5921, allocations: 2.085 MB / 0.8746 GB, free: 2.996 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.5921, allocations: 14.12 kB / 0.8746 GB, free: 2.992 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001966/0.5923, allocations: 157.2 kB / 0.8747 GB, free: 2.863 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00229/0.5946, allocations: 444.2 kB / 0.8752 GB, free: 2.66 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002808/0.5974, allocations: 1.567 MB / 0.8767 GB, free: 1.387 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.508e-05/0.5975, allocations: 82.03 kB / 0.8768 GB, free: 1.348 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001522/0.5977, allocations: 102.1 kB / 0.8769 GB, free: 1.316 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002536/0.6002, allocations: 1.32 MB / 0.8782 GB, free: 228 kB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.271e-05/0.6003, allocations: 3.938 kB / 0.8782 GB, free: 224 kB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001132/0.6004, allocations: 44 kB / 0.8782 GB, free: 180 kB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.69e-05/0.6004, allocations: 31.98 kB / 0.8782 GB, free: 148 kB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002767/0.6032, allocations: 1.093 MB / 0.8793 GB, free: 15.05 MB / 0.6387 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.009323/0.6125, allocations: 7.534 MB / 0.8867 GB, free: 7 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003291/0.6158, allocations: 0.803 MB / 0.8874 GB, free: 6.191 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006449/0.6165, allocations: 282 kB / 0.8877 GB, free: 5.91 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001491/0.618, allocations: 1.722 MB / 0.8894 GB, free: 3.801 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.348e-05/0.618, allocations: 39 kB / 0.8894 GB, free: 3.754 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=48): time 4.097e-06/0.6181, allocations: 4 kB / 0.8894 GB, free: 3.75 MB / 0.6387 GB Notification: Performance of matching and sorting (n=48): time 0.004813/0.6229, allocations: 1.343 MB / 0.8907 GB, free: 2.379 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.969e-05/0.6229, allocations: 59.84 kB / 0.8908 GB, free: 2.309 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002521/0.6255, allocations: 1.546 MB / 0.8923 GB, free: 0.7539 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 6.963e-05/0.6256, allocations: 37.7 kB / 0.8924 GB, free: 0.7109 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006666/0.6262, allocations: 0.6857 MB / 0.893 GB, free: 20 kB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001956/0.6264, allocations: 174.5 kB / 0.8932 GB, free: 15.85 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003144/0.6268, allocations: 178.4 kB / 0.8934 GB, free: 15.67 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001607/0.6269, allocations: 334 kB / 0.8937 GB, free: 15.34 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001026/0.628, allocations: 365.8 kB / 0.894 GB, free: 14.98 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001333/0.6293, allocations: 0.6572 MB / 0.8947 GB, free: 14.2 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001927/0.6312, allocations: 0.8906 MB / 0.8955 GB, free: 13.21 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.868e-06/0.6313, allocations: 7.938 kB / 0.8955 GB, free: 13.2 MB / 0.6544 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.003144/0.6344, allocations: 1.19 MB / 0.8967 GB, free: 12 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.322e-05/0.6344, allocations: 14.81 kB / 0.8967 GB, free: 11.98 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.483e-05/0.6345, allocations: 8 kB / 0.8967 GB, free: 11.98 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008929/0.6354, allocations: 220.6 kB / 0.8969 GB, free: 11.76 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008367/0.6362, allocations: 199.7 kB / 0.8971 GB, free: 11.56 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009628/0.6372, allocations: 0.7201 MB / 0.8978 GB, free: 10.82 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00166/0.6389, allocations: 215 kB / 0.898 GB, free: 10.61 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.883e-05/0.639, allocations: 43.98 kB / 0.8981 GB, free: 10.56 MB / 0.6544 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.0005998/0.6396, allocations: 362.2 kB / 0.8984 GB, free: 10.2 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002983/0.6399, allocations: 155 kB / 0.8986 GB, free: 10.05 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002586/0.6425, allocations: 1.137 MB / 0.8997 GB, free: 8.895 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.247e-05/0.6425, allocations: 15.98 kB / 0.8997 GB, free: 8.879 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.6425, allocations: 0 / 0.8997 GB, free: 8.879 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.618e-06/0.6425, allocations: 3.984 kB / 0.8997 GB, free: 8.875 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005713/0.6483, allocations: 2.51 MB / 0.9022 GB, free: 6.281 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.063e-05/0.6483, allocations: 7.984 kB / 0.9022 GB, free: 6.273 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003956/0.6487, allocations: 75.89 kB / 0.9022 GB, free: 6.199 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007864/0.6495, allocations: 224.7 kB / 0.9024 GB, free: 5.977 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.74e-05/0.6495, allocations: 16.08 kB / 0.9025 GB, free: 5.961 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0014/0.6509, allocations: 0.7708 MB / 0.9032 GB, free: 5.164 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.796e-06/0.651, allocations: 3.938 kB / 0.9032 GB, free: 5.16 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003753/0.6547, allocations: 1.212 MB / 0.9044 GB, free: 3.91 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007154/0.6555, allocations: 363.7 kB / 0.9047 GB, free: 3.535 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002767/0.6557, allocations: 15.95 kB / 0.9048 GB, free: 3.52 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001073/0.6568, allocations: 71.91 kB / 0.9048 GB, free: 3.449 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001036/0.6569, allocations: 48.44 kB / 0.9049 GB, free: 3.402 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.553e-05/0.657, allocations: 23.98 kB / 0.9049 GB, free: 3.379 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.002056/0.6591, allocations: 1.086 MB / 0.906 GB, free: 2.297 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.91e-07/0.6591, allocations: 0 / 0.906 GB, free: 2.297 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001621/0.6607, allocations: 443.1 kB / 0.9064 GB, free: 1.863 MB / 0.6544 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.00497/0.6657, allocations: 2.128 MB / 0.9085 GB, free: 15.7 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.00232/0.668, allocations: 0.8408 MB / 0.9093 GB, free: 14.85 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.668, allocations: 0 / 0.9093 GB, free: 14.85 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.001407/0.6695, allocations: 439.6 kB / 0.9097 GB, free: 14.43 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003421/0.6729, allocations: 0.7479 MB / 0.9104 GB, free: 13.7 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01995/0.6929, allocations: 10.51 MB / 0.9207 GB, free: 2.816 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009449/0.6938, allocations: 1.168 MB / 0.9218 GB, free: 1.613 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.001073/0.6949, allocations: 267 kB / 0.9221 GB, free: 1.352 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008727/0.6958, allocations: 0.5461 MB / 0.9226 GB, free: 0.8047 MB / 0.67 GB Notification: Performance of SimCode: time 1.052e-06/0.6958, allocations: 4 kB / 0.9226 GB, free: 0.8008 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08681/0.7826, allocations: 43.76 MB / 0.9654 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.57/16.35, allocations: 12.22 kB / 0.9654 GB, free: 5.66 MB / 0.7169 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw.fmu > BuildingSystems_BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe 2>&1)