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.001444/0.001444, allocations: 103.1 kB / 16.27 MB, free: 6.414 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.001413/0.001414, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.346/1.346, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002246/0.002246, allocations: 293.1 kB / 291.3 MB, free: 14.54 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9308/0.9308, allocations: 169.3 MB / 0.4988 GB, free: 4.512 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001959/0.001959, allocations: 106.6 kB / 0.5959 GB, free: 15.18 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1486/0.1506, allocations: 86.97 MB / 0.6808 GB, free: 8.211 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.3337/0.4843, allocations: 70.44 MB / 0.7496 GB, free: 2.871 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.02702/0.5113, allocations: 18.91 MB / 0.7681 GB, free: 3.484 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002786/0.5142, allocations: 66.12 kB / 0.7681 GB, free: 3.461 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.002668/0.5169, allocations: 0.8203 MB / 0.7689 GB, free: 2.746 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.008893/0.5258, allocations: 2.855 MB / 0.7717 GB, free: 476 kB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.004504/0.5303, allocations: 1.651 MB / 0.7733 GB, free: 15.17 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.006001/0.5364, allocations: 4.042 MB / 0.7773 GB, free: 12.61 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002606/0.539, allocations: 1.451 MB / 0.7787 GB, free: 11.12 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00443/0.5434, allocations: 1.763 MB / 0.7804 GB, free: 9.359 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00233/0.5458, allocations: 1.186 MB / 0.7816 GB, free: 8.168 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0004992/0.5463, allocations: 176 kB / 0.7818 GB, free: 7.996 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003533/0.5498, allocations: 1.412 MB / 0.7831 GB, free: 6.582 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0005542/0.5504, allocations: 382.7 kB / 0.7835 GB, free: 6.207 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.001597/0.552, allocations: 0.9215 MB / 0.7844 GB, free: 5.281 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.004945/0.557, allocations: 3.081 MB / 0.7874 GB, free: 2.191 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.557, allocations: 4 kB / 0.7874 GB, free: 2.188 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.673e-06/0.557, allocations: 0 / 0.7874 GB, free: 2.188 MB / 0.545 GB Notification: Performance of Transformations before backend: time 7.398e-05/0.5571, allocations: 0 / 0.7874 GB, free: 2.188 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.004718/0.5618, allocations: 2.031 MB / 0.7894 GB, free: 96 kB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.5619, allocations: 8.031 kB / 0.7894 GB, free: 88 kB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002484/0.5644, allocations: 446.7 kB / 0.7898 GB, free: 15.65 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003046/0.5674, allocations: 1.487 MB / 0.7913 GB, free: 14.11 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004073/0.5679, allocations: 141.9 kB / 0.7914 GB, free: 13.96 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002641/0.5681, allocations: 100 kB / 0.7915 GB, free: 13.87 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002911/0.5711, allocations: 1.325 MB / 0.7928 GB, free: 12.43 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.467e-05/0.5711, allocations: 7.938 kB / 0.7928 GB, free: 12.42 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001126/0.5712, allocations: 44 kB / 0.7929 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.126e-05/0.5713, allocations: 24 kB / 0.7929 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0029/0.5742, allocations: 1.105 MB / 0.794 GB, free: 11.25 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.00992/0.5841, allocations: 7.572 MB / 0.8014 GB, free: 3.164 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003242/0.5874, allocations: 0.7979 MB / 0.8021 GB, free: 2.359 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006522/0.5881, allocations: 278 kB / 0.8024 GB, free: 2.086 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001407/0.5895, allocations: 1.726 MB / 0.8041 GB, free: 15.97 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.675e-05/0.5895, allocations: 39 kB / 0.8041 GB, free: 15.92 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=48): time 2.715e-06/0.5896, allocations: 0 / 0.8041 GB, free: 15.92 MB / 0.5762 GB Notification: Performance of matching and sorting (n=48): time 0.005188/0.5947, allocations: 1.338 MB / 0.8054 GB, free: 14.56 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.447e-05/0.5948, allocations: 59.84 kB / 0.8055 GB, free: 14.49 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003009/0.5978, allocations: 1.553 MB / 0.807 GB, free: 12.93 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001196/0.598, allocations: 41.7 kB / 0.807 GB, free: 12.88 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006523/0.5987, allocations: 0.669 MB / 0.8077 GB, free: 12.2 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002118/0.5989, allocations: 177.5 kB / 0.8079 GB, free: 12.03 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003241/0.5992, allocations: 170.5 kB / 0.808 GB, free: 11.86 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001442/0.5994, allocations: 333.9 kB / 0.8083 GB, free: 11.52 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00106/0.6004, allocations: 373.8 kB / 0.8087 GB, free: 11.16 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00134/0.6018, allocations: 0.6585 MB / 0.8093 GB, free: 10.37 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001931/0.6037, allocations: 0.8984 MB / 0.8102 GB, free: 9.371 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.012e-05/0.6037, allocations: 3.938 kB / 0.8102 GB, free: 9.367 MB / 0.5762 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.003375/0.6071, allocations: 1.201 MB / 0.8114 GB, free: 8.156 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.104e-05/0.6072, allocations: 8 kB / 0.8114 GB, free: 8.148 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.854e-05/0.6072, allocations: 8 kB / 0.8114 GB, free: 8.141 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009282/0.6081, allocations: 228.6 kB / 0.8116 GB, free: 7.914 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007941/0.609, allocations: 191.7 kB / 0.8118 GB, free: 7.727 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009373/0.6099, allocations: 0.7239 MB / 0.8125 GB, free: 6.977 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001693/0.6116, allocations: 220.3 kB / 0.8127 GB, free: 6.762 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001261/0.6117, allocations: 43.97 kB / 0.8128 GB, free: 6.719 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.0006627/0.6124, allocations: 354.1 kB / 0.8131 GB, free: 6.363 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004144/0.6128, allocations: 150.1 kB / 0.8133 GB, free: 6.215 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002599/0.6154, allocations: 1.148 MB / 0.8144 GB, free: 5.047 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.231e-05/0.6155, allocations: 11.98 kB / 0.8144 GB, free: 5.035 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.6155, allocations: 0 / 0.8144 GB, free: 5.035 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.6155, allocations: 0 / 0.8144 GB, free: 5.035 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005761/0.6213, allocations: 2.506 MB / 0.8168 GB, free: 2.449 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.117e-06/0.6213, allocations: 0 / 0.8168 GB, free: 2.449 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000383/0.6217, allocations: 87.88 kB / 0.8169 GB, free: 2.363 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007815/0.6225, allocations: 208.9 kB / 0.8171 GB, free: 2.156 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5e-05/0.6226, allocations: 19.94 kB / 0.8171 GB, free: 2.137 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001338/0.6239, allocations: 0.7824 MB / 0.8179 GB, free: 1.328 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.6239, allocations: 0 / 0.8179 GB, free: 1.328 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003611/0.6275, allocations: 1.203 MB / 0.8191 GB, free: 88 kB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000676/0.6282, allocations: 350.9 kB / 0.8194 GB, free: 15.72 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003295/0.6286, allocations: 12 kB / 0.8194 GB, free: 15.71 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00104/0.6296, allocations: 75.91 kB / 0.8195 GB, free: 15.64 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/0.6297, allocations: 40.45 kB / 0.8195 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.659e-05/0.6298, allocations: 23.98 kB / 0.8196 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001962/0.6318, allocations: 1.09 MB / 0.8206 GB, free: 14.48 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.7e-07/0.6318, allocations: 8 kB / 0.8206 GB, free: 14.48 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001446/0.6332, allocations: 443.4 kB / 0.8211 GB, free: 14.04 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.0009721/0.6342, allocations: 485.2 kB / 0.8215 GB, free: 13.58 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002424/0.6366, allocations: 0.8798 MB / 0.8224 GB, free: 12.7 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.658e-06/0.6367, allocations: 0 / 0.8224 GB, free: 12.7 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001335/0.638, allocations: 443.6 kB / 0.8228 GB, free: 12.27 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003385/0.6414, allocations: 0.75 MB / 0.8235 GB, free: 11.53 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004163/0.6456, allocations: 2.319 MB / 0.8258 GB, free: 9.16 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008728/0.6465, allocations: 1.165 MB / 0.8269 GB, free: 7.969 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003611/0.6468, allocations: 119.4 kB / 0.827 GB, free: 7.855 MB / 0.5919 GB Notification: Performance of SimCode: time 5.21e-07/0.6469, allocations: 0 / 0.827 GB, free: 7.855 MB / 0.5919 GB Notification: Performance of Templates: time 0.0451/0.692, allocations: 34.1 MB / 0.8604 GB, free: 6.012 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe 2>&1)