Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.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) 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(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001525/0.001532, allocations: 85.77 kB / 16.31 MB, free: 6.457 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.001906/0.001906, allocations: 177.5 kB / 17.21 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.552/1.552, allocations: 205.4 MB / 223.4 MB, free: 5.57 MB / 174.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: Performance of FrontEnd - loaded program: time 0.0004378/0.0004378, allocations: 8 kB / 280.1 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2823/0.2827, allocations: 47.59 MB / 327.7 MB, free: 1.445 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.03237/0.3152, allocations: 16.82 MB / 344.6 MB, free: 2.656 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01603/0.3312, allocations: 5.744 MB / 350.3 MB, free: 12.91 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001227/0.3325, allocations: 27.75 kB / 350.3 MB, free: 12.88 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001112/0.3337, allocations: 274.3 kB / 350.6 MB, free: 12.61 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Examples/AST_BatchPlant.mo:1451:62-1451:67: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/Examples/AST_BatchPlant.mo:1451:48-1451:55: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/Examples/AST_BatchPlant.mo:1465:40-1465:47: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/Examples/AST_BatchPlant.mo:1451:62-1451:67: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/Examples/AST_BatchPlant.mo:1451:48-1451:55: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/Examples/AST_BatchPlant.mo:1465:40-1465:47:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.003372/0.3371, allocations: 1.007 MB / 351.6 MB, free: 11.6 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004056/0.3411, allocations: 1.259 MB / 352.9 MB, free: 10.34 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004291/0.3454, allocations: 2.483 MB / 355.3 MB, free: 7.844 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00107/0.3465, allocations: 394.8 kB / 355.7 MB, free: 7.445 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001727/0.3483, allocations: 0.6578 MB / 356.4 MB, free: 6.785 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001645/0.35, allocations: 0.7046 MB / 357.1 MB, free: 6.078 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002461/0.3502, allocations: 32 kB / 357.1 MB, free: 6.047 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00258/0.3528, allocations: 0.9828 MB / 358.1 MB, free: 5.062 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004227/0.3533, allocations: 231.3 kB / 358.3 MB, free: 4.836 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003599/0.3536, allocations: 161.3 kB / 358.5 MB, free: 4.672 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002092/0.3557, allocations: 1.2 MB / 359.7 MB, free: 3.469 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.3557, allocations: 0 / 359.7 MB, free: 3.469 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.3558, allocations: 0 / 359.7 MB, free: 3.469 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.437e-05/0.3558, allocations: 0 / 359.7 MB, free: 3.469 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002457/0.3583, allocations: 1.036 MB / 360.7 MB, free: 2.383 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.3583, allocations: 8.031 kB / 360.7 MB, free: 2.375 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003436/0.3587, allocations: 87.06 kB / 360.8 MB, free: 2.289 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009649/0.3596, allocations: 0.5287 MB / 361.4 MB, free: 1.719 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.848e-05/0.3597, allocations: 44.92 kB / 361.4 MB, free: 1.676 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.238e-05/0.3598, allocations: 47.94 kB / 361.4 MB, free: 1.629 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001216/0.361, allocations: 0.7333 MB / 362.2 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.105e-05/0.361, allocations: 3.953 kB / 362.2 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.961e-05/0.3611, allocations: 31.98 kB / 362.2 MB, free: 0.832 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.035e-05/0.3612, allocations: 40.97 kB / 362.3 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001117/0.3623, allocations: 0.6909 MB / 362.9 MB, free: 104 kB / 286.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.004604/0.3669, allocations: 3.05 MB / 366 MB, free: 12.83 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008273/0.3678, allocations: 492.5 kB / 366.5 MB, free: 12.34 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003974/0.3682, allocations: 262 kB / 366.7 MB, free: 12.08 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000327/0.3685, allocations: 345.3 kB / 367.1 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.103e-05/0.3686, allocations: 39 kB / 367.1 MB, free: 11.62 MB / 302.1 MB Notification: Performance of pre-optimization done (n=48): time 2.795e-06/0.3686, allocations: 0 / 367.1 MB, free: 11.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=58): time 0.005254/0.3739, allocations: 2.312 MB / 369.4 MB, free: 9.242 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.767e-05/0.374, allocations: 81.67 kB / 369.5 MB, free: 9.145 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007338/0.3747, allocations: 0.6172 MB / 370.1 MB, free: 8.52 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.842e-05/0.3748, allocations: 37.7 kB / 370.1 MB, free: 8.477 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002519/0.375, allocations: 328.4 kB / 370.5 MB, free: 8.152 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002089/0.3752, allocations: 205 kB / 370.7 MB, free: 7.949 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.012e-05/0.3753, allocations: 16 kB / 370.7 MB, free: 7.934 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001663/0.3755, allocations: 382.8 kB / 371.1 MB, free: 7.551 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004911/0.376, allocations: 301.8 kB / 371.4 MB, free: 7.258 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006022/0.3766, allocations: 469.8 kB / 371.8 MB, free: 6.727 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005552/0.3771, allocations: 355.1 kB / 372.2 MB, free: 6.383 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.3771, allocations: 0 / 372.2 MB, free: 6.383 MB / 302.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001577/0.3787, allocations: 0.9575 MB / 373.1 MB, free: 5.414 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000202/0.3789, allocations: 233.4 kB / 373.3 MB, free: 5.117 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.29e-05/0.379, allocations: 4 kB / 373.3 MB, free: 5.113 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002427/0.3814, allocations: 420.3 kB / 373.8 MB, free: 4.699 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000572/0.382, allocations: 155.7 kB / 373.9 MB, free: 4.547 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009012/0.3829, allocations: 0.8332 MB / 374.7 MB, free: 3.688 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005143/0.3834, allocations: 44.05 kB / 374.8 MB, free: 3.645 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.703e-05/0.3835, allocations: 31.98 kB / 374.8 MB, free: 3.613 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.094e-05/0.3835, allocations: 4 kB / 374.8 MB, free: 3.609 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001267/0.3848, allocations: 0.8125 MB / 375.6 MB, free: 2.793 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.3848, allocations: 8 kB / 375.6 MB, free: 2.785 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001763/0.3866, allocations: 288.9 kB / 375.9 MB, free: 2.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005688/0.3872, allocations: 151.8 kB / 376.1 MB, free: 2.352 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006779/0.3879, allocations: 0.7123 MB / 376.8 MB, free: 1.613 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004986/0.3884, allocations: 51.94 kB / 376.8 MB, free: 1.562 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.811e-05/0.3884, allocations: 28 kB / 376.9 MB, free: 1.535 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1]) * 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 (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 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0004477/0.3889, allocations: 328.8 kB / 377.2 MB, free: 1.203 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001256/0.389, allocations: 67.16 kB / 377.3 MB, free: 1.137 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001518/0.3905, allocations: 0.8659 MB / 378.1 MB, free: 260 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.787e-06/0.3906, allocations: 11.92 kB / 378.1 MB, free: 248 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.3906, allocations: 0 / 378.1 MB, free: 248 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/0.3906, allocations: 11.98 kB / 378.1 MB, free: 236 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002705/0.3933, allocations: 1.723 MB / 379.9 MB, free: 14.44 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.147e-06/0.3933, allocations: 0 / 379.9 MB, free: 14.44 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004959/0.3938, allocations: 107.9 kB / 380 MB, free: 14.34 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001448/0.3953, allocations: 352.6 kB / 380.3 MB, free: 13.99 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.7e-05/0.3953, allocations: 16 kB / 380.3 MB, free: 13.97 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008207/0.3962, allocations: 0.81 MB / 381.1 MB, free: 13.14 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.3962, allocations: 3.984 kB / 381.1 MB, free: 13.13 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001843/0.398, allocations: 1.283 MB / 382.4 MB, free: 11.82 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001973/0.3983, allocations: 152.1 kB / 382.6 MB, free: 11.66 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001054/0.3984, allocations: 20.05 kB / 382.6 MB, free: 11.64 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004285/0.3988, allocations: 31.98 kB / 382.6 MB, free: 11.61 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001177/0.3989, allocations: 60.38 kB / 382.7 MB, free: 11.55 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.578e-05/0.399, allocations: 27.98 kB / 382.7 MB, free: 11.52 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005764/0.3996, allocations: 439 kB / 383.1 MB, free: 11.1 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3996, allocations: 4 kB / 383.1 MB, free: 11.09 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001607/0.4012, allocations: 0.5311 MB / 383.7 MB, free: 10.56 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * 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 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.000877/0.4021, allocations: 438.6 kB / 384.1 MB, free: 10.12 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002126/0.4042, allocations: 1.162 MB / 385.3 MB, free: 8.965 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.432e-06/0.4042, allocations: 0 / 385.3 MB, free: 8.965 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006498/0.4049, allocations: 399 kB / 385.7 MB, free: 8.578 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001555/0.4065, allocations: 343 kB / 386 MB, free: 8.242 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002743/0.4092, allocations: 1.855 MB / 387.8 MB, free: 6.352 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000549/0.4098, allocations: 0.9715 MB / 388.8 MB, free: 5.352 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0009454/0.4107, allocations: 282.1 kB / 389.1 MB, free: 5.07 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001713/0.4109, allocations: 63.42 kB / 389.2 MB, free: 5.008 MB / 318.1 MB Notification: Performance of SimCode: time 3.096e-06/0.4109, allocations: 0 / 389.2 MB, free: 5.008 MB / 318.1 MB Notification: Performance of Templates: time 0.03011/0.441, allocations: 18.77 MB / 407.9 MB, free: 2.207 MB / 334.1 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1)