Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Annex60_1.0.0_Annex60.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo", uses=false) Using package Annex60 with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Annex60.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw") translateModel(Annex60.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.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.0009428/0.0009429, allocations: 91.3 kB / 15.06 MB, free: 1.098 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.0009797/0.0009799, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.809/1.809, allocations: 205.4 MB / 222.1 MB, free: 5.496 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.42/0.42, allocations: 55.01 MB / 325.4 MB, free: 0.7344 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Annex60 requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006607/0.0006609, allocations: 12 kB / 396.6 MB, free: 11.69 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4411/0.4418, allocations: 60.71 MB / 457.4 MB, free: 38.55 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Annex60.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.05731/0.4991, allocations: 64.44 MB / 0.5096 GB, free: 12.45 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02693/0.5261, allocations: 16.89 MB / 0.5261 GB, free: 308 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003561/0.5298, allocations: 52.38 kB / 0.5261 GB, free: 284 kB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002942/0.5327, allocations: 0.5662 MB / 0.5267 GB, free: 15.96 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.01133/0.5441, allocations: 2.082 MB / 0.5287 GB, free: 14.76 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004732/0.5488, allocations: 0.9465 MB / 0.5296 GB, free: 14.3 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.008859/0.5577, allocations: 4.398 MB / 0.5339 GB, free: 11.71 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002979/0.5607, allocations: 1.003 MB / 0.5349 GB, free: 11.11 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004498/0.5653, allocations: 1.428 MB / 0.5363 GB, free: 10.31 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003357/0.5686, allocations: 1.11 MB / 0.5374 GB, free: 9.68 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003012/0.569, allocations: 61.41 kB / 0.5374 GB, free: 9.68 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003154/0.5721, allocations: 0.7885 MB / 0.5382 GB, free: 9.281 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003397/0.5725, allocations: 254.9 kB / 0.5385 GB, free: 9.086 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00074/0.5732, allocations: 395.4 kB / 0.5388 GB, free: 8.852 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002927/0.5762, allocations: 2.316 MB / 0.5411 GB, free: 6.68 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/0.5762, allocations: 0 / 0.5411 GB, free: 6.68 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.5762, allocations: 4 kB / 0.5411 GB, free: 6.676 MB / 414.1 MB Notification: Performance of Transformations before backend: time 3.073e-05/0.5762, allocations: 0 / 0.5411 GB, free: 6.676 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 283 * Number of variables: 283 Notification: Performance of Generate backend data structure: time 0.003332/0.5796, allocations: 1.733 MB / 0.5428 GB, free: 4.883 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/0.5796, allocations: 8.031 kB / 0.5428 GB, free: 4.875 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002335/0.582, allocations: 0.5332 MB / 0.5433 GB, free: 4.34 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002726/0.5847, allocations: 1.446 MB / 0.5447 GB, free: 2.836 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003282/0.5851, allocations: 146.2 kB / 0.5449 GB, free: 2.691 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001471/0.5852, allocations: 116 kB / 0.545 GB, free: 2.578 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002879/0.5881, allocations: 1.492 MB / 0.5464 GB, free: 0.9492 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.551e-05/0.5881, allocations: 0 / 0.5464 GB, free: 0.9492 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000119/0.5883, allocations: 56 kB / 0.5465 GB, free: 0.8945 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.809e-05/0.5883, allocations: 46.89 kB / 0.5465 GB, free: 0.8516 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002708/0.5911, allocations: 1.21 MB / 0.5477 GB, free: 15.64 MB / 430.1 MB 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.009343/0.6004, allocations: 8.229 MB / 0.5558 GB, free: 6.887 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001599/0.602, allocations: 0.643 MB / 0.5564 GB, free: 6.234 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005541/0.6026, allocations: 260.7 kB / 0.5566 GB, free: 5.977 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001336/0.6039, allocations: 1.231 MB / 0.5578 GB, free: 4.469 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.932e-05/0.604, allocations: 38.56 kB / 0.5579 GB, free: 4.422 MB / 430.1 MB Notification: Performance of pre-optimization done (n=44): time 4.318e-06/0.604, allocations: 4 kB / 0.5579 GB, free: 4.418 MB / 430.1 MB Notification: Performance of matching and sorting (n=44): time 0.005319/0.6093, allocations: 1.54 MB / 0.5594 GB, free: 2.848 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001434/0.6095, allocations: 162.2 kB / 0.5595 GB, free: 2.652 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002738/0.6123, allocations: 1.618 MB / 0.5611 GB, free: 1.027 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.68e-05/0.6123, allocations: 37.7 kB / 0.5611 GB, free: 0.9844 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006861/0.613, allocations: 0.7347 MB / 0.5619 GB, free: 248 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001554/0.6132, allocations: 157.8 kB / 0.562 GB, free: 88 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.415e-05/0.6133, allocations: 16 kB / 0.562 GB, free: 72 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001693/0.6134, allocations: 346.7 kB / 0.5624 GB, free: 15.73 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009443/0.6144, allocations: 393.8 kB / 0.5627 GB, free: 15.34 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001295/0.6157, allocations: 0.7727 MB / 0.5635 GB, free: 14.4 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001099/0.6168, allocations: 469.8 kB / 0.5639 GB, free: 13.94 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.058e-05/0.6168, allocations: 4 kB / 0.5639 GB, free: 13.93 MB / 446.1 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.003029/0.6199, allocations: 1.31 MB / 0.5652 GB, free: 12.61 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.694e-05/0.6199, allocations: 8 kB / 0.5652 GB, free: 12.61 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.732e-05/0.6199, allocations: 19.61 kB / 0.5652 GB, free: 12.59 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009276/0.6209, allocations: 212.7 kB / 0.5654 GB, free: 12.38 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008906/0.6218, allocations: 239.6 kB / 0.5657 GB, free: 12.14 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009368/0.6227, allocations: 0.7201 MB / 0.5664 GB, free: 11.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001836/0.6246, allocations: 294.4 kB / 0.5667 GB, free: 11.11 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001115/0.6247, allocations: 39.98 kB / 0.5667 GB, free: 11.07 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * 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 (95): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 8} Notification: Performance of prepare postOptimizeDAE: time 0.0008439/0.6255, allocations: 373.5 kB / 0.5671 GB, free: 10.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003567/0.6259, allocations: 150.1 kB / 0.5672 GB, free: 10.55 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002428/0.6283, allocations: 0.9982 MB / 0.5682 GB, free: 9.547 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.687e-05/0.6284, allocations: 8 kB / 0.5682 GB, free: 9.539 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.224e-06/0.6284, allocations: 0 / 0.5682 GB, free: 9.539 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/0.6284, allocations: 7.984 kB / 0.5682 GB, free: 9.531 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006031/0.6345, allocations: 2.491 MB / 0.5706 GB, free: 6.93 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.194e-05/0.6345, allocations: 5.562 kB / 0.5706 GB, free: 6.926 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003596/0.6349, allocations: 83.88 kB / 0.5707 GB, free: 6.844 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007081/0.6356, allocations: 204.8 kB / 0.5709 GB, free: 6.641 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.37e-05/0.6357, allocations: 8 kB / 0.5709 GB, free: 6.633 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008602/0.6365, allocations: 0.7123 MB / 0.5716 GB, free: 5.895 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.671e-06/0.6365, allocations: 7.969 kB / 0.5716 GB, free: 5.887 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003246/0.6398, allocations: 1.174 MB / 0.5728 GB, free: 4.652 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009933/0.6408, allocations: 370.8 kB / 0.5731 GB, free: 4.27 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004999/0.6413, allocations: 12.19 kB / 0.5731 GB, free: 4.258 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001367/0.6427, allocations: 103.9 kB / 0.5732 GB, free: 4.156 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001396/0.6429, allocations: 43.84 kB / 0.5733 GB, free: 4.113 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.791e-05/0.643, allocations: 24.92 kB / 0.5733 GB, free: 4.09 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002968/0.6459, allocations: 1.166 MB / 0.5744 GB, free: 2.93 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.646, allocations: 0 / 0.5744 GB, free: 2.93 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002037/0.648, allocations: 415.5 kB / 0.5748 GB, free: 2.523 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * 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 (37): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009822/0.649, allocations: 351.3 kB / 0.5752 GB, free: 2.188 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00246/0.6515, allocations: 0.827 MB / 0.576 GB, free: 1.363 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.182e-06/0.6515, allocations: 1 kB / 0.576 GB, free: 1.363 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007208/0.6522, allocations: 308.3 kB / 0.5763 GB, free: 1.062 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004162/0.6564, allocations: 0.7694 MB / 0.577 GB, free: 324 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005552/0.662, allocations: 2.654 MB / 0.5796 GB, free: 13.59 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001158/0.6631, allocations: 1.163 MB / 0.5807 GB, free: 12.4 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001604/0.6648, allocations: 280.3 kB / 0.581 GB, free: 12.14 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000386/0.6652, allocations: 119.3 kB / 0.5811 GB, free: 12.02 MB / 462.1 MB Notification: Performance of SimCode: time 1.463e-06/0.6652, allocations: 0 / 0.5811 GB, free: 12.02 MB / 462.1 MB Notification: Performance of Templates: time 0.05556/0.7207, allocations: 29.14 MB / 0.6096 GB, free: 15.11 MB / 494.1 MB make -j1 -f Annex60_1.0.0_Annex60.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.makefile Environment - environmentSimulation: (rm -f Annex60_1.0.0_Annex60.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; mkfifo Annex60_1.0.0_Annex60.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; head -c 1048576 < Annex60_1.0.0_Annex60.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe >> ../files/Annex60_1.0.0_Annex60.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.sim & ./Annex60_1.0.0_Annex60.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw -abortSlowSimulation -alarm=480 -lv LOG_STATS > Annex60_1.0.0_Annex60.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe 2>&1) Environment - environmentSimulation: