Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.0008336/0.0008337, allocations: 89.39 kB / 16.32 MB, free: 6.449 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.001022/0.001022, allocations: 180.2 kB / 17.21 MB, free: 6.32 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.571/1.571, allocations: 205.4 MB / 223.4 MB, free: 5.543 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.0004967/0.0004968, allocations: 12 kB / 280.1 MB, free: 12.79 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3117/0.3122, allocations: 47.58 MB / 327.7 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003592/0.3159, allocations: 2.344 MB / 330.1 MB, free: 15.56 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001505/0.3174, allocations: 0.7535 MB / 330.8 MB, free: 14.94 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001526/0.3176, allocations: 2.969 kB / 330.8 MB, free: 14.94 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002523/0.3178, allocations: 58.11 kB / 330.9 MB, free: 14.89 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003128/0.3182, allocations: 120.2 kB / 331 MB, free: 14.8 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002157/0.3184, allocations: 65.52 kB / 331.1 MB, free: 14.74 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005398/0.3189, allocations: 385.7 kB / 331.4 MB, free: 14.51 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002438/0.3192, allocations: 92.64 kB / 331.5 MB, free: 14.46 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002727/0.3195, allocations: 136.7 kB / 331.7 MB, free: 14.39 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003159/0.3198, allocations: 165.9 kB / 331.8 MB, free: 14.29 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.089e-05/0.3199, allocations: 26.06 kB / 331.8 MB, free: 14.28 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.771e-05/0.32, allocations: 22.06 kB / 331.9 MB, free: 14.28 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.896e-05/0.3201, allocations: 57.36 kB / 331.9 MB, free: 14.23 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001174/0.3202, allocations: 95.55 kB / 332 MB, free: 14.17 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004081/0.3206, allocations: 320.2 kB / 332.3 MB, free: 13.94 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.774e-06/0.3206, allocations: 3.984 kB / 332.3 MB, free: 13.93 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.3206, allocations: 5.031 kB / 332.3 MB, free: 13.93 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.516e-06/0.3206, allocations: 0 / 332.3 MB, free: 13.93 MB / 270.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.001124/0.3218, allocations: 0.6175 MB / 333 MB, free: 13.38 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.528e-05/0.3218, allocations: 9.5 kB / 333 MB, free: 13.38 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001125/0.322, allocations: 37.66 kB / 333 MB, free: 13.36 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004759/0.3224, allocations: 289.8 kB / 333.3 MB, free: 13.07 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000144/0.3226, allocations: 52.94 kB / 333.3 MB, free: 13.03 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.404e-05/0.3227, allocations: 18.25 kB / 333.4 MB, free: 13.02 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006257/0.3233, allocations: 321.5 kB / 333.7 MB, free: 12.77 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.878e-05/0.3233, allocations: 0 / 333.7 MB, free: 12.77 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.399e-05/0.3234, allocations: 7.062 kB / 333.7 MB, free: 12.77 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.382e-05/0.3234, allocations: 9.281 kB / 333.7 MB, free: 12.77 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005/0.3239, allocations: 211.3 kB / 333.9 MB, free: 12.67 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001545/0.3255, allocations: 0.8157 MB / 334.7 MB, free: 12.01 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007021/0.3262, allocations: 302.2 kB / 335 MB, free: 11.85 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002403/0.3264, allocations: 117.2 kB / 335.1 MB, free: 11.79 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.971e-05/0.3265, allocations: 4.531 kB / 335.1 MB, free: 11.79 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.455e-05/0.3265, allocations: 41.97 kB / 335.2 MB, free: 11.75 MB / 270.1 MB Notification: Performance of pre-optimization done (n=29): time 1.593e-06/0.3265, allocations: 0 / 335.2 MB, free: 11.75 MB / 270.1 MB Notification: Performance of matching and sorting (n=29): time 0.001119/0.3277, allocations: 496.4 kB / 335.6 MB, free: 11.3 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001662/0.3278, allocations: 312.4 kB / 336 MB, free: 10.93 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003174/0.3282, allocations: 286.9 kB / 336.2 MB, free: 10.63 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.707e-05/0.3282, allocations: 33.7 kB / 336.3 MB, free: 10.59 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001432/0.3284, allocations: 168.7 kB / 336.4 MB, free: 10.42 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001093/0.3285, allocations: 110.4 kB / 336.5 MB, free: 10.31 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.833e-05/0.3285, allocations: 4 kB / 336.5 MB, free: 10.31 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001625/0.3287, allocations: 342.8 kB / 336.9 MB, free: 9.965 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000227/0.3289, allocations: 107.8 kB / 337 MB, free: 9.859 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003185/0.3292, allocations: 212.4 kB / 337.2 MB, free: 9.609 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002578/0.3295, allocations: 143 kB / 337.3 MB, free: 9.465 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.3295, allocations: 0 / 337.3 MB, free: 9.465 MB / 270.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006667/0.3302, allocations: 377 kB / 337.7 MB, free: 9.082 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.891e-05/0.3302, allocations: 29.7 kB / 337.7 MB, free: 9.047 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/0.3303, allocations: 4 kB / 337.7 MB, free: 9.043 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001621/0.3304, allocations: 32.84 kB / 337.8 MB, free: 9.008 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001019/0.3315, allocations: 211.8 kB / 338 MB, free: 8.801 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003567/0.335, allocations: 3.059 MB / 341 MB, free: 5.484 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003256/0.3354, allocations: 47.78 kB / 341.1 MB, free: 5.438 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.768e-05/0.3354, allocations: 8 kB / 341.1 MB, free: 5.43 MB / 270.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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 2} Notification: Performance of prepare postOptimizeDAE: time 0.000196/0.3356, allocations: 157.8 kB / 341.2 MB, free: 5.266 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.918e-05/0.3357, allocations: 31.62 kB / 341.3 MB, free: 5.234 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.873e-05/0.3358, allocations: 39.08 kB / 341.3 MB, free: 5.195 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.449e-06/0.3358, allocations: 4 kB / 341.3 MB, free: 5.191 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.985e-06/0.3358, allocations: 0 / 341.3 MB, free: 5.191 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006769/0.3365, allocations: 0.6659 MB / 342 MB, free: 4.418 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004706/0.337, allocations: 389.2 kB / 342.4 MB, free: 3.988 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.337, allocations: 0 / 342.4 MB, free: 3.988 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001261/0.3383, allocations: 255.8 kB / 342.6 MB, free: 3.738 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.072e-05/0.3383, allocations: 20.84 kB / 342.6 MB, free: 3.715 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.701e-05/0.3384, allocations: 8 kB / 342.6 MB, free: 3.707 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00302/0.3414, allocations: 2.898 MB / 345.5 MB, free: 0.5391 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.761e-06/0.3414, allocations: 7.953 kB / 345.5 MB, free: 0.5312 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008545/0.3423, allocations: 0.5155 MB / 346.1 MB, free: 15.99 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001817/0.3425, allocations: 136.6 kB / 346.2 MB, free: 15.84 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.543e-05/0.3426, allocations: 12 kB / 346.2 MB, free: 15.83 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002694/0.3428, allocations: 19.98 kB / 346.2 MB, free: 15.81 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.535e-05/0.3429, allocations: 16.2 kB / 346.2 MB, free: 15.8 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.298e-05/0.3429, allocations: 19.89 kB / 346.3 MB, free: 15.78 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002163/0.3432, allocations: 205.9 kB / 346.5 MB, free: 15.58 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3432, allocations: 0 / 346.5 MB, free: 15.58 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000463/0.3436, allocations: 107.8 kB / 346.6 MB, free: 15.47 MB / 286.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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001538/0.3438, allocations: 107.2 kB / 346.7 MB, free: 15.36 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001652/0.3455, allocations: 0.58 MB / 347.2 MB, free: 14.75 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.3455, allocations: 0 / 347.2 MB, free: 14.75 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001385/0.3469, allocations: 454.8 kB / 347.7 MB, free: 14.29 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000577/0.3475, allocations: 91.39 kB / 347.8 MB, free: 14.21 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002074/0.3495, allocations: 1.025 MB / 348.8 MB, free: 13.16 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003452/0.3499, allocations: 0.7723 MB / 349.6 MB, free: 12.36 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002091/0.3501, allocations: 38.95 kB / 349.6 MB, free: 12.32 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.539e-05/0.3502, allocations: 23.44 kB / 349.6 MB, free: 12.3 MB / 286.1 MB Notification: Performance of SimCode: time 1.072e-06/0.3502, allocations: 4 kB / 349.6 MB, free: 12.3 MB / 286.1 MB Notification: Performance of Templates: time 0.01122/0.3614, allocations: 5.476 MB / 355.1 MB, free: 6.816 MB / 286.1 MB make -j1 -f Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile (rm -f Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1)