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.001169/0.001169, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001336/0.001336, allocations: 196.4 kB / 16.14 MB, free: 6.707 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.533/1.533, allocations: 205.1 MB / 222 MB, free: 4.996 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.001786/0.001786, allocations: 43.94 kB / 278 MB, free: 13.02 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.376/0.3778, allocations: 46.63 MB / 324.7 MB, free: 1.812 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004511/0.3824, allocations: 2.801 MB / 327.5 MB, free: 15.59 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001599/0.384, allocations: 0.8613 MB / 328.3 MB, free: 14.88 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000171/0.3842, allocations: 7.844 kB / 328.3 MB, free: 14.88 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003111/0.3845, allocations: 57.56 kB / 328.4 MB, free: 14.84 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003334/0.3849, allocations: 119.8 kB / 328.5 MB, free: 14.74 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002277/0.3851, allocations: 83.97 kB / 328.6 MB, free: 14.67 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005048/0.3856, allocations: 408.5 kB / 329 MB, free: 14.43 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002299/0.3859, allocations: 82.77 kB / 329.1 MB, free: 14.39 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001847/0.3861, allocations: 152.9 kB / 329.2 MB, free: 14.31 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002289/0.3863, allocations: 166.7 kB / 329.4 MB, free: 14.2 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.991e-05/0.3864, allocations: 26.66 kB / 329.4 MB, free: 14.2 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.442e-05/0.3865, allocations: 24.5 kB / 329.4 MB, free: 14.2 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.995e-05/0.3865, allocations: 68.94 kB / 329.5 MB, free: 14.14 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002042/0.3868, allocations: 177.5 kB / 329.7 MB, free: 14.03 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004902/0.3873, allocations: 432.5 kB / 330.1 MB, free: 13.71 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.151e-06/0.3873, allocations: 0 / 330.1 MB, free: 13.71 MB / 270.1 MB Notification: Performance of FrontEnd: time 8.42e-07/0.3873, allocations: 0 / 330.1 MB, free: 13.71 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.715e-06/0.3873, allocations: 1.188 kB / 330.1 MB, free: 13.71 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.001362/0.3887, allocations: 0.6801 MB / 330.8 MB, free: 13.11 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.021e-05/0.3887, allocations: 9.688 kB / 330.8 MB, free: 13.11 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001172/0.3888, allocations: 41.91 kB / 330.8 MB, free: 13.09 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004707/0.3893, allocations: 292.2 kB / 331.1 MB, free: 12.81 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001198/0.3894, allocations: 47.16 kB / 331.2 MB, free: 12.77 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.322e-05/0.3895, allocations: 27.17 kB / 331.2 MB, free: 12.76 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006479/0.3902, allocations: 322.8 kB / 331.5 MB, free: 12.5 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.935e-05/0.3902, allocations: 7.938 kB / 331.5 MB, free: 12.5 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.939e-05/0.3903, allocations: 12.88 kB / 331.5 MB, free: 12.49 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.484e-05/0.3903, allocations: 4.844 kB / 331.5 MB, free: 12.49 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004607/0.3907, allocations: 200.3 kB / 331.7 MB, free: 12.4 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001811/0.3926, allocations: 0.809 MB / 332.5 MB, free: 11.74 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007512/0.3933, allocations: 272.7 kB / 332.8 MB, free: 11.6 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002787/0.3936, allocations: 123.4 kB / 332.9 MB, free: 11.53 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.374e-05/0.3937, allocations: 3.844 kB / 332.9 MB, free: 11.53 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.501e-05/0.3937, allocations: 41.95 kB / 333 MB, free: 11.48 MB / 270.1 MB Notification: Performance of pre-optimization done (n=29): time 1.342e-06/0.3937, allocations: 4 kB / 333 MB, free: 11.48 MB / 270.1 MB Notification: Performance of matching and sorting (n=29): time 0.001184/0.3949, allocations: 480.6 kB / 333.4 MB, free: 11.15 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001863/0.3951, allocations: 312.4 kB / 333.7 MB, free: 10.77 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003068/0.3954, allocations: 287 kB / 334 MB, free: 10.48 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.512e-05/0.3955, allocations: 37.7 kB / 334.1 MB, free: 10.43 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001183/0.3956, allocations: 160.8 kB / 334.2 MB, free: 10.27 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001057/0.3957, allocations: 110.4 kB / 334.3 MB, free: 10.16 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001089/0.3958, allocations: 65.7 kB / 334.4 MB, free: 10.09 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.396, allocations: 338.8 kB / 334.7 MB, free: 9.75 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002238/0.3962, allocations: 95.95 kB / 334.8 MB, free: 9.656 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003093/0.3965, allocations: 212.4 kB / 335 MB, free: 9.406 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004561/0.397, allocations: 274.6 kB / 335.3 MB, free: 9.121 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.397, allocations: 0 / 335.3 MB, free: 9.121 MB / 270.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006481/0.3977, allocations: 364.7 kB / 335.6 MB, free: 8.75 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.743e-05/0.3977, allocations: 33.7 kB / 335.7 MB, free: 8.711 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.096e-06/0.3977, allocations: 96 / 335.7 MB, free: 8.711 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001911/0.3979, allocations: 40.84 kB / 335.7 MB, free: 8.668 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001032/0.399, allocations: 159.8 kB / 335.9 MB, free: 8.512 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00356/0.4026, allocations: 2.992 MB / 338.9 MB, free: 5.258 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003183/0.4029, allocations: 35.72 kB / 338.9 MB, free: 5.223 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.533e-05/0.4029, allocations: 12 kB / 338.9 MB, free: 5.211 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 (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.0001797/0.4031, allocations: 153.8 kB / 339.1 MB, free: 5.051 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.752e-05/0.4032, allocations: 39.56 kB / 339.1 MB, free: 5.012 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.214e-05/0.4033, allocations: 39.08 kB / 339.1 MB, free: 4.973 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.4033, allocations: 0 / 339.1 MB, free: 4.973 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.209e-06/0.4033, allocations: 4 kB / 339.1 MB, free: 4.969 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006445/0.4039, allocations: 0.6542 MB / 339.8 MB, free: 4.207 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004428/0.4044, allocations: 389.2 kB / 340.2 MB, free: 3.777 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.4044, allocations: 0 / 340.2 MB, free: 3.777 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001297/0.4057, allocations: 215.7 kB / 340.4 MB, free: 3.566 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.253e-05/0.4058, allocations: 24.78 kB / 340.4 MB, free: 3.539 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.164e-05/0.4058, allocations: 8.094 kB / 340.4 MB, free: 3.531 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00297/0.4088, allocations: 2.828 MB / 343.3 MB, free: 448 kB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.4088, allocations: 0 / 343.3 MB, free: 448 kB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008457/0.4097, allocations: 0.5118 MB / 343.8 MB, free: 15.9 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001612/0.4098, allocations: 136.7 kB / 343.9 MB, free: 15.75 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.827e-05/0.4099, allocations: 8 kB / 343.9 MB, free: 15.74 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002579/0.4102, allocations: 20.05 kB / 343.9 MB, free: 15.72 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.951e-05/0.4103, allocations: 23.97 kB / 343.9 MB, free: 15.7 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.901e-05/0.4103, allocations: 8 kB / 344 MB, free: 15.69 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002176/0.4105, allocations: 205.9 kB / 344.2 MB, free: 15.49 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4105, allocations: 4 kB / 344.2 MB, free: 15.48 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004478/0.411, allocations: 103.8 kB / 344.3 MB, free: 15.38 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 (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.0001525/0.4111, allocations: 111.2 kB / 344.4 MB, free: 15.26 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001674/0.4128, allocations: 0.5214 MB / 344.9 MB, free: 14.71 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.4128, allocations: 4 kB / 344.9 MB, free: 14.71 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001385/0.4142, allocations: 406.8 kB / 345.3 MB, free: 14.3 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006587/0.4149, allocations: 88.59 kB / 345.4 MB, free: 14.21 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002005/0.4169, allocations: 0.9603 MB / 346.3 MB, free: 13.23 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000404/0.4173, allocations: 0.7723 MB / 347.1 MB, free: 12.43 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001897/0.4175, allocations: 38.89 kB / 347.2 MB, free: 12.4 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.61e-05/0.4176, allocations: 27.44 kB / 347.2 MB, free: 12.37 MB / 286.1 MB Notification: Performance of SimCode: time 1.9e-07/0.4176, allocations: 0 / 347.2 MB, free: 12.37 MB / 286.1 MB Notification: Performance of Templates: time 0.01164/0.4293, allocations: 5.764 MB / 352.9 MB, free: 6.605 MB / 286.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)