Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.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.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks") translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009876/0.0009877, allocations: 94.3 kB / 15.05 MB, free: 1.113 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.001093/0.001093, allocations: 181.3 kB / 15.95 MB, free: 220 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.447/1.447, allocations: 205.4 MB / 222.1 MB, free: 5.891 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.0007965/0.0007966, allocations: 8 kB / 278.9 MB, free: 13.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2705/0.2713, allocations: 47.58 MB / 326.4 MB, free: 1.379 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01661/0.288, allocations: 13.87 MB / 340.3 MB, free: 5.629 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.009377/0.2974, allocations: 6.152 MB / 346.5 MB, free: 15.47 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001055/0.2985, allocations: 27.75 kB / 346.5 MB, free: 15.44 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008745/0.2994, allocations: 294.4 kB / 346.8 MB, free: 15.15 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002389/0.3018, allocations: 0.8802 MB / 347.7 MB, free: 14.27 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004282/0.3061, allocations: 1.372 MB / 349 MB, free: 12.89 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002926/0.309, allocations: 1.214 MB / 350.2 MB, free: 11.68 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001/0.31, allocations: 0.4991 MB / 350.7 MB, free: 11.17 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00116/0.3112, allocations: 0.6152 MB / 351.4 MB, free: 10.55 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008126/0.312, allocations: 0.5099 MB / 351.9 MB, free: 10.04 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001272/0.3122, allocations: 48 kB / 351.9 MB, free: 9.992 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002729/0.3149, allocations: 1.092 MB / 353 MB, free: 8.898 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003624/0.3153, allocations: 247.3 kB / 353.3 MB, free: 8.656 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002977/0.3156, allocations: 177.3 kB / 353.4 MB, free: 8.477 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001958/0.3176, allocations: 1.286 MB / 354.7 MB, free: 7.188 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.374e-06/0.3176, allocations: 0 / 354.7 MB, free: 7.188 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3176, allocations: 0 / 354.7 MB, free: 7.188 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.788e-06/0.3176, allocations: 8 kB / 354.7 MB, free: 7.18 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002603/0.3202, allocations: 1.106 MB / 355.8 MB, free: 6.02 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.3203, allocations: 8.031 kB / 355.8 MB, free: 6.012 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003121/0.3206, allocations: 99.02 kB / 355.9 MB, free: 5.914 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009542/0.3216, allocations: 0.5741 MB / 356.5 MB, free: 5.297 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001172/0.3217, allocations: 104.7 kB / 356.6 MB, free: 5.184 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.997e-05/0.3218, allocations: 51.98 kB / 356.7 MB, free: 5.133 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001404/0.3232, allocations: 0.8923 MB / 357.5 MB, free: 4.215 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.96e-05/0.3232, allocations: 0 / 357.5 MB, free: 4.215 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.588e-05/0.3233, allocations: 27.98 kB / 357.6 MB, free: 4.188 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.282e-05/0.3234, allocations: 45.28 kB / 357.6 MB, free: 4.141 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001328/0.3247, allocations: 0.8482 MB / 358.5 MB, free: 3.293 MB / 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.005622/0.3304, allocations: 3.474 MB / 361.9 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001009/0.3314, allocations: 0.6646 MB / 362.6 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002921/0.3343, allocations: 2.055 MB / 364.7 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.052e-05/0.3344, allocations: 39.12 kB / 364.7 MB, free: 12.66 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 2.505e-06/0.3344, allocations: 0 / 364.7 MB, free: 12.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=66): time 0.006786/0.3412, allocations: 2.856 MB / 367.6 MB, free: 9.734 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.447e-05/0.3412, allocations: 89.61 kB / 367.6 MB, free: 9.629 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000821/0.3421, allocations: 0.6682 MB / 368.3 MB, free: 8.953 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.138e-05/0.3421, allocations: 37.7 kB / 368.3 MB, free: 8.91 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000245/0.3424, allocations: 340.4 kB / 368.7 MB, free: 8.574 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001807/0.3426, allocations: 224.8 kB / 368.9 MB, free: 8.352 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.481e-05/0.3426, allocations: 16 kB / 368.9 MB, free: 8.336 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.3428, allocations: 382.8 kB / 369.3 MB, free: 7.953 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005814/0.3434, allocations: 357.8 kB / 369.6 MB, free: 7.605 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006549/0.3441, allocations: 0.5152 MB / 370.2 MB, free: 7.027 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006223/0.3447, allocations: 403 kB / 370.5 MB, free: 6.637 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.3447, allocations: 4 kB / 370.6 MB, free: 6.633 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001871/0.3466, allocations: 1.145 MB / 371.7 MB, free: 5.477 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005847/0.3472, allocations: 1.662 MB / 373.4 MB, free: 3.684 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.218e-05/0.3472, allocations: 4 kB / 373.4 MB, free: 3.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001289/0.3485, allocations: 448.4 kB / 373.8 MB, free: 3.238 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006745/0.3492, allocations: 159.7 kB / 374 MB, free: 3.082 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001186/0.3504, allocations: 1.028 MB / 375 MB, free: 2.027 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006744/0.3511, allocations: 43.83 kB / 375 MB, free: 1.984 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.607e-05/0.3512, allocations: 35.98 kB / 375.1 MB, free: 1.949 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.058e-05/0.3512, allocations: 4 kB / 375.1 MB, free: 1.945 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001738/0.3529, allocations: 1 MB / 376.1 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.3529, allocations: 7.984 kB / 376.1 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006835/0.3536, allocations: 320.7 kB / 376.4 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006819/0.3543, allocations: 163.8 kB / 376.5 MB, free: 468 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001015/0.3553, allocations: 0.8958 MB / 377.4 MB, free: 15.53 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005799/0.3559, allocations: 43.94 kB / 377.5 MB, free: 15.48 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.72e-05/0.356, allocations: 35.98 kB / 377.5 MB, free: 15.45 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[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 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0004932/0.3565, allocations: 332.8 kB / 377.8 MB, free: 15.11 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001434/0.3567, allocations: 79.02 kB / 377.9 MB, free: 15.04 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001934/0.3586, allocations: 1.099 MB / 379 MB, free: 13.92 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.907e-06/0.3586, allocations: 8 kB / 379 MB, free: 13.91 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/0.3586, allocations: 3.984 kB / 379 MB, free: 13.91 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.218e-06/0.3587, allocations: 4 kB / 379 MB, free: 13.9 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003051/0.3617, allocations: 1.994 MB / 381 MB, free: 11.86 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.3617, allocations: 7.938 kB / 381 MB, free: 11.85 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005499/0.3623, allocations: 115.9 kB / 381.2 MB, free: 11.73 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001206/0.3635, allocations: 452.5 kB / 381.6 MB, free: 11.29 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.462e-05/0.3636, allocations: 23.98 kB / 381.6 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001136/0.3647, allocations: 1.028 MB / 382.6 MB, free: 10.21 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3647, allocations: 0 / 382.6 MB, free: 10.21 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002258/0.367, allocations: 1.591 MB / 384.2 MB, free: 8.598 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004291/0.3675, allocations: 256 kB / 384.5 MB, free: 8.328 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001192/0.3676, allocations: 16 kB / 384.5 MB, free: 8.312 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005666/0.3682, allocations: 51.86 kB / 384.6 MB, free: 8.262 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001363/0.3683, allocations: 52.58 kB / 384.6 MB, free: 8.211 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.53e-05/0.3684, allocations: 27.97 kB / 384.6 MB, free: 8.184 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006056/0.369, allocations: 475 kB / 385.1 MB, free: 7.723 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.369, allocations: 4 kB / 385.1 MB, free: 7.719 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001745/0.3708, allocations: 0.5779 MB / 385.7 MB, free: 7.141 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * 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 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001024/0.3718, allocations: 470.8 kB / 386.1 MB, free: 6.668 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002681/0.3745, allocations: 1.381 MB / 387.5 MB, free: 5.289 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.3745, allocations: 0 / 387.5 MB, free: 5.289 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009665/0.3755, allocations: 463.5 kB / 388 MB, free: 4.84 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001622/0.3771, allocations: 339.3 kB / 388.3 MB, free: 4.512 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003691/0.3808, allocations: 2.032 MB / 390.3 MB, free: 2.453 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006708/0.3815, allocations: 1.011 MB / 391.3 MB, free: 1.414 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001218/0.3827, allocations: 310.5 kB / 391.6 MB, free: 1.105 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001958/0.3829, allocations: 71.42 kB / 391.7 MB, free: 1.035 MB / 318.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3829, allocations: 0 / 391.7 MB, free: 1.035 MB / 318.1 MB Notification: Performance of Templates: time 0.03382/0.4168, allocations: 21.15 MB / 412.9 MB, free: 11.84 MB / 350.1 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) Environment - environmentSimulation: