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.001038/0.001038, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00105/0.00105, allocations: 191.8 kB / 16.25 MB, free: 6.633 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.267/1.267, allocations: 222.9 MB / 239.9 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001929/0.001929, allocations: 286.9 kB / 290.3 MB, free: 2.156 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8936/0.8936, allocations: 169.2 MB / 0.4978 GB, free: 14.1 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001445/0.001445, allocations: 87.16 kB / 0.5948 GB, free: 28.06 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1268/0.1283, allocations: 86.98 MB / 0.6797 GB, free: 1 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.05467/0.183, allocations: 69.84 MB / 0.7479 GB, free: 10.95 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.01918/0.2022, allocations: 18.78 MB / 0.7663 GB, free: 8.113 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002861/0.2051, allocations: 71.5 kB / 0.7663 GB, free: 8.043 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.002525/0.2077, allocations: 0.6996 MB / 0.767 GB, free: 7.34 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.006328/0.214, allocations: 2.657 MB / 0.7696 GB, free: 4.672 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.003258/0.2173, allocations: 1.518 MB / 0.7711 GB, free: 3.168 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.25/0.4673, allocations: 4.066 MB / 0.7751 GB, free: 25.8 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001924/0.4693, allocations: 1.437 MB / 0.7765 GB, free: 25.71 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003402/0.4727, allocations: 1.777 MB / 0.7782 GB, free: 25.71 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001486/0.4742, allocations: 1.211 MB / 0.7794 GB, free: 25.65 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0002126/0.4744, allocations: 177.3 kB / 0.7796 GB, free: 25.65 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002199/0.4766, allocations: 1.434 MB / 0.781 GB, free: 25.65 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002458/0.4769, allocations: 395 kB / 0.7813 GB, free: 25.59 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0006692/0.4775, allocations: 0.9233 MB / 0.7822 GB, free: 25.35 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.002892/0.4804, allocations: 3.104 MB / 0.7853 GB, free: 25.09 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.4804, allocations: 0.7031 kB / 0.7853 GB, free: 25.09 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.343e-06/0.4805, allocations: 0 / 0.7853 GB, free: 25.09 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.844e-05/0.4805, allocations: 0 / 0.7853 GB, free: 25.09 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.002704/0.4832, allocations: 2.032 MB / 0.7873 GB, free: 24.07 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/0.4832, allocations: 8.562 kB / 0.7873 GB, free: 24.07 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001591/0.4834, allocations: 156 kB / 0.7874 GB, free: 24.03 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001996/0.4854, allocations: 445 kB / 0.7878 GB, free: 23.93 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00196/0.4874, allocations: 1.512 MB / 0.7893 GB, free: 23.52 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003316/0.4877, allocations: 137.8 kB / 0.7895 GB, free: 23.51 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001253/0.4878, allocations: 109.2 kB / 0.7896 GB, free: 23.5 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002162/0.49, allocations: 1.292 MB / 0.7908 GB, free: 23.25 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.212e-05/0.49, allocations: 6.969 kB / 0.7908 GB, free: 23.25 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.22e-05/0.4901, allocations: 42.88 kB / 0.7909 GB, free: 23.25 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.723e-05/0.4902, allocations: 25.88 kB / 0.7909 GB, free: 23.25 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002216/0.4924, allocations: 1.108 MB / 0.792 GB, free: 23.23 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.005824/0.4982, allocations: 7.136 MB / 0.7989 GB, free: 19.22 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002707/0.5009, allocations: 0.8091 MB / 0.7997 GB, free: 19.18 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004826/0.5014, allocations: 280.9 kB / 0.8 GB, free: 19.17 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006793/0.5021, allocations: 1.724 MB / 0.8017 GB, free: 17.2 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.89e-05/0.5021, allocations: 38.31 kB / 0.8017 GB, free: 17.16 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=48): time 1.843e-06/0.5022, allocations: 0 / 0.8017 GB, free: 17.16 MB / 0.5606 GB Notification: Performance of matching and sorting (n=48): time 0.00393/0.5061, allocations: 1.337 MB / 0.803 GB, free: 16.91 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.899e-05/0.5061, allocations: 60.69 kB / 0.8031 GB, free: 16.85 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001967/0.5081, allocations: 1.52 MB / 0.8046 GB, free: 16.68 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.968e-05/0.5082, allocations: 37.27 kB / 0.8046 GB, free: 16.64 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004198/0.5086, allocations: 0.6673 MB / 0.8053 GB, free: 16.42 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001115/0.5087, allocations: 169.2 kB / 0.8054 GB, free: 16.31 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000285/0.509, allocations: 163.5 kB / 0.8056 GB, free: 16.29 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.411e-05/0.509, allocations: 336 kB / 0.8059 GB, free: 15.98 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008787/0.5099, allocations: 359.9 kB / 0.8062 GB, free: 15.98 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009604/0.5109, allocations: 0.6335 MB / 0.8069 GB, free: 15.66 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001438/0.5123, allocations: 0.8478 MB / 0.8077 GB, free: 15.39 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.5124, allocations: 6.375 kB / 0.8077 GB, free: 15.39 MB / 0.5606 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.00365/0.516, allocations: 1.335 MB / 0.809 GB, free: 15.23 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.516, allocations: 10.7 kB / 0.809 GB, free: 15.23 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.5161, allocations: 6.812 kB / 0.809 GB, free: 15.23 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007442/0.5168, allocations: 221.2 kB / 0.8092 GB, free: 15.21 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006823/0.5175, allocations: 191 kB / 0.8094 GB, free: 15.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006122/0.5181, allocations: 0.7166 MB / 0.8101 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001405/0.5195, allocations: 228.5 kB / 0.8103 GB, free: 14.62 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.907e-05/0.5196, allocations: 42.56 kB / 0.8104 GB, free: 14.61 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (78): * Single equations (assignments): 77 * 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.0004101/0.52, allocations: 361.6 kB / 0.8107 GB, free: 14.49 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001828/0.5202, allocations: 144.1 kB / 0.8108 GB, free: 14.41 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002005/0.5222, allocations: 1.144 MB / 0.812 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-05/0.5223, allocations: 6.812 kB / 0.812 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.5223, allocations: 5 kB / 0.812 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.752e-06/0.5223, allocations: 2.906 kB / 0.812 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004108/0.5264, allocations: 2.511 MB / 0.8144 GB, free: 13.87 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.701e-06/0.5264, allocations: 1.188 kB / 0.8144 GB, free: 13.87 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003172/0.5267, allocations: 80.59 kB / 0.8145 GB, free: 13.87 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006154/0.5274, allocations: 220.6 kB / 0.8147 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.724e-05/0.5274, allocations: 14.34 kB / 0.8147 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009728/0.5284, allocations: 0.7758 MB / 0.8155 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.5284, allocations: 2.875 kB / 0.8155 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002763/0.5312, allocations: 1.208 MB / 0.8167 GB, free: 13.01 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000365/0.5316, allocations: 347.7 kB / 0.817 GB, free: 12.83 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001672/0.5317, allocations: 16.41 kB / 0.817 GB, free: 12.83 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008415/0.5326, allocations: 89.55 kB / 0.8171 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.418e-05/0.5327, allocations: 42.95 kB / 0.8171 GB, free: 12.81 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.119e-05/0.5327, allocations: 23.44 kB / 0.8172 GB, free: 12.81 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001359/0.5341, allocations: 1.078 MB / 0.8182 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.8e-07/0.5341, allocations: 0 / 0.8182 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001111/0.5352, allocations: 439.4 kB / 0.8186 GB, free: 12.64 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.003536/0.5387, allocations: 2.112 MB / 0.8207 GB, free: 11.74 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001934/0.5407, allocations: 0.8681 MB / 0.8215 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.5407, allocations: 2.906 kB / 0.8215 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001077/0.5418, allocations: 436 kB / 0.822 GB, free: 11.67 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002536/0.5443, allocations: 0.7531 MB / 0.8227 GB, free: 11.44 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02273/0.5671, allocations: 11.68 MB / 0.8341 GB, free: 3.977 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000476/0.5676, allocations: 1.17 MB / 0.8352 GB, free: 3.059 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001053/0.5686, allocations: 259.2 kB / 0.8355 GB, free: 2.938 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005754/0.5692, allocations: 0.5467 MB / 0.836 GB, free: 2.48 MB / 0.5606 GB Notification: Performance of SimCode: time 5.01e-07/0.5692, allocations: 0 / 0.836 GB, free: 2.48 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.805/2.374, allocations: 42.8 MB / 0.8778 GB, free: 13.2 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002817/2.375, allocations: 296.5 kB / 0.8781 GB, free: 12.82 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.886/5.26, allocations: 4 kB / 0.8781 GB, free: 12.82 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 & /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)