Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Annex60_1.0.0_Annex60.Fluid.HeatExchangers.Examples.WaterHeater_u.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.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Fluid.HeatExchangers.Examples.WaterHeater_u") translateModel(Annex60.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Fluid.HeatExchangers.Examples.WaterHeater_u") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000992/0.000992, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001116/0.001116, allocations: 168.7 kB / 15.95 MB, free: 204 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.934/1.934, allocations: 205.4 MB / 222.1 MB, free: 5.648 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.4459/0.4459, allocations: 55.02 MB / 325.4 MB, free: 0.707 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.0006067/0.0006068, allocations: 16 kB / 396.7 MB, free: 11.7 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5119/0.5125, allocations: 60.71 MB / 457.4 MB, free: 38.38 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Annex60.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.1042/0.6167, allocations: 61.34 MB / 0.5065 GB, free: 14.38 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.05742/0.6742, allocations: 17.86 MB / 0.524 GB, free: 1.918 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007153/0.6814, allocations: 75.06 kB / 0.5241 GB, free: 1.891 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007498/0.689, allocations: 0.8247 MB / 0.5249 GB, free: 1.453 MB / 398.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. Notification: Performance of NFTyping.typeBindings: time 0.0137/0.7027, allocations: 2.098 MB / 0.5269 GB, free: 276 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01761/0.7204, allocations: 2.574 MB / 0.5294 GB, free: 14.94 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01696/0.7374, allocations: 5.916 MB / 0.5352 GB, free: 11.43 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0049/0.7423, allocations: 1.296 MB / 0.5365 GB, free: 10.64 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008586/0.751, allocations: 1.613 MB / 0.538 GB, free: 9.777 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005677/0.7567, allocations: 1.39 MB / 0.5394 GB, free: 8.473 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001027/0.7578, allocations: 79.92 kB / 0.5395 GB, free: 8.395 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01148/0.7693, allocations: 1.548 MB / 0.541 GB, free: 6.844 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002107/0.7715, allocations: 422.2 kB / 0.5414 GB, free: 6.43 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002664/0.7742, allocations: 436.6 kB / 0.5418 GB, free: 5.996 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009037/0.7833, allocations: 2.661 MB / 0.5444 GB, free: 3.328 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.456e-06/0.7833, allocations: 0 / 0.5444 GB, free: 3.328 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.7834, allocations: 0 / 0.5444 GB, free: 3.328 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001284/0.7835, allocations: 4 kB / 0.5444 GB, free: 3.324 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: 308 * Number of variables: 308 Notification: Performance of Generate backend data structure: time 0.009019/0.7925, allocations: 2.324 MB / 0.5467 GB, free: 0.9297 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.841e-05/0.7926, allocations: 8.031 kB / 0.5467 GB, free: 0.9219 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003031/0.7957, allocations: 396.9 kB / 0.5471 GB, free: 0.5312 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007394/0.8031, allocations: 1.706 MB / 0.5487 GB, free: 14.78 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006891/0.8039, allocations: 162.3 kB / 0.5489 GB, free: 14.62 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006693/0.8046, allocations: 135.9 kB / 0.549 GB, free: 14.48 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006021/0.8106, allocations: 1.537 MB / 0.5505 GB, free: 12.83 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.395e-05/0.8107, allocations: 0 / 0.5505 GB, free: 12.83 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000331/0.8111, allocations: 52 kB / 0.5506 GB, free: 12.78 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.461e-05/0.8112, allocations: 36 kB / 0.5506 GB, free: 12.75 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005275/0.8165, allocations: 1.184 MB / 0.5518 GB, free: 11.55 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.01694/0.8335, allocations: 7.78 MB / 0.5594 GB, free: 3.184 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004019/0.8375, allocations: 0.9533 MB / 0.5603 GB, free: 2.223 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00192/0.8395, allocations: 0.491 MB / 0.5608 GB, free: 1.73 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006917/0.8465, allocations: 2.048 MB / 0.5628 GB, free: 15.51 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002257/0.8487, allocations: 0.5705 MB / 0.5633 GB, free: 14.92 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001283/0.8501, allocations: 91.25 kB / 0.5634 GB, free: 14.83 MB / 446.1 MB Notification: Performance of pre-optimization done (n=72): time 7.043e-06/0.8501, allocations: 0 / 0.5634 GB, free: 14.83 MB / 446.1 MB Notification: Performance of matching and sorting (n=78): time 0.01127/0.8614, allocations: 3.111 MB / 0.5664 GB, free: 11.63 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001464/0.8616, allocations: 192.6 kB / 0.5666 GB, free: 11.4 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002967/0.8646, allocations: 1.497 MB / 0.5681 GB, free: 9.906 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001342/0.8647, allocations: 49.69 kB / 0.5681 GB, free: 9.852 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009659/0.8657, allocations: 0.8727 MB / 0.569 GB, free: 8.969 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003268/0.866, allocations: 280 kB / 0.5693 GB, free: 8.691 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.109e-05/0.8661, allocations: 20 kB / 0.5693 GB, free: 8.672 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001847/0.8663, allocations: 353.9 kB / 0.5696 GB, free: 8.32 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001077/0.8674, allocations: 458.3 kB / 0.5701 GB, free: 7.875 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001364/0.8688, allocations: 0.826 MB / 0.5709 GB, free: 6.883 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001273/0.8701, allocations: 0.5629 MB / 0.5714 GB, free: 6.316 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.688e-06/0.8701, allocations: 7.938 kB / 0.5714 GB, free: 6.309 MB / 446.1 MB Notification: Performance of matching and sorting (n=141) (initialization): time 0.003443/0.8735, allocations: 1.502 MB / 0.5729 GB, free: 4.785 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003473/0.8739, allocations: 392.2 kB / 0.5733 GB, free: 4.27 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.844e-05/0.8739, allocations: 8 kB / 0.5733 GB, free: 4.262 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002341/0.8742, allocations: 52.83 kB / 0.5733 GB, free: 4.207 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001188/0.8754, allocations: 287.6 kB / 0.5736 GB, free: 3.926 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001361/0.8768, allocations: 1.421 MB / 0.575 GB, free: 2.375 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001685/0.8785, allocations: 156.8 kB / 0.5751 GB, free: 2.223 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001367/0.8786, allocations: 55.98 kB / 0.5752 GB, free: 2.168 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.516e-05/0.8787, allocations: 4 kB / 0.5752 GB, free: 2.164 MB / 446.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00266/0.8813, allocations: 1.275 MB / 0.5764 GB, free: 0.8789 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.601e-05/0.8814, allocations: 11.95 kB / 0.5764 GB, free: 0.8672 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001491/0.8815, allocations: 53.52 kB / 0.5765 GB, free: 0.8125 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001034/0.8826, allocations: 279.6 kB / 0.5768 GB, free: 0.5391 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001239/0.8838, allocations: 1.422 MB / 0.5781 GB, free: 14.98 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001564/0.8854, allocations: 143.9 kB / 0.5783 GB, free: 14.84 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001249/0.8855, allocations: 55.98 kB / 0.5783 GB, free: 14.79 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conPI.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (135): * Single equations (assignments): 130 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009886/0.8865, allocations: 492.7 kB / 0.5788 GB, free: 14.29 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004286/0.887, allocations: 173.8 kB / 0.579 GB, free: 14.12 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003121/0.8901, allocations: 1.355 MB / 0.5803 GB, free: 12.76 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.698e-05/0.8901, allocations: 12 kB / 0.5803 GB, free: 12.75 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.8901, allocations: 0 / 0.5803 GB, free: 12.75 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002168/0.8923, allocations: 1.036 MB / 0.5813 GB, free: 11.7 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00651/0.8988, allocations: 3.019 MB / 0.5843 GB, free: 8.574 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.488e-06/0.8989, allocations: 4 kB / 0.5843 GB, free: 8.57 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008586/0.8997, allocations: 195.8 kB / 0.5845 GB, free: 8.379 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002359/0.9, allocations: 69.67 kB / 0.5845 GB, free: 8.305 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.086e-05/0.9001, allocations: 27.98 kB / 0.5845 GB, free: 8.277 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001518/0.9016, allocations: 1.969 MB / 0.5865 GB, free: 6.152 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/0.9016, allocations: 3.938 kB / 0.5865 GB, free: 6.148 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004029/0.9057, allocations: 2.001 MB / 0.5884 GB, free: 4.086 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001154/0.9068, allocations: 374.6 kB / 0.5888 GB, free: 3.699 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004792/0.9073, allocations: 24 kB / 0.5888 GB, free: 3.676 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001391/0.9087, allocations: 140 kB / 0.5889 GB, free: 3.539 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001542/0.9089, allocations: 80.44 kB / 0.589 GB, free: 3.461 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.822e-05/0.909, allocations: 39.97 kB / 0.5891 GB, free: 3.422 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002216/0.9112, allocations: 1.07 MB / 0.5901 GB, free: 2.328 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.01e-07/0.9112, allocations: 0 / 0.5901 GB, free: 2.328 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003535/0.9148, allocations: 0.867 MB / 0.591 GB, free: 1.461 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 6 (vol.dynBal.medium.T,mov.filter.x[1],mov.filter.x[2],conPI.I.y,THeaOut.T,hea.vol.dynBal.U) * Number of discrete variables: 3 ($whenCondition1,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.001377/0.9162, allocations: 0.5061 MB / 0.5914 GB, free: 0.9609 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004679/0.9209, allocations: 2.197 MB / 0.5936 GB, free: 14.7 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.253e-06/0.9209, allocations: 0 / 0.5936 GB, free: 14.7 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001472/0.9224, allocations: 0.6907 MB / 0.5943 GB, free: 14 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005112/0.9275, allocations: 0.9263 MB / 0.5952 GB, free: 13.09 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007686/0.9352, allocations: 4.044 MB / 0.5991 GB, free: 8.988 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001517/0.9368, allocations: 1.414 MB / 0.6005 GB, free: 7.539 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002459/0.9392, allocations: 440.5 kB / 0.6009 GB, free: 7.125 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005964/0.9398, allocations: 159.4 kB / 0.6011 GB, free: 6.969 MB / 478.1 MB Notification: Performance of SimCode: time 1.733e-06/0.9399, allocations: 0 / 0.6011 GB, free: 6.969 MB / 478.1 MB Notification: Performance of Templates: time 0.06709/1.007, allocations: 36.18 MB / 0.6364 GB, free: 3.047 MB / 0.4981 GB make -j1 -f Annex60_1.0.0_Annex60.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile Environment - environmentSimulation: (rm -f Annex60_1.0.0_Annex60.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Annex60_1.0.0_Annex60.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Annex60_1.0.0_Annex60.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Annex60_1.0.0_Annex60.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./Annex60_1.0.0_Annex60.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > Annex60_1.0.0_Annex60.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1) Environment - environmentSimulation: