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.0009078/0.0009078, allocations: 89.81 kB / 16.65 MB, free: 6.602 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.0009672/0.0009672, allocations: 184.6 kB / 17.56 MB, free: 6.199 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.542/1.542, allocations: 205.4 MB / 223.7 MB, free: 13.08 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.00046/0.00046, allocations: 8 kB / 280.7 MB, free: 3.418 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1142, allocations: 47.58 MB / 328.3 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01782/0.1321, allocations: 16.11 MB / 344.4 MB, free: 3.57 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01107/0.1432, allocations: 7.093 MB / 351.5 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001135/0.1444, allocations: 31.75 kB / 351.5 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009996/0.1454, allocations: 302.3 kB / 351.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002996/0.1484, allocations: 1.011 MB / 352.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004891/0.1533, allocations: 1.504 MB / 354.4 MB, free: 9.613 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003946/0.1573, allocations: 3.173 MB / 357.5 MB, free: 6.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009439/0.1582, allocations: 0.5297 MB / 358.1 MB, free: 5.887 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001354/0.1596, allocations: 0.681 MB / 358.7 MB, free: 5.203 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001164/0.1608, allocations: 0.7979 MB / 359.5 MB, free: 4.402 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000105/0.1609, allocations: 44 kB / 359.6 MB, free: 4.359 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002642/0.1636, allocations: 1.186 MB / 360.8 MB, free: 3.172 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003214/0.1639, allocations: 275.2 kB / 361 MB, free: 2.902 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005019/0.1644, allocations: 459.5 kB / 361.5 MB, free: 2.445 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002261/0.1667, allocations: 1.772 MB / 363.3 MB, free: 0.668 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.1667, allocations: 0 / 363.3 MB, free: 0.668 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.166e-06/0.1667, allocations: 0 / 363.3 MB, free: 0.668 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.127e-05/0.1667, allocations: 0 / 363.3 MB, free: 0.668 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.002589/0.1693, allocations: 1.103 MB / 364.4 MB, free: 15.51 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.477e-05/0.1694, allocations: 8.031 kB / 364.4 MB, free: 15.5 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003039/0.1697, allocations: 99.98 kB / 364.5 MB, free: 15.41 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00108/0.1708, allocations: 0.6008 MB / 365.1 MB, free: 14.76 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001147/0.1709, allocations: 100.7 kB / 365.2 MB, free: 14.65 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001705/0.1711, allocations: 59.92 kB / 365.2 MB, free: 14.59 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001519/0.1726, allocations: 0.8962 MB / 366.1 MB, free: 13.67 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.547e-05/0.1726, allocations: 4 kB / 366.1 MB, free: 13.67 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.983e-05/0.1727, allocations: 23.98 kB / 366.1 MB, free: 13.64 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.575e-05/0.1728, allocations: 61.25 kB / 366.2 MB, free: 13.58 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001362/0.1742, allocations: 0.8443 MB / 367.1 MB, free: 12.74 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.005925/0.1801, allocations: 3.458 MB / 370.5 MB, free: 9.09 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001181/0.1813, allocations: 0.6685 MB / 371.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006334/0.182, allocations: 362.3 kB / 371.5 MB, free: 8.059 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003303/0.1853, allocations: 2.062 MB / 373.6 MB, free: 5.801 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.144e-05/0.1854, allocations: 43.12 kB / 373.6 MB, free: 5.75 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 2.415e-06/0.1854, allocations: 0 / 373.6 MB, free: 5.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=66): time 0.007182/0.1926, allocations: 2.863 MB / 376.5 MB, free: 2.816 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.469e-05/0.1927, allocations: 89.61 kB / 376.6 MB, free: 2.711 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009074/0.1936, allocations: 0.6799 MB / 377.3 MB, free: 2.023 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.866e-05/0.1937, allocations: 41.7 kB / 377.3 MB, free: 1.977 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002673/0.1939, allocations: 328.4 kB / 377.6 MB, free: 1.652 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000221/0.1942, allocations: 240.7 kB / 377.9 MB, free: 1.414 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001121/0.1943, allocations: 73.61 kB / 377.9 MB, free: 1.336 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002617/0.1946, allocations: 386.8 kB / 378.3 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006045/0.1952, allocations: 361.8 kB / 378.7 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007361/0.1959, allocations: 0.5152 MB / 379.2 MB, free: 20 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2303/0.4262, allocations: 0.8595 MB / 380 MB, free: 53.89 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.786e-06/0.4263, allocations: 1.484 kB / 380 MB, free: 53.89 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002643/0.4289, allocations: 1.158 MB / 381.2 MB, free: 53.82 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000138/0.4291, allocations: 217.8 kB / 381.4 MB, free: 53.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.343e-05/0.4291, allocations: 11.3 kB / 381.4 MB, free: 53.59 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001467/0.4306, allocations: 447.5 kB / 381.9 MB, free: 53.58 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006736/0.4313, allocations: 163.8 kB / 382 MB, free: 53.57 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001214/0.4325, allocations: 1.015 MB / 383 MB, free: 53.05 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007353/0.4333, allocations: 47.11 kB / 383.1 MB, free: 53.05 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.689e-05/0.4334, allocations: 34.97 kB / 383.1 MB, free: 53.04 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.159e-05/0.4334, allocations: 2.812 kB / 383.1 MB, free: 53.04 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00189/0.4353, allocations: 1.008 MB / 384.1 MB, free: 52.67 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.4353, allocations: 4.781 kB / 384.1 MB, free: 52.67 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007553/0.4361, allocations: 314.7 kB / 384.4 MB, free: 52.6 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000659/0.4367, allocations: 174.3 kB / 384.6 MB, free: 52.58 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009446/0.4377, allocations: 0.8972 MB / 385.5 MB, free: 51.93 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006615/0.4384, allocations: 44.27 kB / 385.6 MB, free: 51.92 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.198e-05/0.4384, allocations: 32.77 kB / 385.6 MB, free: 51.92 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.000485/0.4389, allocations: 330.6 kB / 385.9 MB, free: 51.66 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001436/0.4391, allocations: 81.83 kB / 386 MB, free: 51.66 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002086/0.4412, allocations: 1.088 MB / 387.1 MB, free: 51.22 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.22e-05/0.4412, allocations: 7.5 kB / 387.1 MB, free: 51.22 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.513e-06/0.4412, allocations: 0 / 387.1 MB, free: 51.22 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.253e-05/0.4412, allocations: 5.953 kB / 387.1 MB, free: 51.22 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003253/0.4445, allocations: 2.001 MB / 389.1 MB, free: 50.31 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.4445, allocations: 0 / 389.1 MB, free: 50.31 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000589/0.4451, allocations: 124.4 kB / 389.2 MB, free: 50.3 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001293/0.4464, allocations: 452.2 kB / 389.7 MB, free: 50.21 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.321e-05/0.4465, allocations: 20.41 kB / 389.7 MB, free: 50.2 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001166/0.4477, allocations: 1.031 MB / 390.7 MB, free: 49.5 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.4477, allocations: 6 kB / 390.7 MB, free: 49.5 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002437/0.4501, allocations: 1.603 MB / 392.3 MB, free: 48.83 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004163/0.4505, allocations: 255.4 kB / 392.6 MB, free: 48.65 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001073/0.4507, allocations: 15.28 kB / 392.6 MB, free: 48.64 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000579/0.4512, allocations: 49.11 kB / 392.6 MB, free: 48.62 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000142/0.4514, allocations: 54.11 kB / 392.7 MB, free: 48.62 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.589e-05/0.4515, allocations: 31.38 kB / 392.7 MB, free: 48.61 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006132/0.4521, allocations: 481.9 kB / 393.2 MB, free: 48.41 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4521, allocations: 0 / 393.2 MB, free: 48.41 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001793/0.4539, allocations: 0.5777 MB / 393.8 MB, free: 48.36 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.001108/0.455, allocations: 484.8 kB / 394.2 MB, free: 48.24 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002808/0.4578, allocations: 1.393 MB / 395.6 MB, free: 47.75 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.053e-06/0.4579, allocations: 0 / 395.6 MB, free: 47.75 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008504/0.4587, allocations: 464.8 kB / 396.1 MB, free: 47.54 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001879/0.4606, allocations: 369.4 kB / 396.4 MB, free: 47.36 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00301/0.4636, allocations: 2.112 MB / 398.5 MB, free: 45.93 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003957/0.464, allocations: 0.9926 MB / 399.5 MB, free: 45.09 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001/0.465, allocations: 302.6 kB / 399.8 MB, free: 44.95 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001759/0.4652, allocations: 71.8 kB / 399.9 MB, free: 44.93 MB / 318.1 MB Notification: Performance of SimCode: time 1.483e-06/0.4652, allocations: 0 / 399.9 MB, free: 44.93 MB / 318.1 MB Notification: Performance of Templates: time 0.02985/0.4951, allocations: 21.73 MB / 421.6 MB, free: 23.2 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)