Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Fluid.Examples.Tanks.EmptyTanks") translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.00149/0.00149, allocations: 108.6 kB / 16.51 MB, free: 6.707 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.001464/0.001464, allocations: 188.1 kB / 17.42 MB, free: 6.07 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.473/1.473, allocations: 205.1 MB / 223.3 MB, free: 12.36 MB / 190.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.001076/0.001077, allocations: 55.92 kB / 279.3 MB, free: 3.566 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09147/0.09256, allocations: 46.62 MB / 326 MB, free: 4.887 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.0159/0.1085, allocations: 16.66 MB / 342.6 MB, free: 4.145 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009576/0.1181, allocations: 7.209 MB / 349.8 MB, free: 12.92 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009567/0.1191, allocations: 31.75 kB / 349.9 MB, free: 12.89 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001222/0.1204, allocations: 294.4 kB / 350.1 MB, free: 12.6 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003416/0.1238, allocations: 1.015 MB / 351.2 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004471/0.1283, allocations: 1.504 MB / 352.7 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003581/0.1319, allocations: 3.185 MB / 355.8 MB, free: 6.879 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008418/0.1327, allocations: 0.5373 MB / 356.4 MB, free: 6.328 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00124/0.134, allocations: 0.6926 MB / 357.1 MB, free: 5.633 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001105/0.1351, allocations: 0.8018 MB / 357.9 MB, free: 4.828 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001292/0.1353, allocations: 44 kB / 357.9 MB, free: 4.785 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002301/0.1376, allocations: 1.19 MB / 359.1 MB, free: 3.594 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003383/0.1379, allocations: 271.2 kB / 359.4 MB, free: 3.328 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005126/0.1384, allocations: 433.8 kB / 359.8 MB, free: 2.902 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00244/0.1409, allocations: 1.8 MB / 361.6 MB, free: 1.098 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.1409, allocations: 0 / 361.6 MB, free: 1.098 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.62e-07/0.1409, allocations: 0 / 361.6 MB, free: 1.098 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.01e-05/0.1409, allocations: 0 / 361.6 MB, free: 1.098 MB / 302.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.002841/0.1438, allocations: 1.258 MB / 362.9 MB, free: 15.79 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.035e-05/0.1438, allocations: 12.03 kB / 362.9 MB, free: 15.77 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003397/0.1442, allocations: 95.98 kB / 363 MB, free: 15.68 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009508/0.1451, allocations: 0.597 MB / 363.6 MB, free: 15.04 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001178/0.1453, allocations: 108.7 kB / 363.7 MB, free: 14.92 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001063/0.1454, allocations: 59.98 kB / 363.7 MB, free: 14.86 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001541/0.1469, allocations: 0.8923 MB / 364.6 MB, free: 13.95 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.23e-05/0.147, allocations: 0 / 364.6 MB, free: 13.95 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.072e-05/0.147, allocations: 27.98 kB / 364.6 MB, free: 13.92 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.877e-05/0.1471, allocations: 49.27 kB / 364.7 MB, free: 13.87 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001369/0.1485, allocations: 0.8444 MB / 365.5 MB, free: 13.02 MB / 318.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.005674/0.1542, allocations: 3.45 MB / 369 MB, free: 9.383 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009977/0.1552, allocations: 0.6568 MB / 369.6 MB, free: 8.719 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005434/0.1558, allocations: 374.3 kB / 370 MB, free: 8.352 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002971/0.1588, allocations: 2.039 MB / 372 MB, free: 6.117 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.824e-05/0.1588, allocations: 39.12 kB / 372.1 MB, free: 6.07 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 2.023e-06/0.1588, allocations: 4 kB / 372.1 MB, free: 6.066 MB / 318.1 MB Notification: Performance of matching and sorting (n=66): time 0.006765/0.1656, allocations: 2.828 MB / 374.9 MB, free: 3.168 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.951e-05/0.1657, allocations: 89.66 kB / 375 MB, free: 3.062 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007942/0.1665, allocations: 0.6798 MB / 375.7 MB, free: 2.375 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.19e-05/0.1666, allocations: 37.7 kB / 375.7 MB, free: 2.332 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002323/0.1668, allocations: 340.3 kB / 376.1 MB, free: 1.996 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001867/0.167, allocations: 232.7 kB / 376.3 MB, free: 1.766 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000249/0.1672, allocations: 150.5 kB / 376.4 MB, free: 1.613 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000158/0.1674, allocations: 390.8 kB / 376.8 MB, free: 1.223 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005932/0.168, allocations: 368.6 kB / 377.2 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006893/0.1687, allocations: 0.5152 MB / 377.7 MB, free: 288 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1748/0.3435, allocations: 0.8625 MB / 378.5 MB, free: 54.91 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.743e-06/0.3435, allocations: 1.125 kB / 378.5 MB, free: 54.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002181/0.3457, allocations: 1.165 MB / 379.7 MB, free: 54.85 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.779e-05/0.3457, allocations: 7.75 kB / 379.7 MB, free: 54.85 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.23e-05/0.3458, allocations: 4.781 kB / 379.7 MB, free: 54.85 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001391/0.3472, allocations: 450 kB / 380.2 MB, free: 54.8 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006467/0.3478, allocations: 161.6 kB / 380.3 MB, free: 54.79 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001148/0.349, allocations: 1.016 MB / 381.3 MB, free: 54.09 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006972/0.3497, allocations: 40.05 kB / 381.4 MB, free: 54.08 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.862e-05/0.3498, allocations: 37.75 kB / 381.4 MB, free: 54.07 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008659/0.3507, allocations: 0.5319 MB / 381.9 MB, free: 53.82 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006799/0.3513, allocations: 0.5114 MB / 382.5 MB, free: 53.52 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001215/0.3526, allocations: 0.846 MB / 383.3 MB, free: 53.06 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.809e-06/0.3526, allocations: 1.094 kB / 383.3 MB, free: 53.06 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001975/0.3546, allocations: 1.11 MB / 384.4 MB, free: 52.66 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.3546, allocations: 6.969 kB / 384.4 MB, free: 52.66 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.255e-06/0.3546, allocations: 4.562 kB / 384.4 MB, free: 52.66 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007267/0.3553, allocations: 312 kB / 384.7 MB, free: 52.59 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006546/0.356, allocations: 166.5 kB / 384.9 MB, free: 52.58 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009217/0.3569, allocations: 0.9055 MB / 385.8 MB, free: 51.92 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006942/0.3576, allocations: 48.66 kB / 385.8 MB, free: 51.91 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.826e-05/0.3577, allocations: 35.97 kB / 385.9 MB, free: 51.9 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 (tank2.inFlow[1],tank2.regularFlow[1],tank1.inFlow[1],tank1.regularFlow[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 (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 {(4,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0002797/0.358, allocations: 216.9 kB / 386.1 MB, free: 51.7 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001608/0.3582, allocations: 81.38 kB / 386.2 MB, free: 51.7 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002066/0.3603, allocations: 1.097 MB / 387.3 MB, free: 51.26 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.836e-06/0.3603, allocations: 11.81 kB / 387.3 MB, free: 51.25 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.3603, allocations: 0 / 387.3 MB, free: 51.25 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.216e-05/0.3603, allocations: 5.375 kB / 387.3 MB, free: 51.25 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0031/0.3634, allocations: 2.001 MB / 389.3 MB, free: 50.34 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.3634, allocations: 3.125 kB / 389.3 MB, free: 50.34 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005945/0.364, allocations: 120.7 kB / 389.4 MB, free: 50.33 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001342/0.3654, allocations: 453 kB / 389.9 MB, free: 50.25 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.446e-05/0.3655, allocations: 16.97 kB / 389.9 MB, free: 50.24 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001089/0.3666, allocations: 1.028 MB / 390.9 MB, free: 49.54 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.3666, allocations: 0 / 390.9 MB, free: 49.54 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002323/0.3689, allocations: 1.602 MB / 392.5 MB, free: 48.83 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003715/0.3693, allocations: 242.3 kB / 392.7 MB, free: 48.66 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001273/0.3694, allocations: 14.75 kB / 392.8 MB, free: 48.64 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006077/0.37, allocations: 46.17 kB / 392.8 MB, free: 48.63 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001351/0.3702, allocations: 55.19 kB / 392.8 MB, free: 48.62 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.97e-05/0.3703, allocations: 32.98 kB / 392.9 MB, free: 48.62 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005983/0.3709, allocations: 481.3 kB / 393.4 MB, free: 48.41 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.3709, allocations: 0 / 393.4 MB, free: 48.41 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001544/0.3724, allocations: 0.5789 MB / 393.9 MB, free: 48.37 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 (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 {(4,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009017/0.3733, allocations: 490.4 kB / 394.4 MB, free: 48.24 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002675/0.376, allocations: 1.396 MB / 395.8 MB, free: 47.6 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.376, allocations: 7.906 kB / 395.8 MB, free: 47.6 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008686/0.3769, allocations: 461.4 kB / 396.3 MB, free: 47.39 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001627/0.3786, allocations: 377.4 kB / 396.6 MB, free: 47.21 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003034/0.3816, allocations: 2.004 MB / 398.6 MB, free: 45.74 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003183/0.382, allocations: 0.9913 MB / 399.6 MB, free: 44.71 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0009212/0.3829, allocations: 302.6 kB / 399.9 MB, free: 44.41 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001718/0.3831, allocations: 71.42 kB / 400 MB, free: 44.34 MB / 318.1 MB Notification: Performance of SimCode: time 7.52e-07/0.3831, allocations: 0 / 400 MB, free: 44.34 MB / 318.1 MB Notification: Performance of Templates: time 0.02624/0.4093, allocations: 21.91 MB / 421.9 MB, free: 22.42 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1)