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.001171/0.001172, allocations: 103.4 kB / 15.33 MB, free: 0.5039 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.002451/0.00245, allocations: 195.7 kB / 16.25 MB, free: 6.625 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.394/1.394, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002/0.002, allocations: 278.2 kB / 290.4 MB, free: 2.129 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9498/0.9498, allocations: 169.2 MB / 0.4978 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001632/0.001632, allocations: 88.92 kB / 0.5947 GB, free: 28.13 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1552/0.1569, allocations: 86.99 MB / 0.6796 GB, free: 1.078 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.06373/0.2206, allocations: 69.85 MB / 0.7478 GB, free: 11.02 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.02165/0.2423, allocations: 18.78 MB / 0.7662 GB, free: 8.188 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002308/0.2447, allocations: 67.56 kB / 0.7662 GB, free: 8.121 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001952/0.2467, allocations: 0.6957 MB / 0.7669 GB, free: 7.422 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.006575/0.2533, allocations: 2.655 MB / 0.7695 GB, free: 4.758 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.003591/0.2569, allocations: 1.522 MB / 0.771 GB, free: 3.246 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.3407/0.5976, allocations: 4.06 MB / 0.775 GB, free: 25.75 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003157/0.6008, allocations: 1.445 MB / 0.7764 GB, free: 25.66 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005779/0.6066, allocations: 1.786 MB / 0.7781 GB, free: 25.65 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002784/0.6094, allocations: 1.214 MB / 0.7793 GB, free: 25.59 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0005489/0.61, allocations: 176.9 kB / 0.7795 GB, free: 25.59 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003351/0.6133, allocations: 1.43 MB / 0.7809 GB, free: 25.59 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0003858/0.6137, allocations: 389.5 kB / 0.7812 GB, free: 25.54 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.001162/0.6149, allocations: 0.9213 MB / 0.7821 GB, free: 25.29 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.004448/0.6194, allocations: 3.104 MB / 0.7852 GB, free: 25.04 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.6194, allocations: 4.375 kB / 0.7852 GB, free: 25.04 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.593e-06/0.6194, allocations: 0 / 0.7852 GB, free: 25.04 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.224e-05/0.6195, allocations: 0 / 0.7852 GB, free: 25.04 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.003663/0.6231, allocations: 2.038 MB / 0.7872 GB, free: 24 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/0.6232, allocations: 7.281 kB / 0.7872 GB, free: 24 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002233/0.6254, allocations: 444.7 kB / 0.7876 GB, free: 23.9 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002399/0.6278, allocations: 1.509 MB / 0.7891 GB, free: 23.49 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003457/0.6282, allocations: 139.5 kB / 0.7892 GB, free: 23.48 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001479/0.6284, allocations: 106 kB / 0.7893 GB, free: 23.48 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00245/0.6308, allocations: 1.293 MB / 0.7906 GB, free: 23.22 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.742e-05/0.6309, allocations: 1.969 kB / 0.7906 GB, free: 23.22 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001004/0.631, allocations: 45.28 kB / 0.7906 GB, free: 23.22 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.017e-05/0.631, allocations: 24.97 kB / 0.7906 GB, free: 23.22 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002402/0.6334, allocations: 1.107 MB / 0.7917 GB, free: 23.2 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.007027/0.6404, allocations: 7.14 MB / 0.7987 GB, free: 19.2 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00287/0.6433, allocations: 0.8085 MB / 0.7995 GB, free: 19.16 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005864/0.6439, allocations: 280.2 kB / 0.7997 GB, free: 19.15 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001022/0.645, allocations: 1.727 MB / 0.8014 GB, free: 17.18 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.931e-05/0.645, allocations: 40.7 kB / 0.8015 GB, free: 17.14 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=48): time 4.408e-06/0.645, allocations: 0 / 0.8015 GB, free: 17.14 MB / 0.5606 GB Notification: Performance of matching and sorting (n=48): time 0.004762/0.6498, allocations: 1.334 MB / 0.8028 GB, free: 16.89 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.952e-05/0.6498, allocations: 57.16 kB / 0.8028 GB, free: 16.82 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002607/0.6524, allocations: 1.526 MB / 0.8043 GB, free: 16.65 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 9.196e-05/0.6525, allocations: 40.98 kB / 0.8044 GB, free: 16.62 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004942/0.653, allocations: 0.6629 MB / 0.805 GB, free: 16.39 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001538/0.6532, allocations: 169.3 kB / 0.8052 GB, free: 16.29 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003104/0.6535, allocations: 163.4 kB / 0.8053 GB, free: 16.27 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.075e-05/0.6536, allocations: 332.7 kB / 0.8056 GB, free: 15.96 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009839/0.6546, allocations: 365.5 kB / 0.806 GB, free: 15.95 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001039/0.6556, allocations: 0.625 MB / 0.8066 GB, free: 15.64 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001566/0.6572, allocations: 0.8487 MB / 0.8074 GB, free: 15.37 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.021e-06/0.6572, allocations: 2.656 kB / 0.8074 GB, free: 15.37 MB / 0.5606 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.004255/0.6615, allocations: 1.341 MB / 0.8087 GB, free: 15.21 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.621e-05/0.6615, allocations: 6.781 kB / 0.8087 GB, free: 15.21 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.355e-05/0.6615, allocations: 7.688 kB / 0.8087 GB, free: 15.21 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008643/0.6624, allocations: 219.5 kB / 0.809 GB, free: 15.19 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007485/0.6632, allocations: 184.3 kB / 0.8091 GB, free: 15.18 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006974/0.6639, allocations: 0.7208 MB / 0.8098 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001858/0.6657, allocations: 236.2 kB / 0.8101 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000114/0.6659, allocations: 40.83 kB / 0.8101 GB, free: 14.59 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.0007894/0.6667, allocations: 359 kB / 0.8104 GB, free: 14.47 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003384/0.667, allocations: 151.5 kB / 0.8106 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002435/0.6695, allocations: 1.141 MB / 0.8117 GB, free: 14.26 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.503e-05/0.6695, allocations: 8.953 kB / 0.8117 GB, free: 14.26 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.705e-06/0.6695, allocations: 2.484 kB / 0.8117 GB, free: 14.26 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.064e-05/0.6695, allocations: 2.859 kB / 0.8117 GB, free: 14.26 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005111/0.6746, allocations: 2.512 MB / 0.8142 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.987e-06/0.6747, allocations: 2.125 kB / 0.8142 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003548/0.675, allocations: 85.2 kB / 0.8143 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007506/0.6758, allocations: 209.9 kB / 0.8145 GB, free: 13.82 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.436e-05/0.6758, allocations: 14.81 kB / 0.8145 GB, free: 13.82 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001191/0.677, allocations: 0.778 MB / 0.8152 GB, free: 13.29 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.6771, allocations: 4.125 kB / 0.8152 GB, free: 13.29 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003263/0.6803, allocations: 1.201 MB / 0.8164 GB, free: 12.98 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006439/0.681, allocations: 345.9 kB / 0.8167 GB, free: 12.81 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001955/0.6812, allocations: 12.56 kB / 0.8167 GB, free: 12.81 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009081/0.6821, allocations: 91.36 kB / 0.8168 GB, free: 12.8 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.808e-05/0.6822, allocations: 51.55 kB / 0.8169 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.305e-05/0.6823, allocations: 25.92 kB / 0.8169 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001865/0.6841, allocations: 1.077 MB / 0.818 GB, free: 12.67 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6842, allocations: 0 / 0.818 GB, free: 12.67 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001411/0.6856, allocations: 433.6 kB / 0.8184 GB, free: 12.62 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.0008169/0.6864, allocations: 484.4 kB / 0.8188 GB, free: 12.44 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.002067/0.6885, allocations: 0.8597 MB / 0.8197 GB, free: 12.42 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.6885, allocations: 3.906 kB / 0.8197 GB, free: 12.42 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001144/0.6896, allocations: 445.4 kB / 0.8201 GB, free: 12.41 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003224/0.6929, allocations: 0.7467 MB / 0.8208 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003545/0.6964, allocations: 2.741 MB / 0.8235 GB, free: 10.8 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005131/0.697, allocations: 1.172 MB / 0.8247 GB, free: 10.06 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001026/0.698, allocations: 258.6 kB / 0.8249 GB, free: 9.992 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002413/0.6982, allocations: 116.3 kB / 0.825 GB, free: 9.977 MB / 0.5606 GB Notification: Performance of SimCode: time 8.22e-07/0.6983, allocations: 0 / 0.825 GB, free: 9.977 MB / 0.5606 GB Notification: Performance of Templates: time 0.04709/0.7454, allocations: 31.11 MB / 0.8554 GB, free: 4.266 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)