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.001241/0.001241, allocations: 113.9 kB / 17.07 MB, free: 6 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.001202/0.001202, allocations: 199 kB / 18 MB, free: 5.086 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.464/1.464, allocations: 205.1 MB / 223.9 MB, free: 12.28 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.001254/0.001254, allocations: 47.94 kB / 327.8 MB, free: 3.316 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1023, 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.004771/0.1071, allocations: 2.756 MB / 377.2 MB, free: 1.82 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002172/0.1093, allocations: 0.8652 MB / 378.1 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004351/0.1098, allocations: 8 kB / 378.1 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004815/0.1103, allocations: 71.41 kB / 378.2 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000608/0.1109, allocations: 134.9 kB / 378.3 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003099/0.1113, allocations: 91.83 kB / 378.4 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006955/0.112, allocations: 442.4 kB / 378.8 MB, free: 216 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002396/0.1122, allocations: 103.2 kB / 378.9 MB, free: 112 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2483/0.3605, allocations: 155.8 kB / 379.1 MB, free: 9.926 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004612/0.361, allocations: 176.2 kB / 379.2 MB, free: 9.926 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001015/0.3611, allocations: 33.91 kB / 379.3 MB, free: 9.926 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.767e-05/0.3612, allocations: 36.38 kB / 379.3 MB, free: 9.926 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001254/0.3613, allocations: 79.39 kB / 379.4 MB, free: 9.914 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003039/0.3616, allocations: 188.7 kB / 379.6 MB, free: 9.867 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008262/0.3625, allocations: 449.5 kB / 380 MB, free: 9.812 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.243e-06/0.3625, allocations: 0 / 380 MB, free: 9.812 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.747e-06/0.3625, allocations: 2.781 kB / 380 MB, free: 9.812 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.189e-05/0.3625, allocations: 0.5625 kB / 380 MB, free: 9.812 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.001296/0.3638, allocations: 0.6758 MB / 380.7 MB, free: 9.316 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.268e-05/0.3639, allocations: 9.125 kB / 380.7 MB, free: 9.316 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001043/0.364, allocations: 39.14 kB / 380.7 MB, free: 9.301 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005453/0.3646, allocations: 308.8 kB / 381 MB, free: 9.066 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.306e-05/0.3647, allocations: 49.28 kB / 381.1 MB, free: 9.035 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.852e-05/0.3647, allocations: 21.88 kB / 381.1 MB, free: 9.035 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006144/0.3653, allocations: 318 kB / 381.4 MB, free: 8.906 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.285e-05/0.3654, allocations: 5.328 kB / 381.4 MB, free: 8.906 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.193e-05/0.3654, allocations: 10.88 kB / 381.4 MB, free: 8.906 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.493e-05/0.3655, allocations: 5.125 kB / 381.4 MB, free: 8.906 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005362/0.366, allocations: 201.8 kB / 381.6 MB, free: 8.906 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001713/0.3677, allocations: 0.7918 MB / 382.4 MB, free: 8.613 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006798/0.3684, allocations: 285.6 kB / 382.7 MB, free: 8.578 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002651/0.3687, allocations: 117.1 kB / 382.8 MB, free: 8.57 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.491e-05/0.3687, allocations: 5.141 kB / 382.8 MB, free: 8.57 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.122e-05/0.3688, allocations: 36.72 kB / 382.9 MB, free: 8.531 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 2.064e-06/0.3688, allocations: 1.281 kB / 382.9 MB, free: 8.531 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.001223/0.37, allocations: 491 kB / 383.3 MB, free: 8.371 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001236/0.3702, allocations: 318.1 kB / 383.7 MB, free: 7.996 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003932/0.3706, allocations: 283.1 kB / 383.9 MB, free: 7.883 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.412e-05/0.3706, allocations: 31.89 kB / 384 MB, free: 7.852 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001406/0.3707, allocations: 168.5 kB / 384.1 MB, free: 7.75 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001048/0.3709, allocations: 107.7 kB / 384.2 MB, free: 7.68 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000135/0.371, allocations: 70.95 kB / 384.3 MB, free: 7.66 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001133/0.3711, allocations: 340.9 kB / 384.6 MB, free: 7.348 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002446/0.3714, allocations: 95.77 kB / 384.7 MB, free: 7.32 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002894/0.3717, allocations: 210.3 kB / 384.9 MB, free: 7.16 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004921/0.3722, allocations: 259.4 kB / 385.2 MB, free: 7.012 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.3722, allocations: 9.375 kB / 385.2 MB, free: 7.004 MB / 318.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006985/0.3729, allocations: 367.7 kB / 385.6 MB, free: 6.824 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.201e-05/0.3729, allocations: 32.69 kB / 385.6 MB, free: 6.793 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.373, allocations: 1.156 kB / 385.6 MB, free: 6.793 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002288/0.3732, allocations: 37.31 kB / 385.6 MB, free: 6.777 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001075/0.3743, allocations: 160.1 kB / 385.8 MB, free: 6.773 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003472/0.3778, allocations: 3.226 MB / 389 MB, free: 3.781 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003372/0.3781, allocations: 37.11 kB / 389 MB, free: 3.762 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.159e-05/0.3782, allocations: 16.28 kB / 389.1 MB, free: 3.754 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.0001944/0.3784, allocations: 152.8 kB / 389.2 MB, free: 3.617 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.452e-05/0.3784, allocations: 37.84 kB / 389.2 MB, free: 3.598 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.131e-05/0.3785, allocations: 33.67 kB / 389.3 MB, free: 3.574 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.3785, allocations: 3.438 kB / 389.3 MB, free: 3.574 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.3786, allocations: 4.5 kB / 389.3 MB, free: 3.57 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006646/0.3792, allocations: 0.6566 MB / 389.9 MB, free: 2.953 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004935/0.3797, allocations: 388.6 kB / 390.3 MB, free: 2.676 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.3797, allocations: 1.062 kB / 390.3 MB, free: 2.676 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001348/0.3811, allocations: 210.1 kB / 390.5 MB, free: 2.668 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.296e-05/0.3812, allocations: 27.59 kB / 390.6 MB, free: 2.656 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.323e-05/0.3812, allocations: 5.281 kB / 390.6 MB, free: 2.652 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002871/0.3841, allocations: 3.036 MB / 393.6 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.3841, allocations: 0.9062 kB / 393.6 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009526/0.3851, allocations: 0.5215 MB / 394.1 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001811/0.3853, allocations: 138.5 kB / 394.3 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.483e-05/0.3853, allocations: 7 kB / 394.3 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000277/0.3856, allocations: 17.02 kB / 394.3 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.23e-05/0.3857, allocations: 21.42 kB / 394.3 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.439e-05/0.3857, allocations: 8.844 kB / 394.3 MB, free: 15.3 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002406/0.386, allocations: 207.7 kB / 394.5 MB, free: 15.18 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.386, allocations: 0 / 394.5 MB, free: 15.18 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000477/0.3865, allocations: 103 kB / 394.6 MB, free: 15.16 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.0001491/0.3866, allocations: 118 kB / 394.7 MB, free: 15.06 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001805/0.3884, allocations: 0.5322 MB / 395.3 MB, free: 14.8 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.222e-06/0.3885, allocations: 1.062 kB / 395.3 MB, free: 14.8 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001477/0.3899, allocations: 402.2 kB / 395.7 MB, free: 14.64 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005581/0.3905, allocations: 93.34 kB / 395.7 MB, free: 14.6 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002131/0.3927, allocations: 0.8399 MB / 396.6 MB, free: 14.11 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004721/0.3931, allocations: 0.7745 MB / 397.4 MB, free: 13.41 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001886/0.3933, allocations: 38.41 kB / 397.4 MB, free: 13.41 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.073e-05/0.3934, allocations: 30.97 kB / 397.4 MB, free: 13.39 MB / 334.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3934, allocations: 0 / 397.4 MB, free: 13.39 MB / 334.1 MB Notification: Performance of Templates: time 0.01358/0.407, allocations: 6.443 MB / 403.9 MB, free: 11.77 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)