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.00163/0.00163, 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.001906/0.001906, allocations: 190 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.439/1.439, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002422/0.002422, allocations: 286.9 kB / 290.4 MB, free: 2.145 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.087/1.087, allocations: 178.6 MB / 0.5069 GB, free: 4.758 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002778/0.002778, allocations: 102.8 kB / 0.6059 GB, free: 25.12 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1707/0.1735, allocations: 89.15 MB / 0.693 GB, free: 4.746 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.3679/0.5414, allocations: 69.84 MB / 0.7612 GB, free: 21.91 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.01994/0.5614, allocations: 18.8 MB / 0.7795 GB, free: 21.7 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002594/0.564, allocations: 66.56 kB / 0.7796 GB, free: 21.7 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.002239/0.5663, allocations: 0.7011 MB / 0.7803 GB, free: 21.69 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.008039/0.5744, allocations: 2.654 MB / 0.7829 GB, free: 21.57 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.004195/0.5786, allocations: 1.517 MB / 0.7843 GB, free: 21.5 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.006034/0.5846, allocations: 4.062 MB / 0.7883 GB, free: 19.88 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003419/0.5881, allocations: 1.454 MB / 0.7897 GB, free: 19.23 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00532/0.5934, allocations: 1.774 MB / 0.7915 GB, free: 18.39 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00229/0.5958, allocations: 1.216 MB / 0.7927 GB, free: 17.91 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0003831/0.5962, allocations: 176.7 kB / 0.7928 GB, free: 17.91 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00356/0.5997, allocations: 1.429 MB / 0.7942 GB, free: 17.46 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0003605/0.6001, allocations: 394.5 kB / 0.7946 GB, free: 17.21 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.001168/0.6013, allocations: 0.9203 MB / 0.7955 GB, free: 16.61 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.004188/0.6055, allocations: 3.095 MB / 0.7985 GB, free: 15.58 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.6055, allocations: 1.375 kB / 0.7985 GB, free: 15.58 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.683e-06/0.6055, allocations: 0 / 0.7985 GB, free: 15.58 MB / 0.545 GB Notification: Performance of Transformations before backend: time 3.506e-05/0.6056, allocations: 0 / 0.7985 GB, free: 15.58 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.0036/0.6092, allocations: 2.035 MB / 0.8005 GB, free: 14.23 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/0.6092, allocations: 9.719 kB / 0.8005 GB, free: 14.23 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002356/0.6116, allocations: 444.9 kB / 0.8009 GB, free: 14.13 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002358/0.6139, allocations: 1.508 MB / 0.8024 GB, free: 13.2 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003588/0.6143, allocations: 145.4 kB / 0.8026 GB, free: 13.15 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001453/0.6145, allocations: 101.2 kB / 0.8026 GB, free: 13.12 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002378/0.6169, allocations: 1.291 MB / 0.8039 GB, free: 12.46 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.81e-05/0.6169, allocations: 5.375 kB / 0.8039 GB, free: 12.45 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.632e-05/0.617, allocations: 44.23 kB / 0.804 GB, free: 12.42 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.393e-05/0.617, allocations: 25.59 kB / 0.804 GB, free: 12.42 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002514/0.6196, allocations: 1.104 MB / 0.8051 GB, free: 12.03 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.007581/0.6272, allocations: 7.159 MB / 0.812 GB, free: 5.922 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003044/0.6302, allocations: 0.8018 MB / 0.8128 GB, free: 5.504 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005448/0.6308, allocations: 278.5 kB / 0.8131 GB, free: 5.363 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008333/0.6316, allocations: 1.723 MB / 0.8148 GB, free: 3.336 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.558e-05/0.6317, allocations: 37.75 kB / 0.8148 GB, free: 3.293 MB / 0.545 GB Notification: Performance of pre-optimization done (n=48): time 3.336e-06/0.6317, allocations: 5.188 kB / 0.8148 GB, free: 3.289 MB / 0.545 GB Notification: Performance of matching and sorting (n=48): time 0.005329/0.637, allocations: 1.331 MB / 0.8161 GB, free: 2.551 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.617e-05/0.6371, allocations: 56.41 kB / 0.8162 GB, free: 2.488 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002499/0.6396, allocations: 1.532 MB / 0.8177 GB, free: 1.648 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 9.265e-05/0.6397, allocations: 34.67 kB / 0.8177 GB, free: 1.613 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004088/0.6401, allocations: 0.6653 MB / 0.8184 GB, free: 1.023 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001312/0.6402, allocations: 166.6 kB / 0.8185 GB, free: 0.8828 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002428/0.6405, allocations: 169.2 kB / 0.8187 GB, free: 0.7773 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 5.598e-05/0.6405, allocations: 329 kB / 0.819 GB, free: 468 kB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009003/0.6415, allocations: 365.3 kB / 0.8193 GB, free: 284 kB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001182/0.6426, allocations: 0.6268 MB / 0.8199 GB, free: 15.76 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001788/0.6444, allocations: 0.8455 MB / 0.8208 GB, free: 15.16 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.927e-06/0.6445, allocations: 6.344 kB / 0.8208 GB, free: 15.15 MB / 0.5606 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.004532/0.649, allocations: 1.33 MB / 0.8221 GB, free: 14.47 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.167e-05/0.6491, allocations: 17.41 kB / 0.8221 GB, free: 14.46 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.177e-05/0.6491, allocations: 5.75 kB / 0.8221 GB, free: 14.46 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009302/0.65, allocations: 222 kB / 0.8223 GB, free: 14.35 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007703/0.6508, allocations: 186.1 kB / 0.8225 GB, free: 14.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008952/0.6517, allocations: 0.7217 MB / 0.8232 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001925/0.6536, allocations: 240.5 kB / 0.8234 GB, free: 13.54 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001012/0.6537, allocations: 49.69 kB / 0.8235 GB, free: 13.52 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.0006622/0.6544, allocations: 348.3 kB / 0.8238 GB, free: 13.25 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000259/0.6547, allocations: 145.5 kB / 0.8239 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002399/0.6571, allocations: 1.14 MB / 0.8251 GB, free: 12.53 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.429e-05/0.6571, allocations: 10.14 kB / 0.8251 GB, free: 12.53 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.213e-06/0.6571, allocations: 0 / 0.8251 GB, free: 12.53 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.051e-05/0.6572, allocations: 3.938 kB / 0.8251 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005512/0.6627, allocations: 2.511 MB / 0.8275 GB, free: 10.77 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.283e-06/0.6627, allocations: 0 / 0.8275 GB, free: 10.77 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000366/0.6631, allocations: 90.34 kB / 0.8276 GB, free: 10.74 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007661/0.6638, allocations: 216.2 kB / 0.8278 GB, free: 10.63 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.611e-05/0.6639, allocations: 17.45 kB / 0.8278 GB, free: 10.62 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001316/0.6652, allocations: 0.7681 MB / 0.8286 GB, free: 9.961 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.091e-06/0.6652, allocations: 6.938 kB / 0.8286 GB, free: 9.957 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003353/0.6686, allocations: 1.205 MB / 0.8298 GB, free: 9.242 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007148/0.6693, allocations: 345.6 kB / 0.8301 GB, free: 8.938 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002084/0.6695, allocations: 16.83 kB / 0.8301 GB, free: 8.926 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009822/0.6705, allocations: 85.44 kB / 0.8302 GB, free: 8.887 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.758e-05/0.6706, allocations: 52.53 kB / 0.8302 GB, free: 8.855 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.392e-05/0.6707, allocations: 27.64 kB / 0.8303 GB, free: 8.844 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001717/0.6724, allocations: 1.071 MB / 0.8313 GB, free: 8.262 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.6e-07/0.6724, allocations: 3.938 kB / 0.8313 GB, free: 8.258 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001332/0.6738, allocations: 439.8 kB / 0.8317 GB, free: 8.156 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.0009143/0.6747, allocations: 478.8 kB / 0.8322 GB, free: 7.922 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.002277/0.677, allocations: 0.8627 MB / 0.833 GB, free: 7.52 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.257e-06/0.677, allocations: 0 / 0.833 GB, free: 7.52 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001269/0.6783, allocations: 444.5 kB / 0.8335 GB, free: 7.32 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003081/0.6814, allocations: 0.7278 MB / 0.8342 GB, free: 6.938 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004123/0.6855, allocations: 2.742 MB / 0.8368 GB, free: 5.105 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007816/0.6863, allocations: 1.176 MB / 0.838 GB, free: 4.168 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.00118/0.6875, allocations: 263.5 kB / 0.8382 GB, free: 3.91 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002884/0.6878, allocations: 123.3 kB / 0.8384 GB, free: 3.789 MB / 0.5606 GB Notification: Performance of SimCode: time 1.393e-06/0.6878, allocations: 0 / 0.8384 GB, free: 3.789 MB / 0.5606 GB Notification: Performance of Templates: time 0.05762/0.7454, allocations: 31.1 MB / 0.8687 GB, free: 5.18 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)