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.001066/0.001066, allocations: 107.1 kB / 15.99 MB, free: 5.891 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.001099/0.0011, allocations: 196.4 kB / 16.91 MB, free: 5.746 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.294/1.294, allocations: 222.9 MB / 240.6 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.0022/0.0022, allocations: 274.6 kB / 291 MB, free: 2.133 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9211/0.9211, allocations: 169.2 MB / 0.4985 GB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001578/0.001578, allocations: 99.78 kB / 0.5953 GB, free: 28.14 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1362/0.1378, allocations: 86.98 MB / 0.6803 GB, free: 1.062 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.06064/0.1984, allocations: 69.84 MB / 0.7485 GB, free: 11 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0217/0.2202, allocations: 18.79 MB / 0.7668 GB, free: 8.16 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002288/0.2225, allocations: 71.56 kB / 0.7669 GB, free: 8.09 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.002247/0.2248, allocations: 0.6996 MB / 0.7676 GB, free: 7.387 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.007057/0.2319, allocations: 2.659 MB / 0.7702 GB, free: 4.719 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.003846/0.2357, allocations: 1.518 MB / 0.7716 GB, free: 3.211 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.2712/0.507, allocations: 4.052 MB / 0.7756 GB, free: 25.61 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002218/0.5092, allocations: 1.444 MB / 0.777 GB, free: 25.52 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003805/0.5131, allocations: 1.776 MB / 0.7788 GB, free: 25.52 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001967/0.515, allocations: 1.215 MB / 0.7799 GB, free: 25.46 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0003046/0.5154, allocations: 183.1 kB / 0.7801 GB, free: 25.46 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002692/0.5181, allocations: 1.429 MB / 0.7815 GB, free: 25.46 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0004146/0.5185, allocations: 393.4 kB / 0.7819 GB, free: 25.41 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.001036/0.5195, allocations: 0.919 MB / 0.7828 GB, free: 25.16 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.002891/0.5224, allocations: 2.47 MB / 0.7852 GB, free: 25.09 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.379e-06/0.5225, allocations: 0 / 0.7852 GB, free: 25.09 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.463e-06/0.5225, allocations: 0 / 0.7852 GB, free: 25.09 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.128e-05/0.5225, allocations: 0 / 0.7852 GB, free: 25.09 MB / 0.5606 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.003471/0.526, allocations: 2.042 MB / 0.7872 GB, free: 24.06 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.526, allocations: 8.688 kB / 0.7872 GB, free: 24.06 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002176/0.5282, allocations: 443.8 kB / 0.7876 GB, free: 23.96 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002439/0.5307, allocations: 1.511 MB / 0.7891 GB, free: 23.55 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003337/0.531, allocations: 132.7 kB / 0.7892 GB, free: 23.54 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001457/0.5312, allocations: 105.1 kB / 0.7893 GB, free: 23.54 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002446/0.5336, allocations: 1.294 MB / 0.7906 GB, free: 23.29 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.621e-05/0.5337, allocations: 3.094 kB / 0.7906 GB, free: 23.29 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001034/0.5338, allocations: 44.66 kB / 0.7906 GB, free: 23.29 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.048e-05/0.5338, allocations: 29.03 kB / 0.7907 GB, free: 23.29 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00246/0.5363, allocations: 1.107 MB / 0.7917 GB, free: 23.27 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.007644/0.5439, allocations: 7.142 MB / 0.7987 GB, free: 19.25 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002881/0.5468, allocations: 0.8044 MB / 0.7995 GB, free: 19.22 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005229/0.5474, allocations: 283.7 kB / 0.7998 GB, free: 19.21 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007629/0.5482, allocations: 1.723 MB / 0.8015 GB, free: 17.24 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.044e-05/0.5482, allocations: 37.81 kB / 0.8015 GB, free: 17.2 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=48): time 2.624e-06/0.5482, allocations: 0 / 0.8015 GB, free: 17.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=48): time 0.004449/0.5526, allocations: 1.342 MB / 0.8028 GB, free: 16.95 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.525e-05/0.5527, allocations: 55.12 kB / 0.8029 GB, free: 16.89 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002405/0.5551, allocations: 1.521 MB / 0.8043 GB, free: 16.71 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0001043/0.5552, allocations: 36.58 kB / 0.8044 GB, free: 16.68 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004764/0.5557, allocations: 0.673 MB / 0.805 GB, free: 16.46 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001545/0.5559, allocations: 163.4 kB / 0.8052 GB, free: 16.36 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003087/0.5562, allocations: 164 kB / 0.8053 GB, free: 16.33 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.931e-05/0.5563, allocations: 337.2 kB / 0.8057 GB, free: 16.02 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009954/0.5573, allocations: 359.4 kB / 0.806 GB, free: 16.02 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001106/0.5584, allocations: 0.63 MB / 0.8066 GB, free: 15.7 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001532/0.5599, allocations: 0.8464 MB / 0.8074 GB, free: 15.44 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.302e-06/0.5599, allocations: 5.594 kB / 0.8075 GB, free: 15.44 MB / 0.5606 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.004041/0.564, allocations: 1.337 MB / 0.8088 GB, free: 15.28 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.03e-05/0.564, allocations: 7.031 kB / 0.8088 GB, free: 15.28 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.195e-05/0.564, allocations: 7.156 kB / 0.8088 GB, free: 15.28 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00083/0.5649, allocations: 221.8 kB / 0.809 GB, free: 15.25 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000719/0.5656, allocations: 191 kB / 0.8092 GB, free: 15.24 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006692/0.5663, allocations: 0.7133 MB / 0.8099 GB, free: 14.72 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001641/0.5679, allocations: 237.6 kB / 0.8101 GB, free: 14.65 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.429e-05/0.568, allocations: 42.06 kB / 0.8101 GB, free: 14.65 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.000538/0.5686, allocations: 353.8 kB / 0.8105 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002333/0.5688, allocations: 152.8 kB / 0.8106 GB, free: 14.45 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002196/0.571, allocations: 1.141 MB / 0.8117 GB, free: 14.33 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.745e-05/0.5711, allocations: 9.547 kB / 0.8117 GB, free: 14.33 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.5711, allocations: 4 kB / 0.8117 GB, free: 14.32 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.734e-06/0.5711, allocations: 9.781 kB / 0.8117 GB, free: 14.32 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004777/0.5759, allocations: 2.508 MB / 0.8142 GB, free: 13.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.554e-06/0.5759, allocations: 1.219 kB / 0.8142 GB, free: 13.9 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003523/0.5762, allocations: 89.11 kB / 0.8143 GB, free: 13.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007063/0.577, allocations: 205.6 kB / 0.8145 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.485e-05/0.577, allocations: 24.78 kB / 0.8145 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001052/0.5781, allocations: 0.7632 MB / 0.8152 GB, free: 13.35 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.5781, allocations: 6.562 kB / 0.8153 GB, free: 13.35 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003134/0.5812, allocations: 1.212 MB / 0.8164 GB, free: 13.04 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005448/0.5818, allocations: 342.5 kB / 0.8168 GB, free: 12.86 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000202/0.582, allocations: 14.16 kB / 0.8168 GB, free: 12.86 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009074/0.5829, allocations: 94.08 kB / 0.8169 GB, free: 12.85 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.086e-05/0.583, allocations: 43.72 kB / 0.8169 GB, free: 12.84 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.419e-05/0.5831, allocations: 26.44 kB / 0.8169 GB, free: 12.84 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001577/0.5847, allocations: 1.073 MB / 0.818 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9.51e-07/0.5847, allocations: 0 / 0.818 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001406/0.5861, allocations: 439.3 kB / 0.8184 GB, free: 12.67 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.0008791/0.587, allocations: 482.8 kB / 0.8189 GB, free: 12.5 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.002059/0.589, allocations: 0.8678 MB / 0.8197 GB, free: 12.47 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.5891, allocations: 0 / 0.8197 GB, free: 12.47 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001133/0.5902, allocations: 443.1 kB / 0.8201 GB, free: 12.46 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003025/0.5932, allocations: 0.7379 MB / 0.8209 GB, free: 12.34 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003487/0.5967, allocations: 2.77 MB / 0.8236 GB, free: 10.91 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004796/0.5972, allocations: 1.154 MB / 0.8247 GB, free: 10.19 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003531/0.5976, allocations: 124.3 kB / 0.8248 GB, free: 10.18 MB / 0.5606 GB Notification: Performance of SimCode: time 4.8e-07/0.5976, allocations: 0 / 0.8248 GB, free: 10.18 MB / 0.5606 GB Notification: Performance of Templates: time 0.03736/0.635, allocations: 33.86 MB / 0.8579 GB, free: 1.961 MB / 0.5762 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)