Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.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.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007761/0.007761, allocations: 106.3 kB / 15.74 MB, free: 6.008 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.001929/0.00193, allocations: 199.2 kB / 16.68 MB, free: 5.93 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.549/1.549, allocations: 205.1 MB / 222.5 MB, free: 12.21 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.001655/0.001655, allocations: 55.92 kB / 326.5 MB, free: 3.312 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1263/0.1279, allocations: 46.62 MB / 373.1 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003894/0.1319, allocations: 2.744 MB / 375.9 MB, free: 1.82 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001382/0.1333, allocations: 0.8652 MB / 376.8 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001466/0.1334, allocations: 4 kB / 376.8 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003037/0.1338, allocations: 83.39 kB / 376.8 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002881/0.1341, allocations: 130.9 kB / 377 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002267/0.1343, allocations: 95.83 kB / 377.1 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005304/0.1348, allocations: 434.4 kB / 377.5 MB, free: 216 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002439/0.1351, allocations: 107.2 kB / 377.6 MB, free: 108 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2607/0.3958, allocations: 156.9 kB / 377.7 MB, free: 9.895 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004284/0.3963, allocations: 176.6 kB / 377.9 MB, free: 9.895 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.723e-05/0.3964, allocations: 35.38 kB / 378 MB, free: 9.895 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.689e-05/0.3965, allocations: 36.44 kB / 378 MB, free: 9.895 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001133/0.3966, allocations: 78.78 kB / 378.1 MB, free: 9.883 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00026/0.3969, allocations: 190.3 kB / 378.3 MB, free: 9.836 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006129/0.3975, allocations: 440.7 kB / 378.7 MB, free: 9.785 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.3975, allocations: 5.016 kB / 378.7 MB, free: 9.781 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.3975, allocations: 1.25 kB / 378.7 MB, free: 9.781 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.945e-06/0.3975, allocations: 1.375 kB / 378.7 MB, free: 9.781 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001163/0.3987, allocations: 0.6737 MB / 379.4 MB, free: 9.285 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.48e-05/0.3988, allocations: 10.56 kB / 379.4 MB, free: 9.285 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001002/0.3989, allocations: 39.19 kB / 379.4 MB, free: 9.27 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004923/0.3994, allocations: 310.4 kB / 379.7 MB, free: 9.035 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.949e-05/0.3995, allocations: 49.42 kB / 379.8 MB, free: 9.004 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.695e-05/0.3995, allocations: 21.19 kB / 379.8 MB, free: 9.004 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005382/0.4001, allocations: 323.5 kB / 380.1 MB, free: 8.875 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.761e-05/0.4001, allocations: 0.5 kB / 380.1 MB, free: 8.875 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.016e-05/0.4001, allocations: 12.64 kB / 380.1 MB, free: 8.875 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.416e-05/0.4002, allocations: 6.281 kB / 380.1 MB, free: 8.875 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004773/0.4006, allocations: 198.6 kB / 380.3 MB, free: 8.875 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001524/0.4022, allocations: 0.7953 MB / 381.1 MB, free: 8.582 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006123/0.4028, allocations: 283.4 kB / 381.4 MB, free: 8.547 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000233/0.403, allocations: 122.2 kB / 381.5 MB, free: 8.539 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.912e-05/0.4031, allocations: 4.562 kB / 381.5 MB, free: 8.539 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.861e-05/0.4031, allocations: 37.17 kB / 381.5 MB, free: 8.5 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 1.833e-06/0.4031, allocations: 1.438 kB / 381.5 MB, free: 8.5 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.001151/0.4043, allocations: 489.1 kB / 382 MB, free: 8.34 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.97e-05/0.4044, allocations: 313.6 kB / 382.3 MB, free: 7.965 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003297/0.4047, allocations: 284.7 kB / 382.6 MB, free: 7.852 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.565e-05/0.4048, allocations: 31.67 kB / 382.6 MB, free: 7.82 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000143/0.4049, allocations: 171.9 kB / 382.8 MB, free: 7.715 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001006/0.405, allocations: 108.8 kB / 382.9 MB, free: 7.645 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001229/0.4052, allocations: 67.84 kB / 383 MB, free: 7.629 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001014/0.4053, allocations: 340.4 kB / 383.3 MB, free: 7.316 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002281/0.4055, allocations: 90.77 kB / 383.4 MB, free: 7.305 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003128/0.4058, allocations: 215.7 kB / 383.6 MB, free: 7.141 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004799/0.4063, allocations: 263.8 kB / 383.9 MB, free: 6.988 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.4063, allocations: 3.938 kB / 383.9 MB, free: 6.984 MB / 318.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006624/0.407, allocations: 367.5 kB / 384.2 MB, free: 6.805 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.289e-05/0.4071, allocations: 31.86 kB / 384.3 MB, free: 6.773 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/0.4071, allocations: 2.406 kB / 384.3 MB, free: 6.773 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000192/0.4073, allocations: 36.42 kB / 384.3 MB, free: 6.758 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001048/0.4083, allocations: 160.1 kB / 384.5 MB, free: 6.754 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003426/0.4118, allocations: 3.225 MB / 387.7 MB, free: 3.762 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004657/0.4123, allocations: 40.77 kB / 387.7 MB, free: 3.738 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.083e-05/0.4123, allocations: 12.31 kB / 387.7 MB, free: 3.734 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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 {(3,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002535/0.4126, allocations: 156.6 kB / 387.9 MB, free: 3.598 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.601e-05/0.4127, allocations: 40.98 kB / 387.9 MB, free: 3.578 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.682e-05/0.4128, allocations: 33.09 kB / 388 MB, free: 3.555 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.4128, allocations: 4.438 kB / 388 MB, free: 3.555 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.4128, allocations: 0 / 388 MB, free: 3.555 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006852/0.4135, allocations: 0.6527 MB / 388.6 MB, free: 2.938 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004959/0.414, allocations: 388.9 kB / 389 MB, free: 2.66 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.414, allocations: 3.75 kB / 389 MB, free: 2.66 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001365/0.4154, allocations: 209.6 kB / 389.2 MB, free: 2.652 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.962e-05/0.4155, allocations: 26.38 kB / 389.2 MB, free: 2.641 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.742e-05/0.4155, allocations: 7.172 kB / 389.2 MB, free: 2.637 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003182/0.4187, allocations: 3.034 MB / 392.3 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.105e-06/0.4187, allocations: 1.828 kB / 392.3 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001217/0.4199, allocations: 0.5208 MB / 392.8 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002593/0.4202, allocations: 137.9 kB / 392.9 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.06e-05/0.4203, allocations: 8.406 kB / 392.9 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002771/0.4206, allocations: 15.52 kB / 393 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001191/0.4207, allocations: 22.94 kB / 393 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.713e-05/0.4207, allocations: 14.5 kB / 393 MB, free: 15.28 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003429/0.4211, allocations: 206.4 kB / 393.2 MB, free: 15.16 MB / 334.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.4211, allocations: 0 / 393.2 MB, free: 15.16 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00062/0.4217, allocations: 103.6 kB / 393.3 MB, free: 15.14 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (openTank1.m,openTank1.H,openTank2.m,openTank2.H) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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 {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002073/0.4219, allocations: 114.5 kB / 393.4 MB, free: 15.04 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001853/0.4238, allocations: 0.5278 MB / 393.9 MB, free: 14.78 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.805e-06/0.4238, allocations: 5.219 kB / 393.9 MB, free: 14.78 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00147/0.4253, allocations: 406.5 kB / 394.3 MB, free: 14.62 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006159/0.4259, allocations: 92.95 kB / 394.4 MB, free: 14.58 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002244/0.4282, allocations: 0.8375 MB / 395.3 MB, free: 14.09 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004039/0.4286, allocations: 0.7773 MB / 396 MB, free: 13.39 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001955/0.4288, allocations: 36.31 kB / 396.1 MB, free: 13.39 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.098e-05/0.4289, allocations: 33.28 kB / 396.1 MB, free: 13.38 MB / 334.1 MB Notification: Performance of SimCode: time 6.81e-07/0.4289, allocations: 0 / 396.1 MB, free: 13.38 MB / 334.1 MB Notification: Performance of Templates: time 0.01467/0.4436, allocations: 6.262 MB / 402.4 MB, free: 11.87 MB / 334.1 MB make -j1 -f Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile (rm -f Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1)