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.001368/0.001368, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001397/0.001397, allocations: 198.6 kB / 16.54 MB, free: 6.672 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.443/1.443, allocations: 205.1 MB / 222.4 MB, free: 4.617 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.002377/0.002377, allocations: 59.92 kB / 278.7 MB, free: 12.37 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2824/0.2848, allocations: 46.64 MB / 325.3 MB, free: 1.848 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003627/0.2885, allocations: 2.744 MB / 328.1 MB, free: 15.66 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001441/0.29, allocations: 0.8728 MB / 328.9 MB, free: 14.95 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001448/0.2902, allocations: 6 kB / 328.9 MB, free: 14.94 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002674/0.2904, allocations: 73.03 kB / 329 MB, free: 14.88 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002743/0.2907, allocations: 132.7 kB / 329.1 MB, free: 14.77 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002162/0.291, allocations: 90.7 kB / 329.2 MB, free: 14.7 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.00048/0.2914, allocations: 433.8 kB / 329.6 MB, free: 14.44 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002049/0.2917, allocations: 99.91 kB / 329.7 MB, free: 14.39 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001928/0.2919, allocations: 158.8 kB / 329.9 MB, free: 14.31 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002558/0.2921, allocations: 181.5 kB / 330.1 MB, free: 14.18 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.653e-05/0.2922, allocations: 34.44 kB / 330.1 MB, free: 14.18 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.468e-05/0.2923, allocations: 39.31 kB / 330.1 MB, free: 14.18 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8e-05/0.2924, allocations: 76.73 kB / 330.2 MB, free: 14.11 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001965/0.2926, allocations: 188.7 kB / 330.4 MB, free: 13.99 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004598/0.293, allocations: 437.4 kB / 330.8 MB, free: 13.68 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.2931, allocations: 1.031 kB / 330.8 MB, free: 13.68 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2931, allocations: 0 / 330.8 MB, free: 13.68 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.763e-06/0.2931, allocations: 0 / 330.8 MB, free: 13.68 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.001096/0.2942, allocations: 0.6803 MB / 331.5 MB, free: 13.07 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.513e-05/0.2942, allocations: 9.562 kB / 331.5 MB, free: 13.07 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.166e-05/0.2943, allocations: 43.78 kB / 331.6 MB, free: 13.05 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003814/0.2947, allocations: 299.3 kB / 331.9 MB, free: 12.76 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.841e-05/0.2948, allocations: 47.5 kB / 331.9 MB, free: 12.72 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.606e-05/0.2949, allocations: 26.47 kB / 331.9 MB, free: 12.71 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005142/0.2954, allocations: 319.8 kB / 332.2 MB, free: 12.46 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.317e-05/0.2954, allocations: 0 / 332.2 MB, free: 12.46 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.166e-05/0.2954, allocations: 14.94 kB / 332.3 MB, free: 12.45 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.2955, allocations: 5.188 kB / 332.3 MB, free: 12.45 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004414/0.2959, allocations: 200.6 kB / 332.5 MB, free: 12.36 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001507/0.2974, allocations: 0.8135 MB / 333.3 MB, free: 11.7 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005664/0.298, allocations: 268.6 kB / 333.5 MB, free: 11.47 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002291/0.2982, allocations: 120.9 kB / 333.7 MB, free: 11.35 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.032e-05/0.2983, allocations: 7.984 kB / 333.7 MB, free: 11.34 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.174e-05/0.2983, allocations: 42.5 kB / 333.7 MB, free: 11.29 MB / 270.1 MB Notification: Performance of pre-optimization done (n=29): time 1.573e-06/0.2983, allocations: 4 kB / 333.7 MB, free: 11.29 MB / 270.1 MB Notification: Performance of matching and sorting (n=29): time 0.001073/0.2994, allocations: 479.2 kB / 334.2 MB, free: 10.79 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001534/0.2996, allocations: 316.4 kB / 334.5 MB, free: 10.41 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002804/0.2999, allocations: 283 kB / 334.8 MB, free: 10.12 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.339e-05/0.2999, allocations: 33.7 kB / 334.8 MB, free: 10.08 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000128/0.3, allocations: 164.8 kB / 335 MB, free: 9.914 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.742e-05/0.3001, allocations: 110.4 kB / 335.1 MB, free: 9.805 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001085/0.3003, allocations: 61.7 kB / 335.1 MB, free: 9.738 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.3004, allocations: 342.8 kB / 335.5 MB, free: 9.395 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002033/0.3006, allocations: 91.95 kB / 335.5 MB, free: 9.305 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003128/0.3009, allocations: 220.3 kB / 335.8 MB, free: 9.047 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004389/0.3014, allocations: 266.7 kB / 336 MB, free: 8.77 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.3014, allocations: 0 / 336 MB, free: 8.77 MB / 270.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006121/0.302, allocations: 364.7 kB / 336.4 MB, free: 8.398 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.792e-05/0.3021, allocations: 33.7 kB / 336.4 MB, free: 8.359 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.3021, allocations: 0 / 336.4 MB, free: 8.359 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001575/0.3022, allocations: 48.92 kB / 336.5 MB, free: 8.309 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009753/0.3032, allocations: 155.8 kB / 336.6 MB, free: 8.156 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003633/0.3069, allocations: 3.236 MB / 339.8 MB, free: 4.645 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003832/0.3073, allocations: 31.91 kB / 339.9 MB, free: 4.613 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.04e-05/0.3073, allocations: 19.94 kB / 339.9 MB, free: 4.594 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.0001936/0.3075, allocations: 153.7 kB / 340 MB, free: 4.434 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.594e-05/0.3076, allocations: 35.62 kB / 340.1 MB, free: 4.398 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.069e-05/0.3077, allocations: 35.08 kB / 340.1 MB, free: 4.363 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.3077, allocations: 4 kB / 340.1 MB, free: 4.359 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.3077, allocations: 0 / 340.1 MB, free: 4.359 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006459/0.3083, allocations: 0.6511 MB / 340.8 MB, free: 3.602 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005158/0.3089, allocations: 393.2 kB / 341.2 MB, free: 3.168 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.3089, allocations: 0 / 341.2 MB, free: 3.168 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001252/0.3101, allocations: 207.7 kB / 341.4 MB, free: 2.965 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.406e-05/0.3102, allocations: 20.86 kB / 341.4 MB, free: 2.941 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.482e-05/0.3103, allocations: 11.98 kB / 341.4 MB, free: 2.93 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003108/0.3134, allocations: 3.037 MB / 344.4 MB, free: 15.61 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.559e-06/0.3134, allocations: 4.125 kB / 344.4 MB, free: 15.61 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00086/0.3143, allocations: 0.5194 MB / 344.9 MB, free: 15.07 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000163/0.3145, allocations: 140.7 kB / 345.1 MB, free: 14.91 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.671e-05/0.3145, allocations: 4 kB / 345.1 MB, free: 14.91 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002585/0.3148, allocations: 23.98 kB / 345.1 MB, free: 14.89 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.809e-05/0.3149, allocations: 24.2 kB / 345.1 MB, free: 14.86 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.869e-05/0.3149, allocations: 8 kB / 345.1 MB, free: 14.86 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001993/0.3151, allocations: 198 kB / 345.3 MB, free: 14.66 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3151, allocations: 0 / 345.3 MB, free: 14.66 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004408/0.3156, allocations: 107.9 kB / 345.4 MB, free: 14.55 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.0001476/0.3157, allocations: 111.2 kB / 345.6 MB, free: 14.43 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001576/0.3173, allocations: 0.5486 MB / 346.1 MB, free: 13.86 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.3173, allocations: 4 kB / 346.1 MB, free: 13.86 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001361/0.3187, allocations: 402.4 kB / 346.5 MB, free: 13.45 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006179/0.3193, allocations: 91.44 kB / 346.6 MB, free: 13.36 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001922/0.3212, allocations: 0.8602 MB / 347.4 MB, free: 12.48 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004817/0.3217, allocations: 0.7801 MB / 348.2 MB, free: 11.67 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001787/0.3219, allocations: 34.95 kB / 348.3 MB, free: 11.64 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.24e-05/0.322, allocations: 27.44 kB / 348.3 MB, free: 11.61 MB / 286.1 MB Notification: Performance of SimCode: time 1.132e-06/0.322, allocations: 0 / 348.3 MB, free: 11.61 MB / 286.1 MB Notification: Performance of Templates: time 0.01156/0.3336, allocations: 6.183 MB / 354.5 MB, free: 5.426 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)