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.001725/0.001725, allocations: 104.4 kB / 16.36 MB, free: 6.285 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.001758/0.001758, allocations: 193.5 kB / 17.29 MB, free: 5.863 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.36/1.36, 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.002194/0.002194, allocations: 292.7 kB / 291.4 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9162/0.9162, allocations: 169.3 MB / 0.4989 GB, free: 4.453 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001773/0.001773, allocations: 101.9 kB / 0.5967 GB, free: 14.46 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.168/0.1698, allocations: 86.97 MB / 0.6816 GB, free: 7.473 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.34/0.5098, allocations: 70.43 MB / 0.7504 GB, free: 2.535 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.02463/0.5345, allocations: 18.93 MB / 0.7688 GB, free: 3.141 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003256/0.5378, allocations: 71.31 kB / 0.7689 GB, free: 3.113 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.002122/0.54, allocations: 0.8307 MB / 0.7697 GB, free: 2.387 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.007797/0.5478, allocations: 2.845 MB / 0.7725 GB, free: 120 kB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.004037/0.5518, allocations: 1.646 MB / 0.7741 GB, free: 14.82 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.005549/0.5574, allocations: 4.06 MB / 0.7781 GB, free: 12.02 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002153/0.5596, allocations: 1.451 MB / 0.7795 GB, free: 10.54 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003865/0.5634, allocations: 1.781 MB / 0.7812 GB, free: 8.754 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001865/0.5653, allocations: 1.172 MB / 0.7824 GB, free: 7.578 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0002192/0.5656, allocations: 176 kB / 0.7825 GB, free: 7.406 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002883/0.5684, allocations: 1.416 MB / 0.7839 GB, free: 5.988 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0003396/0.5688, allocations: 386.6 kB / 0.7843 GB, free: 5.609 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0009074/0.5697, allocations: 0.9176 MB / 0.7852 GB, free: 4.688 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.003847/0.5736, allocations: 3.111 MB / 0.7882 GB, free: 1.574 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.5736, allocations: 8 kB / 0.7882 GB, free: 1.566 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.643e-06/0.5736, allocations: 0 / 0.7882 GB, free: 1.566 MB / 0.545 GB Notification: Performance of Transformations before backend: time 2.051e-05/0.5736, allocations: 0 / 0.7882 GB, free: 1.566 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.003235/0.5769, allocations: 2.035 MB / 0.7902 GB, free: 15.46 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/0.5769, allocations: 11.97 kB / 0.7902 GB, free: 15.45 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00219/0.5791, allocations: 446.7 kB / 0.7907 GB, free: 15.02 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002897/0.582, allocations: 1.547 MB / 0.7922 GB, free: 13.41 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.169e-05/0.5821, allocations: 78.03 kB / 0.7922 GB, free: 13.33 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001573/0.5823, allocations: 115.9 kB / 0.7924 GB, free: 13.22 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002507/0.5848, allocations: 1.309 MB / 0.7936 GB, free: 11.8 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.55e-05/0.5848, allocations: 7.938 kB / 0.7936 GB, free: 11.79 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001041/0.5849, allocations: 44 kB / 0.7937 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.515e-05/0.585, allocations: 24 kB / 0.7937 GB, free: 11.72 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002471/0.5874, allocations: 1.104 MB / 0.7948 GB, free: 10.62 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.007912/0.5954, allocations: 7.49 MB / 0.8021 GB, free: 2.613 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002997/0.5984, allocations: 0.8057 MB / 0.8029 GB, free: 1.801 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005846/0.599, allocations: 285.9 kB / 0.8032 GB, free: 1.52 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001194/0.6002, allocations: 1.722 MB / 0.8048 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.481e-05/0.6003, allocations: 35 kB / 0.8049 GB, free: 15.36 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=48): time 2.735e-06/0.6003, allocations: 0 / 0.8049 GB, free: 15.36 MB / 0.5762 GB Notification: Performance of matching and sorting (n=48): time 0.004733/0.605, allocations: 1.342 MB / 0.8062 GB, free: 14 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.54e-05/0.6051, allocations: 55.84 kB / 0.8062 GB, free: 13.93 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002354/0.6074, allocations: 1.545 MB / 0.8078 GB, free: 12.38 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 7.421e-05/0.6075, allocations: 37.7 kB / 0.8078 GB, free: 12.33 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005235/0.608, allocations: 0.6729 MB / 0.8084 GB, free: 11.65 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.00016/0.6082, allocations: 173.6 kB / 0.8086 GB, free: 11.48 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002828/0.6085, allocations: 174.4 kB / 0.8088 GB, free: 11.3 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001197/0.6086, allocations: 334 kB / 0.8091 GB, free: 10.97 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009216/0.6096, allocations: 361.8 kB / 0.8094 GB, free: 10.62 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001179/0.6107, allocations: 0.6624 MB / 0.8101 GB, free: 9.832 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001708/0.6125, allocations: 0.8906 MB / 0.811 GB, free: 8.84 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.499e-06/0.6125, allocations: 4 kB / 0.811 GB, free: 8.836 MB / 0.5762 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002751/0.6152, allocations: 1.193 MB / 0.8121 GB, free: 7.633 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.679e-05/0.6153, allocations: 11.94 kB / 0.8121 GB, free: 7.621 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.555e-05/0.6153, allocations: 8 kB / 0.8121 GB, free: 7.613 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008187/0.6161, allocations: 220.7 kB / 0.8124 GB, free: 7.395 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007457/0.6169, allocations: 191.6 kB / 0.8125 GB, free: 7.207 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007822/0.6177, allocations: 0.7294 MB / 0.8132 GB, free: 6.453 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001392/0.6191, allocations: 206.7 kB / 0.8134 GB, free: 6.25 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.69e-05/0.6192, allocations: 47.97 kB / 0.8135 GB, free: 6.203 MB / 0.5762 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.0005082/0.6197, allocations: 349.6 kB / 0.8138 GB, free: 5.852 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000216/0.6199, allocations: 150.1 kB / 0.814 GB, free: 5.703 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002291/0.6222, allocations: 1.144 MB / 0.8151 GB, free: 4.535 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-05/0.6223, allocations: 11.98 kB / 0.8151 GB, free: 4.523 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.6223, allocations: 0 / 0.8151 GB, free: 4.523 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.6223, allocations: 4 kB / 0.8151 GB, free: 4.52 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004925/0.6272, allocations: 2.51 MB / 0.8176 GB, free: 1.934 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.6272, allocations: 0 / 0.8176 GB, free: 1.934 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003637/0.6276, allocations: 92.06 kB / 0.8176 GB, free: 1.844 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007121/0.6283, allocations: 208.6 kB / 0.8178 GB, free: 1.637 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.202e-05/0.6284, allocations: 19.94 kB / 0.8179 GB, free: 1.617 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001196/0.6296, allocations: 0.7747 MB / 0.8186 GB, free: 0.8164 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.6296, allocations: 3.938 kB / 0.8186 GB, free: 0.8125 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003164/0.6328, allocations: 1.207 MB / 0.8198 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005999/0.6334, allocations: 342.9 kB / 0.8201 GB, free: 15.21 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001792/0.6336, allocations: 15.94 kB / 0.8201 GB, free: 15.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008665/0.6344, allocations: 75.91 kB / 0.8202 GB, free: 15.12 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.647e-05/0.6345, allocations: 36.52 kB / 0.8202 GB, free: 15.08 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.217e-05/0.6346, allocations: 27.98 kB / 0.8203 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.00171/0.6363, allocations: 1.082 MB / 0.8213 GB, free: 13.98 MB / 0.5919 GB Notification: Performance of sort global known variables: time 3.51e-07/0.6363, allocations: 0 / 0.8213 GB, free: 13.98 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.00126/0.6376, allocations: 451.3 kB / 0.8218 GB, free: 13.54 MB / 0.5919 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.0008778/0.6385, allocations: 489.7 kB / 0.8222 GB, free: 13.07 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002199/0.6407, allocations: 0.8411 MB / 0.823 GB, free: 12.23 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.6407, allocations: 4.062 kB / 0.8231 GB, free: 12.22 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001195/0.6419, allocations: 439.3 kB / 0.8235 GB, free: 11.79 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002787/0.6447, allocations: 0.7353 MB / 0.8242 GB, free: 11.06 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003739/0.6485, allocations: 2.258 MB / 0.8264 GB, free: 8.754 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007055/0.6492, allocations: 1.172 MB / 0.8275 GB, free: 7.555 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0008916/0.6501, allocations: 268.8 kB / 0.8278 GB, free: 7.293 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002526/0.6504, allocations: 115.4 kB / 0.8279 GB, free: 7.184 MB / 0.5919 GB Notification: Performance of SimCode: time 6.61e-07/0.6504, allocations: 0 / 0.8279 GB, free: 7.184 MB / 0.5919 GB Notification: Performance of Templates: time 0.04905/0.6994, allocations: 31.54 MB / 0.8587 GB, free: 8.078 MB / 0.6231 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 gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe 2>&1)