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.001714/0.001714, allocations: 109.6 kB / 17.06 MB, free: 6.023 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.002369/0.002369, allocations: 191 kB / 18 MB, free: 5.105 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.58/1.58, allocations: 205.1 MB / 223.9 MB, free: 12.27 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.001143/0.001143, allocations: 52.3 kB / 327.8 MB, free: 3.324 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1236, allocations: 46.62 MB / 374.5 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.005489/0.1291, allocations: 2.752 MB / 377.2 MB, free: 1.824 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001864/0.131, allocations: 0.8691 MB / 378.1 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001783/0.1312, allocations: 4 kB / 378.1 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003504/0.1316, allocations: 75.41 kB / 378.2 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004249/0.132, allocations: 138.9 kB / 378.3 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000292/0.1323, allocations: 87.83 kB / 378.4 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006805/0.133, allocations: 442.4 kB / 378.8 MB, free: 216 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002711/0.1333, allocations: 107.2 kB / 378.9 MB, free: 108 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2399/0.3732, allocations: 155.4 kB / 379.1 MB, free: 9.914 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005102/0.3738, allocations: 179.1 kB / 379.2 MB, free: 9.914 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001615/0.3739, allocations: 33.84 kB / 379.3 MB, free: 9.914 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001863/0.3741, allocations: 34.94 kB / 379.3 MB, free: 9.914 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001149/0.3743, allocations: 79.53 kB / 379.4 MB, free: 9.902 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003421/0.3746, allocations: 189.8 kB / 379.6 MB, free: 9.855 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007177/0.3753, allocations: 443.8 kB / 380 MB, free: 9.805 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.3754, allocations: 3.938 kB / 380 MB, free: 9.801 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.664e-06/0.3754, allocations: 4.969 kB / 380 MB, free: 9.801 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.052e-05/0.3754, allocations: 0 / 380 MB, free: 9.801 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.001203/0.3766, allocations: 0.6733 MB / 380.7 MB, free: 9.305 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.053e-05/0.3767, allocations: 12.91 kB / 380.7 MB, free: 9.305 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.668e-05/0.3768, allocations: 38.56 kB / 380.7 MB, free: 9.289 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004778/0.3773, allocations: 308.6 kB / 381 MB, free: 9.055 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001004/0.3774, allocations: 47.55 kB / 381.1 MB, free: 9.023 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.167e-05/0.3774, allocations: 20.5 kB / 381.1 MB, free: 9.023 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005639/0.378, allocations: 323.7 kB / 381.4 MB, free: 8.895 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/0.378, allocations: 0.5 kB / 381.4 MB, free: 8.895 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.622e-05/0.3781, allocations: 10.72 kB / 381.4 MB, free: 8.895 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.458e-05/0.3781, allocations: 8.125 kB / 381.4 MB, free: 8.895 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005135/0.3786, allocations: 205.5 kB / 381.6 MB, free: 8.895 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001674/0.3803, allocations: 0.7928 MB / 382.4 MB, free: 8.602 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006011/0.3809, allocations: 275.4 kB / 382.7 MB, free: 8.57 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002358/0.3812, allocations: 119.3 kB / 382.8 MB, free: 8.562 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.771e-05/0.3812, allocations: 8.062 kB / 382.8 MB, free: 8.562 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.384e-05/0.3813, allocations: 39.97 kB / 382.9 MB, free: 8.523 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 1.442e-06/0.3813, allocations: 0 / 382.9 MB, free: 8.523 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.001172/0.3824, allocations: 490 kB / 383.4 MB, free: 8.367 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001434/0.3826, allocations: 315.2 kB / 383.7 MB, free: 7.992 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003329/0.3829, allocations: 283.9 kB / 383.9 MB, free: 7.879 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.677e-05/0.383, allocations: 32.39 kB / 384 MB, free: 7.848 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001121/0.3831, allocations: 169.5 kB / 384.1 MB, free: 7.746 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.807e-05/0.3832, allocations: 108.2 kB / 384.2 MB, free: 7.676 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001149/0.3833, allocations: 65.97 kB / 384.3 MB, free: 7.66 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.531e-05/0.3834, allocations: 343.8 kB / 384.6 MB, free: 7.348 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002077/0.3836, allocations: 92.72 kB / 384.7 MB, free: 7.34 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003003/0.3839, allocations: 210.7 kB / 384.9 MB, free: 7.18 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004777/0.3844, allocations: 268.5 kB / 385.2 MB, free: 7.023 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.3844, allocations: 3.938 kB / 385.2 MB, free: 7.02 MB / 318.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0007362/0.3852, allocations: 363.3 kB / 385.6 MB, free: 6.844 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.068e-05/0.3853, allocations: 37.08 kB / 385.6 MB, free: 6.809 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.898e-06/0.3853, allocations: 0 / 385.6 MB, free: 6.809 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000215/0.3855, allocations: 37.39 kB / 385.6 MB, free: 6.793 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001063/0.3866, allocations: 163.7 kB / 385.8 MB, free: 6.785 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003523/0.3901, allocations: 3.23 MB / 389 MB, free: 3.793 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000361/0.3905, allocations: 35.02 kB / 389.1 MB, free: 3.773 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.473e-05/0.3905, allocations: 9.547 kB / 389.1 MB, free: 3.773 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.0002021/0.3907, allocations: 156.5 kB / 389.2 MB, free: 3.633 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.76e-05/0.3908, allocations: 34.14 kB / 389.2 MB, free: 3.617 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.962e-05/0.3909, allocations: 41.97 kB / 389.3 MB, free: 3.586 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.942e-06/0.3909, allocations: 3.312 kB / 389.3 MB, free: 3.586 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.3909, allocations: 5.25 kB / 389.3 MB, free: 3.582 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006633/0.3916, allocations: 0.6527 MB / 390 MB, free: 2.969 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006283/0.3922, allocations: 389.9 kB / 390.3 MB, free: 2.691 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.3923, allocations: 0 / 390.3 MB, free: 2.691 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001307/0.3936, allocations: 207.1 kB / 390.5 MB, free: 2.688 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.357e-05/0.3937, allocations: 22.5 kB / 390.6 MB, free: 2.676 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.873e-05/0.3937, allocations: 10.75 kB / 390.6 MB, free: 2.668 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003131/0.3968, allocations: 3.037 MB / 393.6 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.3969, allocations: 1.219 kB / 393.6 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001101/0.398, allocations: 0.5178 MB / 394.1 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002534/0.3982, allocations: 137.6 kB / 394.3 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.403e-05/0.3983, allocations: 7 kB / 394.3 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002652/0.3986, allocations: 20.92 kB / 394.3 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.66e-05/0.3987, allocations: 23.12 kB / 394.3 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.942e-05/0.3987, allocations: 7.016 kB / 394.3 MB, free: 15.32 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002987/0.399, allocations: 203.8 kB / 394.5 MB, free: 15.2 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.399, allocations: 0 / 394.5 MB, free: 15.2 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005452/0.3996, allocations: 103.6 kB / 394.6 MB, free: 15.18 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.0002136/0.3998, allocations: 121.5 kB / 394.7 MB, free: 15.07 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00194/0.4018, allocations: 0.5322 MB / 395.3 MB, free: 14.81 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 9.117e-06/0.4018, allocations: 1 kB / 395.3 MB, free: 14.81 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001697/0.4035, allocations: 398.4 kB / 395.7 MB, free: 14.66 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007273/0.4042, allocations: 96.77 kB / 395.7 MB, free: 14.62 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002891/0.4071, allocations: 0.8418 MB / 396.6 MB, free: 14.13 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006953/0.4079, allocations: 0.7751 MB / 397.4 MB, free: 13.43 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002828/0.4082, allocations: 34.69 kB / 397.4 MB, free: 13.43 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001037/0.4083, allocations: 32.56 kB / 397.4 MB, free: 13.41 MB / 334.1 MB Notification: Performance of SimCode: time 1.613e-06/0.4083, allocations: 4 kB / 397.4 MB, free: 13.41 MB / 334.1 MB Notification: Performance of Templates: time 0.01626/0.4245, allocations: 6.263 MB / 403.7 MB, free: 11.9 MB / 334.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)