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.001003/0.001003, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.0047/0.0047, allocations: 170 kB / 16.27 MB, free: 6.652 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.185/1.185, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001601/0.001601, allocations: 277.9 kB / 291.7 MB, free: 1.875 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8832/0.8832, allocations: 169.5 MB / 0.5004 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003604/0.0003604, allocations: 12.34 kB / 0.5988 GB, free: 28.14 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.1201, allocations: 88.54 MB / 0.6852 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.05322/0.1734, allocations: 68.81 MB / 0.7524 GB, free: 9.945 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.2631/0.4365, allocations: 18.76 MB / 0.7707 GB, free: 22.19 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001302/0.4378, allocations: 61.94 kB / 0.7708 GB, free: 22.19 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001258/0.4391, allocations: 0.6497 MB / 0.7714 GB, free: 22.18 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.004547/0.4437, allocations: 2.614 MB / 0.774 GB, free: 22.07 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.002745/0.4464, allocations: 1.493 MB / 0.7754 GB, free: 22.03 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.004465/0.4509, allocations: 5.021 MB / 0.7803 GB, free: 22.02 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001339/0.4522, allocations: 1.142 MB / 0.7815 GB, free: 21.86 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002108/0.4544, allocations: 1.457 MB / 0.7829 GB, free: 21.64 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001119/0.4555, allocations: 1.099 MB / 0.784 GB, free: 21.51 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001112/0.4556, allocations: 59.16 kB / 0.784 GB, free: 21.51 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002156/0.4578, allocations: 1.228 MB / 0.7852 GB, free: 21.39 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001936/0.458, allocations: 257.6 kB / 0.7855 GB, free: 21.32 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0005245/0.4585, allocations: 0.8028 MB / 0.7862 GB, free: 21.04 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.002132/0.4606, allocations: 2.957 MB / 0.7891 GB, free: 20.67 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.4607, allocations: 5.062 kB / 0.7891 GB, free: 20.66 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.212e-06/0.4607, allocations: 0 / 0.7891 GB, free: 20.66 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.464e-05/0.4607, allocations: 0 / 0.7891 GB, free: 20.66 MB / 0.545 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.002224/0.4629, allocations: 1.702 MB / 0.7908 GB, free: 19.66 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.234e-05/0.4629, allocations: 10.06 kB / 0.7908 GB, free: 19.66 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001425/0.4631, allocations: 162.5 kB / 0.791 GB, free: 19.62 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00202/0.4651, allocations: 0.4977 MB / 0.7914 GB, free: 19.51 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00188/0.467, allocations: 1.514 MB / 0.7929 GB, free: 19.07 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003835/0.4674, allocations: 156 kB / 0.7931 GB, free: 19.05 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001653/0.4676, allocations: 105.8 kB / 0.7932 GB, free: 19.05 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00235/0.4699, allocations: 1.318 MB / 0.7945 GB, free: 18.79 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.058e-05/0.47, allocations: 1.031 kB / 0.7945 GB, free: 18.79 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.183e-05/0.4701, allocations: 45.84 kB / 0.7945 GB, free: 18.79 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.138e-05/0.4701, allocations: 26.31 kB / 0.7945 GB, free: 18.79 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002401/0.4725, allocations: 1.163 MB / 0.7957 GB, free: 18.74 MB / 0.545 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.00594/0.4784, allocations: 7.183 MB / 0.8027 GB, free: 13.02 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00297/0.4814, allocations: 0.8991 MB / 0.8036 GB, free: 12.59 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005615/0.482, allocations: 302.9 kB / 0.8038 GB, free: 12.44 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007032/0.4827, allocations: 1.72 MB / 0.8055 GB, free: 10.41 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.648e-05/0.4827, allocations: 45.73 kB / 0.8056 GB, free: 10.36 MB / 0.545 GB Notification: Performance of pre-optimization done (n=48): time 1.853e-06/0.4827, allocations: 1.344 kB / 0.8056 GB, free: 10.36 MB / 0.545 GB Notification: Performance of matching and sorting (n=48): time 0.004258/0.487, allocations: 1.449 MB / 0.807 GB, free: 9.609 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.073e-05/0.487, allocations: 56.91 kB / 0.807 GB, free: 9.547 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001807/0.4889, allocations: 1.531 MB / 0.8085 GB, free: 8.719 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 4.628e-05/0.4889, allocations: 37.23 kB / 0.8086 GB, free: 8.68 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003688/0.4893, allocations: 0.6789 MB / 0.8092 GB, free: 8.086 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 9.585e-05/0.4894, allocations: 166.5 kB / 0.8094 GB, free: 7.945 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.919e-05/0.4895, allocations: 60.86 kB / 0.8095 GB, free: 7.898 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.453e-05/0.4895, allocations: 332.7 kB / 0.8098 GB, free: 7.574 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008964/0.4904, allocations: 395.5 kB / 0.8101 GB, free: 7.391 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009986/0.4914, allocations: 0.6537 MB / 0.8108 GB, free: 6.867 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00146/0.4929, allocations: 0.8995 MB / 0.8117 GB, free: 6.246 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.4929, allocations: 0 / 0.8117 GB, free: 6.246 MB / 0.545 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.003703/0.4966, allocations: 1.434 MB / 0.8131 GB, free: 5.555 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/0.4966, allocations: 14.08 kB / 0.8131 GB, free: 5.551 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.4967, allocations: 13.66 kB / 0.8131 GB, free: 5.543 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007271/0.4974, allocations: 227.7 kB / 0.8133 GB, free: 5.43 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006576/0.4981, allocations: 195.2 kB / 0.8135 GB, free: 5.379 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006245/0.4987, allocations: 0.7284 MB / 0.8142 GB, free: 4.746 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001353/0.5001, allocations: 258.5 kB / 0.8145 GB, free: 4.625 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.844e-05/0.5001, allocations: 44.75 kB / 0.8145 GB, free: 4.609 MB / 0.545 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.0003644/0.5005, allocations: 362.5 kB / 0.8148 GB, free: 4.336 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001514/0.5007, allocations: 145.2 kB / 0.815 GB, free: 4.262 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001938/0.5026, allocations: 1.178 MB / 0.8161 GB, free: 3.605 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.365e-05/0.5026, allocations: 15.02 kB / 0.8161 GB, free: 3.598 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.5026, allocations: 3.938 kB / 0.8161 GB, free: 3.594 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.5027, allocations: 0 / 0.8161 GB, free: 3.594 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004106/0.5068, allocations: 2.588 MB / 0.8187 GB, free: 1.848 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.5068, allocations: 2.625 kB / 0.8187 GB, free: 1.848 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003118/0.5071, allocations: 87.42 kB / 0.8188 GB, free: 1.828 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006193/0.5077, allocations: 234 kB / 0.819 GB, free: 1.703 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.163e-05/0.5078, allocations: 14.66 kB / 0.819 GB, free: 1.695 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001043/0.5088, allocations: 0.8043 MB / 0.8198 GB, free: 1.031 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.265e-06/0.5088, allocations: 3.219 kB / 0.8198 GB, free: 1.031 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002879/0.5117, allocations: 1.29 MB / 0.821 GB, free: 308 kB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003838/0.5121, allocations: 378.6 kB / 0.8214 GB, free: 15.97 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001523/0.5123, allocations: 15.22 kB / 0.8214 GB, free: 15.96 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000872/0.5131, allocations: 104.9 kB / 0.8215 GB, free: 15.92 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.948e-05/0.5132, allocations: 40.94 kB / 0.8216 GB, free: 15.9 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.625e-05/0.5133, allocations: 26.05 kB / 0.8216 GB, free: 15.89 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001376/0.5147, allocations: 1.085 MB / 0.8226 GB, free: 15.3 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.81e-07/0.5147, allocations: 4 kB / 0.8226 GB, free: 15.3 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0009708/0.5156, allocations: 438.9 kB / 0.8231 GB, free: 15.2 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.003884/0.5195, allocations: 2.201 MB / 0.8252 GB, free: 13.8 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.00177/0.5213, allocations: 0.8636 MB / 0.8261 GB, free: 13.42 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.5213, allocations: 3.281 kB / 0.8261 GB, free: 13.42 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00118/0.5225, allocations: 478.9 kB / 0.8265 GB, free: 13.21 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003011/0.5255, allocations: 0.7085 MB / 0.8272 GB, free: 12.86 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0236/0.5491, allocations: 11.85 MB / 0.8388 GB, free: 2.508 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000591/0.5498, allocations: 1.168 MB / 0.8399 GB, free: 1.312 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0008661/0.5506, allocations: 263.3 kB / 0.8402 GB, free: 1.055 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006578/0.5513, allocations: 0.55 MB / 0.8407 GB, free: 0.5039 MB / 0.5606 GB Notification: Performance of SimCode: time 3.31e-07/0.5513, allocations: 4 kB / 0.8407 GB, free: 0.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.212/2.763, allocations: 42.23 MB / 0.882 GB, free: 7 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002194/2.763, allocations: 289 kB / 0.8822 GB, free: 6.621 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.739/5.502, allocations: 0 / 0.8822 GB, free: 6.621 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)