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.0007336/0.0007336, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.004862/0.004862, allocations: 170.1 kB / 16.26 MB, free: 6.676 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.322/1.322, allocations: 223.3 MB / 240.3 MB, free: 5.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001695/0.001695, allocations: 274.6 kB / 291.7 MB, free: 1.844 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9321/0.9321, allocations: 169.5 MB / 0.5004 GB, free: 14.07 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004075/0.0004075, allocations: 20.09 kB / 0.5987 GB, free: 28.06 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1571/0.1575, allocations: 88.55 MB / 0.6851 GB, free: 15.08 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.06215/0.2197, allocations: 68.81 MB / 0.7523 GB, free: 10.07 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.3331/0.5528, allocations: 18.76 MB / 0.7706 GB, free: 14.02 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002246/0.5551, allocations: 62.31 kB / 0.7707 GB, free: 14.02 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001694/0.5568, allocations: 0.6507 MB / 0.7713 GB, free: 14.01 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.006558/0.5634, allocations: 2.609 MB / 0.7739 GB, free: 13.9 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.00397/0.5674, allocations: 1.495 MB / 0.7753 GB, free: 13.87 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.006335/0.5737, allocations: 5.019 MB / 0.7802 GB, free: 13.86 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001971/0.5757, allocations: 1.143 MB / 0.7814 GB, free: 13.7 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003375/0.5791, allocations: 1.456 MB / 0.7828 GB, free: 13.69 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001998/0.5811, allocations: 1.1 MB / 0.7839 GB, free: 13.66 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.000341/0.5815, allocations: 60.16 kB / 0.7839 GB, free: 13.65 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003439/0.5849, allocations: 1.227 MB / 0.7851 GB, free: 13.54 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0003807/0.5853, allocations: 262.3 kB / 0.7854 GB, free: 13.47 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.001203/0.5865, allocations: 0.8032 MB / 0.7861 GB, free: 13.18 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.004452/0.591, allocations: 2.954 MB / 0.789 GB, free: 12.81 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.591, allocations: 4 kB / 0.789 GB, free: 12.81 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.425e-06/0.591, allocations: 0 / 0.789 GB, free: 12.81 MB / 0.545 GB Notification: Performance of Transformations before backend: time 2.286e-05/0.5911, allocations: 0 / 0.789 GB, free: 12.81 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.002767/0.5938, allocations: 1.708 MB / 0.7907 GB, free: 11.8 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/0.5939, allocations: 9.469 kB / 0.7907 GB, free: 11.8 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002271/0.5962, allocations: 0.4941 MB / 0.7912 GB, free: 11.7 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00239/0.5986, allocations: 1.521 MB / 0.7927 GB, free: 11.26 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004301/0.599, allocations: 144.3 kB / 0.7928 GB, free: 11.25 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002016/0.5992, allocations: 106.2 kB / 0.7929 GB, free: 11.25 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002986/0.6022, allocations: 1.316 MB / 0.7942 GB, free: 10.98 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.985e-05/0.6023, allocations: 5.469 kB / 0.7942 GB, free: 10.98 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001148/0.6024, allocations: 44.22 kB / 0.7943 GB, free: 10.98 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.204e-05/0.6024, allocations: 29.94 kB / 0.7943 GB, free: 10.98 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00274/0.6052, allocations: 1.157 MB / 0.7954 GB, free: 10.94 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.007592/0.6128, allocations: 7.196 MB / 0.8024 GB, free: 6.43 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003311/0.6161, allocations: 0.8936 MB / 0.8033 GB, free: 6.078 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006283/0.6167, allocations: 301.9 kB / 0.8036 GB, free: 5.926 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008571/0.6176, allocations: 1.722 MB / 0.8053 GB, free: 3.898 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.242e-05/0.6176, allocations: 37.78 kB / 0.8053 GB, free: 3.855 MB / 0.545 GB Notification: Performance of pre-optimization done (n=48): time 2.345e-06/0.6176, allocations: 0 / 0.8053 GB, free: 3.855 MB / 0.545 GB Notification: Performance of matching and sorting (n=48): time 0.00497/0.6226, allocations: 1.454 MB / 0.8067 GB, free: 3.102 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001634/0.6228, allocations: 56.31 kB / 0.8068 GB, free: 19.04 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002249/0.6251, allocations: 1.535 MB / 0.8083 GB, free: 18.21 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 8.262e-05/0.6252, allocations: 37.58 kB / 0.8083 GB, free: 18.17 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004508/0.6256, allocations: 0.6714 MB / 0.809 GB, free: 17.57 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.000126/0.6257, allocations: 166.5 kB / 0.8091 GB, free: 17.43 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.836e-05/0.6258, allocations: 62.38 kB / 0.8092 GB, free: 17.39 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001147/0.626, allocations: 333.2 kB / 0.8095 GB, free: 17.06 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009917/0.627, allocations: 390.4 kB / 0.8099 GB, free: 16.88 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001124/0.6281, allocations: 0.659 MB / 0.8105 GB, free: 16.36 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001611/0.6297, allocations: 0.8943 MB / 0.8114 GB, free: 15.74 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.404e-06/0.6297, allocations: 6.188 kB / 0.8114 GB, free: 15.73 MB / 0.5606 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.004417/0.6342, allocations: 1.434 MB / 0.8128 GB, free: 15.04 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.263e-05/0.6342, allocations: 11.38 kB / 0.8128 GB, free: 15.04 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.6342, allocations: 9.625 kB / 0.8128 GB, free: 15.04 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008706/0.6351, allocations: 227.8 kB / 0.8131 GB, free: 14.93 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007617/0.6359, allocations: 197.4 kB / 0.8132 GB, free: 14.87 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008332/0.6367, allocations: 0.7361 MB / 0.814 GB, free: 14.23 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001746/0.6385, allocations: 254.5 kB / 0.8142 GB, free: 14.11 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.683e-05/0.6386, allocations: 39.3 kB / 0.8142 GB, free: 14.1 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.000625/0.6392, allocations: 365.5 kB / 0.8146 GB, free: 13.82 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002068/0.6394, allocations: 148.2 kB / 0.8147 GB, free: 13.75 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002384/0.6418, allocations: 1.178 MB / 0.8159 GB, free: 13.09 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.64e-05/0.6418, allocations: 11.44 kB / 0.8159 GB, free: 13.09 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.892e-06/0.6418, allocations: 4 kB / 0.8159 GB, free: 13.08 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.082e-05/0.6419, allocations: 7.922 kB / 0.8159 GB, free: 13.07 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005162/0.647, allocations: 2.584 MB / 0.8184 GB, free: 11.33 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.506e-06/0.647, allocations: 3.375 kB / 0.8184 GB, free: 11.33 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003749/0.6474, allocations: 91.91 kB / 0.8185 GB, free: 11.31 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007775/0.6482, allocations: 227 kB / 0.8187 GB, free: 11.19 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.003e-05/0.6483, allocations: 17.73 kB / 0.8187 GB, free: 11.18 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001306/0.6496, allocations: 0.7954 MB / 0.8195 GB, free: 10.52 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.6496, allocations: 6.938 kB / 0.8195 GB, free: 10.52 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003514/0.6531, allocations: 1.286 MB / 0.8208 GB, free: 9.793 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007164/0.6538, allocations: 379.7 kB / 0.8212 GB, free: 9.457 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001733/0.654, allocations: 17.12 kB / 0.8212 GB, free: 9.445 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009623/0.655, allocations: 99.45 kB / 0.8213 GB, free: 9.406 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.384e-05/0.6551, allocations: 46.23 kB / 0.8213 GB, free: 9.383 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.463e-05/0.6551, allocations: 24.58 kB / 0.8213 GB, free: 9.375 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001716/0.6569, allocations: 1.083 MB / 0.8224 GB, free: 8.789 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6569, allocations: 0 / 0.8224 GB, free: 8.789 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001239/0.6581, allocations: 444 kB / 0.8228 GB, free: 8.684 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.0007993/0.6589, allocations: 478 kB / 0.8233 GB, free: 8.453 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.002078/0.661, allocations: 0.8709 MB / 0.8241 GB, free: 8.07 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.661, allocations: 0 / 0.8241 GB, free: 8.07 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001284/0.6623, allocations: 482 kB / 0.8246 GB, free: 7.859 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003465/0.6658, allocations: 0.7094 MB / 0.8253 GB, free: 7.504 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003747/0.6696, allocations: 2.786 MB / 0.828 GB, free: 5.641 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006065/0.6702, allocations: 1.168 MB / 0.8291 GB, free: 4.73 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001034/0.6712, allocations: 270.1 kB / 0.8294 GB, free: 4.598 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002709/0.6715, allocations: 119.6 kB / 0.8295 GB, free: 4.57 MB / 0.5606 GB Notification: Performance of SimCode: time 4.3e-07/0.6715, allocations: 0 / 0.8295 GB, free: 4.57 MB / 0.5606 GB Notification: Performance of Templates: time 0.0468/0.7183, allocations: 30.49 MB / 0.8593 GB, free: 8.879 MB / 0.5919 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe 2>&1)