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.001505/0.001505, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001538/0.001538, allocations: 196.4 kB / 16.14 MB, free: 6.707 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.354/1.354, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002048/0.002048, allocations: 278.2 kB / 290.2 MB, free: 2.207 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9706/0.9706, allocations: 169.2 MB / 0.4977 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001614/0.001614, allocations: 91.42 kB / 0.5945 GB, free: 28.47 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1545/0.1561, allocations: 86.98 MB / 0.6794 GB, free: 1.184 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.06392/0.2201, allocations: 70.02 MB / 0.7478 GB, free: 10.96 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.02314/0.2432, allocations: 19 MB / 0.7664 GB, free: 7.898 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00226/0.2455, allocations: 67.56 kB / 0.7664 GB, free: 7.832 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001974/0.2476, allocations: 0.6527 MB / 0.7671 GB, free: 7.176 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.006706/0.2543, allocations: 2.609 MB / 0.7696 GB, free: 4.559 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.003503/0.2578, allocations: 1.486 MB / 0.7711 GB, free: 3.078 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.3009/0.5587, allocations: 5.013 MB / 0.776 GB, free: 26.1 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002632/0.5614, allocations: 1.179 MB / 0.7771 GB, free: 26.01 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003844/0.5652, allocations: 1.495 MB / 0.7786 GB, free: 26.01 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00239/0.5677, allocations: 1.17 MB / 0.7797 GB, free: 25.94 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0002482/0.5679, allocations: 79.31 kB / 0.7798 GB, free: 25.94 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003139/0.5711, allocations: 1.233 MB / 0.781 GB, free: 25.94 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0003454/0.5714, allocations: 292.7 kB / 0.7813 GB, free: 25.88 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.001261/0.5727, allocations: 0.8193 MB / 0.7821 GB, free: 25.64 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.004619/0.5773, allocations: 3.019 MB / 0.785 GB, free: 25.39 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.5774, allocations: 2.875 kB / 0.785 GB, free: 25.39 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.032e-06/0.5774, allocations: 0 / 0.785 GB, free: 25.39 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.193e-05/0.5774, allocations: 0 / 0.785 GB, free: 25.39 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.004287/0.5817, allocations: 2.041 MB / 0.787 GB, free: 24.37 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 5.176e-05/0.5818, allocations: 8.75 kB / 0.787 GB, free: 24.37 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002441/0.5842, allocations: 445.7 kB / 0.7875 GB, free: 24.27 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00283/0.5871, allocations: 1.501 MB / 0.7889 GB, free: 23.86 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003689/0.5874, allocations: 138.7 kB / 0.7891 GB, free: 23.85 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001693/0.5876, allocations: 103.8 kB / 0.7892 GB, free: 23.85 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002443/0.5901, allocations: 1.3 MB / 0.7904 GB, free: 23.6 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.229e-05/0.5901, allocations: 3.281 kB / 0.7904 GB, free: 23.6 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001025/0.5902, allocations: 41.22 kB / 0.7905 GB, free: 23.6 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.766e-05/0.5902, allocations: 26.25 kB / 0.7905 GB, free: 23.6 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002683/0.5929, allocations: 1.103 MB / 0.7916 GB, free: 23.57 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.007736/0.6007, allocations: 7.152 MB / 0.7986 GB, free: 19.56 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003077/0.6038, allocations: 0.8066 MB / 0.7993 GB, free: 19.52 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005833/0.6044, allocations: 278.9 kB / 0.7996 GB, free: 19.51 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009143/0.6053, allocations: 1.729 MB / 0.8013 GB, free: 17.54 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.262e-05/0.6053, allocations: 45.42 kB / 0.8013 GB, free: 17.5 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=48): time 1.964e-06/0.6053, allocations: 0 / 0.8013 GB, free: 17.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=48): time 0.004532/0.6099, allocations: 1.332 MB / 0.8026 GB, free: 17.25 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.535e-05/0.6099, allocations: 58.75 kB / 0.8027 GB, free: 17.19 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002648/0.6126, allocations: 1.521 MB / 0.8042 GB, free: 17.02 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 9.916e-05/0.6127, allocations: 37.2 kB / 0.8042 GB, free: 16.98 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005109/0.6132, allocations: 0.6635 MB / 0.8049 GB, free: 16.76 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.000144/0.6134, allocations: 171.6 kB / 0.805 GB, free: 16.66 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002781/0.6136, allocations: 163.2 kB / 0.8052 GB, free: 16.63 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.875e-05/0.6137, allocations: 334 kB / 0.8055 GB, free: 16.33 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009915/0.6147, allocations: 360.5 kB / 0.8058 GB, free: 16.32 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001154/0.6159, allocations: 0.6284 MB / 0.8065 GB, free: 16 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001614/0.6175, allocations: 0.8513 MB / 0.8073 GB, free: 15.74 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.231e-06/0.6175, allocations: 1.344 kB / 0.8073 GB, free: 15.74 MB / 0.5606 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.004214/0.6217, allocations: 1.334 MB / 0.8086 GB, free: 15.58 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.336e-05/0.6218, allocations: 15.64 kB / 0.8086 GB, free: 15.58 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.273e-05/0.6218, allocations: 6.5 kB / 0.8086 GB, free: 15.58 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008578/0.6226, allocations: 214.1 kB / 0.8088 GB, free: 15.56 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007572/0.6234, allocations: 190.9 kB / 0.809 GB, free: 15.55 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007188/0.6241, allocations: 0.7193 MB / 0.8097 GB, free: 15.03 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001781/0.6259, allocations: 237.6 kB / 0.8099 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001026/0.6261, allocations: 38.23 kB / 0.81 GB, free: 14.96 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.0006145/0.6267, allocations: 354.3 kB / 0.8103 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002741/0.627, allocations: 155.9 kB / 0.8105 GB, free: 14.76 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002275/0.6292, allocations: 1.143 MB / 0.8116 GB, free: 14.63 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.737e-05/0.6293, allocations: 10.59 kB / 0.8116 GB, free: 14.63 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.6293, allocations: 4.703 kB / 0.8116 GB, free: 14.63 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.962e-06/0.6293, allocations: 0 / 0.8116 GB, free: 14.63 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004801/0.6341, allocations: 2.511 MB / 0.814 GB, free: 14.21 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.215e-06/0.6341, allocations: 1.031 kB / 0.814 GB, free: 14.21 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000359/0.6345, allocations: 86.56 kB / 0.8141 GB, free: 14.21 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007391/0.6352, allocations: 211.5 kB / 0.8143 GB, free: 14.19 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.488e-05/0.6353, allocations: 16.97 kB / 0.8143 GB, free: 14.19 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001142/0.6364, allocations: 0.772 MB / 0.8151 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.6365, allocations: 1.531 kB / 0.8151 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003265/0.6397, allocations: 1.207 MB / 0.8163 GB, free: 13.36 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006913/0.6404, allocations: 347.7 kB / 0.8166 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002317/0.6407, allocations: 11.81 kB / 0.8166 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009582/0.6416, allocations: 92.8 kB / 0.8167 GB, free: 13.17 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.397e-05/0.6417, allocations: 44.11 kB / 0.8167 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.284e-05/0.6418, allocations: 29.28 kB / 0.8168 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001767/0.6436, allocations: 1.075 MB / 0.8178 GB, free: 13.04 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.61e-07/0.6436, allocations: 0 / 0.8178 GB, free: 13.04 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001391/0.645, allocations: 434.4 kB / 0.8182 GB, free: 12.99 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.0007948/0.6458, allocations: 481 kB / 0.8187 GB, free: 12.83 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001991/0.6478, allocations: 0.8295 MB / 0.8195 GB, free: 12.81 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/0.6478, allocations: 0 / 0.8195 GB, free: 12.81 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001201/0.649, allocations: 439.5 kB / 0.8199 GB, free: 12.8 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00314/0.6522, allocations: 0.6925 MB / 0.8206 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003617/0.6558, allocations: 2.755 MB / 0.8233 GB, free: 11.25 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005093/0.6563, allocations: 1.168 MB / 0.8244 GB, free: 10.5 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001162/0.6575, allocations: 259.2 kB / 0.8247 GB, free: 10.43 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002658/0.6578, allocations: 115.5 kB / 0.8248 GB, free: 10.41 MB / 0.5606 GB Notification: Performance of SimCode: time 7.12e-07/0.6578, allocations: 2.469 kB / 0.8248 GB, free: 10.41 MB / 0.5606 GB Notification: Performance of Templates: time 0.04379/0.7016, allocations: 30.06 MB / 0.8541 GB, free: 5.594 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)