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: translateModel(BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw") translateModel(BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001285/0.001285, allocations: 113.6 kB / 16.4 MB, free: 6.383 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.001185/0.001185, allocations: 191.7 kB / 17.33 MB, free: 5.844 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.413/1.413, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002555/0.002555, allocations: 294.2 kB / 291.5 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.033/1.033, allocations: 169.2 MB / 0.499 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002677/0.002677, allocations: 91.84 kB / 0.6821 GB, free: 6.961 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4747/0.4774, allocations: 86.96 MB / 0.767 GB, free: 3.938 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.07732/0.5547, allocations: 70.56 MB / 0.8359 GB, free: 13.14 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0266/0.5813, allocations: 18.96 MB / 0.8544 GB, free: 10.13 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002487/0.5838, allocations: 67.62 kB / 0.8545 GB, free: 10.07 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.002256/0.586, allocations: 0.8462 MB / 0.8553 GB, free: 9.215 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.007449/0.5935, allocations: 3.014 MB / 0.8583 GB, free: 6.188 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.004298/0.5978, allocations: 1.665 MB / 0.8599 GB, free: 4.527 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.006441/0.6042, allocations: 4.034 MB / 0.8638 GB, free: 496 kB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002087/0.6063, allocations: 1.184 MB / 0.865 GB, free: 15.27 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004505/0.6108, allocations: 1.809 MB / 0.8668 GB, free: 13.45 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002436/0.6132, allocations: 1.175 MB / 0.8679 GB, free: 12.27 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0003329/0.6136, allocations: 176 kB / 0.8681 GB, free: 12.1 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003144/0.6167, allocations: 1.416 MB / 0.8695 GB, free: 10.68 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0004371/0.6171, allocations: 398.4 kB / 0.8698 GB, free: 10.29 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.001328/0.6185, allocations: 0.9216 MB / 0.8707 GB, free: 9.363 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.005533/0.624, allocations: 3.128 MB / 0.8738 GB, free: 6.23 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.624, allocations: 0 / 0.8738 GB, free: 6.23 MB / 0.6387 GB Notification: Performance of FrontEnd: time 2.785e-06/0.624, allocations: 0 / 0.8738 GB, free: 6.23 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 4.943e-05/0.6241, allocations: 0 / 0.8738 GB, free: 6.23 MB / 0.6387 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.004796/0.6289, allocations: 2.089 MB / 0.8758 GB, free: 4.078 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.6289, allocations: 8.031 kB / 0.8758 GB, free: 4.07 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0025/0.6314, allocations: 459.4 kB / 0.8763 GB, free: 3.621 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003304/0.6347, allocations: 1.572 MB / 0.8778 GB, free: 1.992 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.684e-05/0.6348, allocations: 78.03 kB / 0.8779 GB, free: 1.914 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001839/0.635, allocations: 111.9 kB / 0.878 GB, free: 1.805 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002802/0.6378, allocations: 1.323 MB / 0.8793 GB, free: 384 kB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.302e-05/0.6378, allocations: 0 / 0.8793 GB, free: 384 kB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001132/0.6379, allocations: 47.98 kB / 0.8793 GB, free: 336 kB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.743e-05/0.6379, allocations: 24 kB / 0.8794 GB, free: 312 kB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002945/0.6409, allocations: 1.101 MB / 0.8804 GB, free: 15.2 MB / 0.6544 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.01027/0.6512, allocations: 7.506 MB / 0.8878 GB, free: 7.18 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003405/0.6546, allocations: 0.7717 MB / 0.8885 GB, free: 6.406 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006668/0.6552, allocations: 266 kB / 0.8888 GB, free: 6.145 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001579/0.6568, allocations: 1.718 MB / 0.8904 GB, free: 4.035 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.83e-05/0.6569, allocations: 39 kB / 0.8905 GB, free: 3.988 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=48): time 2.665e-06/0.6569, allocations: 3.938 kB / 0.8905 GB, free: 3.984 MB / 0.6544 GB Notification: Performance of matching and sorting (n=48): time 0.005325/0.6622, allocations: 1.343 MB / 0.8918 GB, free: 2.617 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.927e-05/0.6622, allocations: 55.84 kB / 0.8919 GB, free: 2.551 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002746/0.665, allocations: 1.553 MB / 0.8934 GB, free: 0.9883 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 9.578e-05/0.6651, allocations: 37.7 kB / 0.8934 GB, free: 0.9453 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006924/0.6658, allocations: 0.6896 MB / 0.8941 GB, free: 256 kB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002058/0.666, allocations: 182.5 kB / 0.8943 GB, free: 72 kB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003286/0.6663, allocations: 170.6 kB / 0.8944 GB, free: 15.89 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001797/0.6665, allocations: 330 kB / 0.8947 GB, free: 15.57 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001065/0.6676, allocations: 369.8 kB / 0.8951 GB, free: 15.21 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0014/0.669, allocations: 0.6546 MB / 0.8957 GB, free: 14.43 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001976/0.6709, allocations: 0.8829 MB / 0.8966 GB, free: 13.44 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.049e-05/0.6709, allocations: 7.938 kB / 0.8966 GB, free: 13.43 MB / 0.67 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.00329/0.6742, allocations: 1.194 MB / 0.8978 GB, free: 12.23 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 2.486e-05/0.6743, allocations: 8 kB / 0.8978 GB, free: 12.22 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.668e-05/0.6743, allocations: 11.98 kB / 0.8978 GB, free: 12.21 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000988/0.6753, allocations: 224.6 kB / 0.898 GB, free: 11.99 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000821/0.6761, allocations: 195.7 kB / 0.8982 GB, free: 11.8 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009483/0.677, allocations: 0.7201 MB / 0.8989 GB, free: 11.05 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001671/0.6787, allocations: 219 kB / 0.8991 GB, free: 10.84 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001085/0.6788, allocations: 51.91 kB / 0.8991 GB, free: 10.79 MB / 0.67 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.0006732/0.6795, allocations: 349.6 kB / 0.8995 GB, free: 10.43 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003266/0.6798, allocations: 163 kB / 0.8996 GB, free: 10.27 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002684/0.6825, allocations: 1.132 MB / 0.9007 GB, free: 9.121 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.312e-05/0.6825, allocations: 11.98 kB / 0.9007 GB, free: 9.109 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.6825, allocations: 0 / 0.9007 GB, free: 9.109 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.919e-06/0.6825, allocations: 3.984 kB / 0.9008 GB, free: 9.105 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005771/0.6883, allocations: 2.518 MB / 0.9032 GB, free: 6.508 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.135e-06/0.6883, allocations: 0 / 0.9032 GB, free: 6.508 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003844/0.6887, allocations: 83.89 kB / 0.9033 GB, free: 6.426 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007938/0.6895, allocations: 212.8 kB / 0.9035 GB, free: 6.215 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.548e-05/0.6895, allocations: 19.98 kB / 0.9035 GB, free: 6.195 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001424/0.691, allocations: 0.7669 MB / 0.9043 GB, free: 5.402 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.905e-06/0.691, allocations: 7.969 kB / 0.9043 GB, free: 5.395 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003671/0.6946, allocations: 1.204 MB / 0.9054 GB, free: 4.152 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007992/0.6954, allocations: 367.7 kB / 0.9058 GB, free: 3.773 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001787/0.6956, allocations: 16 kB / 0.9058 GB, free: 3.758 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008944/0.6965, allocations: 75.84 kB / 0.9059 GB, free: 3.684 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001051/0.6966, allocations: 44.5 kB / 0.9059 GB, free: 3.641 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.896e-05/0.6967, allocations: 23.98 kB / 0.9059 GB, free: 3.617 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.001904/0.6986, allocations: 1.086 MB / 0.907 GB, free: 2.535 MB / 0.67 GB Notification: Performance of sort global known variables: time 9e-08/0.6986, allocations: 0 / 0.907 GB, free: 2.535 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.001383/0.7, allocations: 443.1 kB / 0.9074 GB, free: 2.102 MB / 0.67 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.001023/0.701, allocations: 495.8 kB / 0.9079 GB, free: 1.625 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.002306/0.7033, allocations: 0.8213 MB / 0.9087 GB, free: 0.8047 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 5.05e-06/0.7033, allocations: 0 / 0.9087 GB, free: 0.8047 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.001389/0.7047, allocations: 415.6 kB / 0.9091 GB, free: 408 kB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003524/0.7082, allocations: 0.742 MB / 0.9098 GB, free: 15.67 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004342/0.7125, allocations: 2.289 MB / 0.9121 GB, free: 13.33 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008376/0.7134, allocations: 1.172 MB / 0.9132 GB, free: 12.13 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.001067/0.7145, allocations: 268 kB / 0.9135 GB, free: 11.87 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002832/0.7147, allocations: 115.4 kB / 0.9136 GB, free: 11.75 MB / 0.6856 GB Notification: Performance of SimCode: time 8.01e-07/0.7147, allocations: 0 / 0.9136 GB, free: 11.75 MB / 0.6856 GB Notification: Performance of Templates: time 0.05912/0.7739, allocations: 31.91 MB / 0.9447 GB, free: 12.26 MB / 0.7169 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.makefile (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 & ./BuildingSystems_BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe 2>&1)