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.001227/0.001227, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001451/0.001451, allocations: 193.5 kB / 16.14 MB, free: 6.707 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.218/1.218, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00197/0.001969, allocations: 282.5 kB / 290.2 MB, free: 2.219 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8837/0.8837, allocations: 169.2 MB / 0.4977 GB, free: 14.18 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001553/0.001553, allocations: 91.52 kB / 0.5946 GB, free: 28.44 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1294/0.131, allocations: 86.98 MB / 0.6795 GB, free: 1.098 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.05756/0.1886, allocations: 70.03 MB / 0.7479 GB, free: 10.86 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.02041/0.2091, allocations: 18.99 MB / 0.7665 GB, free: 7.809 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001995/0.2111, allocations: 67.56 kB / 0.7665 GB, free: 7.742 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001935/0.2131, allocations: 0.6527 MB / 0.7672 GB, free: 7.086 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.006098/0.2192, allocations: 2.607 MB / 0.7697 GB, free: 4.469 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.003187/0.2224, allocations: 1.502 MB / 0.7712 GB, free: 2.98 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.2588/0.4811, allocations: 5.002 MB / 0.7761 GB, free: 25.56 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001872/0.483, allocations: 1.183 MB / 0.7772 GB, free: 25.48 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003033/0.4861, allocations: 1.494 MB / 0.7787 GB, free: 25.48 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001649/0.4877, allocations: 1.159 MB / 0.7798 GB, free: 25.41 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001714/0.4879, allocations: 78.22 kB / 0.7799 GB, free: 25.41 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002277/0.4902, allocations: 1.245 MB / 0.7811 GB, free: 25.41 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002492/0.4905, allocations: 287.2 kB / 0.7814 GB, free: 25.35 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.000765/0.4912, allocations: 0.8168 MB / 0.7822 GB, free: 25.11 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.003051/0.4943, allocations: 3.034 MB / 0.7851 GB, free: 24.86 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.4943, allocations: 0 / 0.7851 GB, free: 24.86 MB / 0.5606 GB Notification: Performance of FrontEnd: time 7.52e-07/0.4943, allocations: 0 / 0.7851 GB, free: 24.86 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 3.125e-05/0.4944, allocations: 0 / 0.7851 GB, free: 24.86 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.003116/0.4975, allocations: 2.031 MB / 0.7871 GB, free: 23.85 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.576e-05/0.4975, allocations: 13.19 kB / 0.7871 GB, free: 23.85 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000165/0.4977, allocations: 152.7 kB / 0.7873 GB, free: 23.81 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002176/0.4999, allocations: 448.4 kB / 0.7877 GB, free: 23.71 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002184/0.5021, allocations: 1.507 MB / 0.7892 GB, free: 23.3 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000337/0.5024, allocations: 137.5 kB / 0.7893 GB, free: 23.29 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001372/0.5026, allocations: 102.8 kB / 0.7894 GB, free: 23.29 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002201/0.5048, allocations: 1.301 MB / 0.7907 GB, free: 23.04 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.099e-05/0.5048, allocations: 0 / 0.7907 GB, free: 23.04 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.924e-05/0.5049, allocations: 44.45 kB / 0.7907 GB, free: 23.04 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.744e-05/0.5049, allocations: 25.47 kB / 0.7907 GB, free: 23.04 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002383/0.5073, allocations: 1.107 MB / 0.7918 GB, free: 23.02 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.006437/0.5138, allocations: 7.141 MB / 0.7988 GB, free: 19 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002898/0.5167, allocations: 0.8118 MB / 0.7996 GB, free: 18.96 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005096/0.5172, allocations: 284.8 kB / 0.7999 GB, free: 18.96 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007794/0.518, allocations: 1.729 MB / 0.8016 GB, free: 16.98 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.739e-05/0.518, allocations: 37.81 kB / 0.8016 GB, free: 16.94 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=48): time 2.495e-06/0.518, allocations: 0 / 0.8016 GB, free: 16.94 MB / 0.5606 GB Notification: Performance of matching and sorting (n=48): time 0.004429/0.5225, allocations: 1.334 MB / 0.8029 GB, free: 16.7 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.783e-05/0.5225, allocations: 60.53 kB / 0.803 GB, free: 16.63 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002575/0.5251, allocations: 1.519 MB / 0.8044 GB, free: 16.46 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 7.1e-05/0.5252, allocations: 37.83 kB / 0.8045 GB, free: 16.43 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004692/0.5257, allocations: 0.6723 MB / 0.8051 GB, free: 16.2 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001306/0.5258, allocations: 169.2 kB / 0.8053 GB, free: 16.1 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002614/0.5261, allocations: 162.8 kB / 0.8054 GB, free: 16.07 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.487e-05/0.5261, allocations: 329.2 kB / 0.8058 GB, free: 15.77 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008999/0.527, allocations: 363.5 kB / 0.8061 GB, free: 15.76 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00102/0.5281, allocations: 0.6292 MB / 0.8067 GB, free: 15.45 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001511/0.5296, allocations: 0.8516 MB / 0.8076 GB, free: 15.18 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.5296, allocations: 2.312 kB / 0.8076 GB, free: 15.18 MB / 0.5606 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.003972/0.5336, allocations: 1.332 MB / 0.8089 GB, free: 15.02 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.046e-05/0.5336, allocations: 7.688 kB / 0.8089 GB, free: 15.02 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.153e-05/0.5336, allocations: 6.781 kB / 0.8089 GB, free: 15.02 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007912/0.5344, allocations: 224.5 kB / 0.8091 GB, free: 15 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007021/0.5351, allocations: 183.1 kB / 0.8093 GB, free: 14.99 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006474/0.5358, allocations: 0.7256 MB / 0.81 GB, free: 14.47 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001554/0.5374, allocations: 234.9 kB / 0.8102 GB, free: 14.4 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.928e-05/0.5375, allocations: 40.11 kB / 0.8102 GB, free: 14.4 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.0005404/0.538, allocations: 363.6 kB / 0.8106 GB, free: 14.28 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002116/0.5382, allocations: 144.9 kB / 0.8107 GB, free: 14.2 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002094/0.5403, allocations: 1.137 MB / 0.8118 GB, free: 14.08 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.609e-05/0.5403, allocations: 13.72 kB / 0.8118 GB, free: 14.08 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.5404, allocations: 1 kB / 0.8118 GB, free: 14.08 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.5404, allocations: 3.094 kB / 0.8118 GB, free: 14.08 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004482/0.5449, allocations: 2.507 MB / 0.8143 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.873e-06/0.5449, allocations: 2.281 kB / 0.8143 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003269/0.5452, allocations: 88.66 kB / 0.8144 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006729/0.5459, allocations: 217.4 kB / 0.8146 GB, free: 13.63 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.979e-05/0.5459, allocations: 20.09 kB / 0.8146 GB, free: 13.63 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001007/0.547, allocations: 0.7686 MB / 0.8154 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.547, allocations: 2.906 kB / 0.8154 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002989/0.55, allocations: 1.206 MB / 0.8165 GB, free: 12.8 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004815/0.5505, allocations: 348 kB / 0.8169 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000185/0.5506, allocations: 16.22 kB / 0.8169 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008977/0.5515, allocations: 88.48 kB / 0.817 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.782e-05/0.5516, allocations: 43.27 kB / 0.817 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.388e-05/0.5517, allocations: 27.34 kB / 0.817 GB, free: 12.6 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001555/0.5533, allocations: 1.074 MB / 0.8181 GB, free: 12.49 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.71e-07/0.5533, allocations: 0 / 0.8181 GB, free: 12.49 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001184/0.5545, allocations: 438.8 kB / 0.8185 GB, free: 12.43 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.003859/0.5583, allocations: 2.119 MB / 0.8206 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001877/0.5602, allocations: 0.8273 MB / 0.8214 GB, free: 11.52 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.5602, allocations: 2.875 kB / 0.8214 GB, free: 11.52 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001121/0.5614, allocations: 435.2 kB / 0.8218 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002694/0.5641, allocations: 0.6982 MB / 0.8225 GB, free: 11.44 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0254/0.5895, allocations: 11.66 MB / 0.8339 GB, free: 4.184 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005228/0.59, allocations: 1.178 MB / 0.835 GB, free: 3.262 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001251/0.5913, allocations: 258.4 kB / 0.8353 GB, free: 3.141 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006107/0.5919, allocations: 0.5523 MB / 0.8358 GB, free: 2.68 MB / 0.5606 GB Notification: Performance of SimCode: time 7.31e-07/0.5919, allocations: 4 kB / 0.8358 GB, free: 2.676 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05865/0.6506, allocations: 41.72 MB / 0.8765 GB, free: 14.39 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001952/0.6508, allocations: 291.4 kB / 0.8768 GB, free: 14.01 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.553/3.204, allocations: 3.938 kB / 0.8768 GB, free: 14 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)