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.0008399/0.0008398, allocations: 91.28 kB / 15.06 MB, free: 1.078 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.001096/0.001096, allocations: 176.7 kB / 15.95 MB, free: 188 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.577/1.577, allocations: 205.4 MB / 222.1 MB, free: 5.891 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.0004607/0.0004607, allocations: 14.8 kB / 278.9 MB, free: 13.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3077/0.3081, allocations: 47.59 MB / 326.5 MB, free: 1.379 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003006/0.3112, allocations: 2.34 MB / 328.8 MB, free: 15.53 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001434/0.3127, allocations: 0.7527 MB / 329.6 MB, free: 14.91 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001462/0.3128, allocations: 2.781 kB / 329.6 MB, free: 14.91 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000238/0.3131, allocations: 49.95 kB / 329.6 MB, free: 14.87 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003245/0.3134, allocations: 128.9 kB / 329.7 MB, free: 14.76 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002172/0.3136, allocations: 57.38 kB / 329.8 MB, free: 14.71 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004798/0.3141, allocations: 389.7 kB / 330.2 MB, free: 14.48 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001814/0.3143, allocations: 80.91 kB / 330.3 MB, free: 14.44 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001768/0.3145, allocations: 139.8 kB / 330.4 MB, free: 14.37 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003686/0.3149, allocations: 166.9 kB / 330.6 MB, free: 14.26 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.628e-05/0.3149, allocations: 22.03 kB / 330.6 MB, free: 14.26 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.458e-05/0.315, allocations: 21.94 kB / 330.6 MB, free: 14.26 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.449e-05/0.3151, allocations: 57.48 kB / 330.7 MB, free: 14.21 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001035/0.3152, allocations: 98.94 kB / 330.8 MB, free: 14.15 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003845/0.3156, allocations: 316.3 kB / 331.1 MB, free: 13.92 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.3156, allocations: 1.188 kB / 331.1 MB, free: 13.92 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.3156, allocations: 3.938 kB / 331.1 MB, free: 13.91 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.224e-06/0.3156, allocations: 0 / 331.1 MB, free: 13.91 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.001072/0.3167, allocations: 0.6217 MB / 331.7 MB, free: 13.36 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.364e-05/0.3168, allocations: 9 kB / 331.7 MB, free: 13.36 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.992e-05/0.3169, allocations: 38.25 kB / 331.7 MB, free: 13.34 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004004/0.3173, allocations: 297.4 kB / 332 MB, free: 13.04 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001085/0.3174, allocations: 52.98 kB / 332.1 MB, free: 13 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.679e-05/0.3175, allocations: 18.34 kB / 332.1 MB, free: 13 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000621/0.3181, allocations: 320.6 kB / 332.4 MB, free: 12.75 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.673e-05/0.3181, allocations: 0.9375 kB / 332.4 MB, free: 12.75 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.735e-05/0.3182, allocations: 11.12 kB / 332.4 MB, free: 12.74 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.452e-05/0.3182, allocations: 5.375 kB / 332.4 MB, free: 12.74 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004783/0.3187, allocations: 210.5 kB / 332.6 MB, free: 12.64 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001509/0.3202, allocations: 0.8231 MB / 333.5 MB, free: 11.98 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000564/0.3208, allocations: 286.1 kB / 333.7 MB, free: 11.83 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002416/0.321, allocations: 131 kB / 333.9 MB, free: 11.76 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.351e-05/0.3211, allocations: 3 kB / 333.9 MB, free: 11.76 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.402e-05/0.3211, allocations: 38.31 kB / 333.9 MB, free: 11.72 MB / 270.1 MB Notification: Performance of pre-optimization done (n=29): time 1.442e-06/0.3211, allocations: 0 / 333.9 MB, free: 11.72 MB / 270.1 MB Notification: Performance of matching and sorting (n=29): time 0.001062/0.3222, allocations: 499 kB / 334.4 MB, free: 11.36 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001741/0.3224, allocations: 312.4 kB / 334.7 MB, free: 10.98 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003143/0.3227, allocations: 278.9 kB / 335 MB, free: 10.69 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.516e-05/0.3227, allocations: 37.7 kB / 335 MB, free: 10.65 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001401/0.3229, allocations: 164.8 kB / 335.2 MB, free: 10.48 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.377e-05/0.323, allocations: 106.4 kB / 335.3 MB, free: 10.38 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.582e-05/0.323, allocations: 12 kB / 335.3 MB, free: 10.36 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.3232, allocations: 342.8 kB / 335.6 MB, free: 10.02 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001988/0.3234, allocations: 91.97 kB / 335.7 MB, free: 9.93 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000301/0.3237, allocations: 220.3 kB / 335.9 MB, free: 9.672 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002392/0.3239, allocations: 139.1 kB / 336.1 MB, free: 9.531 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3239, allocations: 0 / 336.1 MB, free: 9.531 MB / 270.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006126/0.3246, allocations: 381 kB / 336.4 MB, free: 9.145 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.672e-05/0.3246, allocations: 33.7 kB / 336.5 MB, free: 9.105 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.3246, allocations: 0 / 336.5 MB, free: 9.105 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001614/0.3248, allocations: 40.83 kB / 336.5 MB, free: 9.062 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001043/0.3258, allocations: 199.8 kB / 336.7 MB, free: 8.867 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003522/0.3294, allocations: 3.071 MB / 339.8 MB, free: 5.539 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003164/0.3297, allocations: 43.72 kB / 339.8 MB, free: 5.496 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.072e-05/0.3297, allocations: 15.98 kB / 339.8 MB, free: 5.48 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.0002048/0.33, allocations: 153.8 kB / 340 MB, free: 5.32 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.659e-05/0.33, allocations: 35.72 kB / 340 MB, free: 5.285 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.441e-05/0.3301, allocations: 39.02 kB / 340 MB, free: 5.246 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.3301, allocations: 4 kB / 340.1 MB, free: 5.242 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.3301, allocations: 0 / 340.1 MB, free: 5.242 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007044/0.3308, allocations: 0.662 MB / 340.7 MB, free: 4.473 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004521/0.3313, allocations: 389.2 kB / 341.1 MB, free: 4.043 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.3313, allocations: 4 kB / 341.1 MB, free: 4.039 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001232/0.3326, allocations: 251.7 kB / 341.3 MB, free: 3.793 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.741e-05/0.3326, allocations: 24.84 kB / 341.4 MB, free: 3.766 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.332e-05/0.3327, allocations: 4 kB / 341.4 MB, free: 3.762 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00292/0.3356, allocations: 2.902 MB / 344.3 MB, free: 0.5898 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.606e-06/0.3356, allocations: 3.953 kB / 344.3 MB, free: 0.5859 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007975/0.3364, allocations: 0.5156 MB / 344.8 MB, free: 52 kB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001751/0.3366, allocations: 140.7 kB / 344.9 MB, free: 15.89 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.374e-05/0.3367, allocations: 4 kB / 344.9 MB, free: 15.89 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002463/0.3369, allocations: 27.98 kB / 345 MB, free: 15.86 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.898e-05/0.337, allocations: 19.97 kB / 345 MB, free: 15.84 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.357e-05/0.337, allocations: 19.88 kB / 345 MB, free: 15.82 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002113/0.3372, allocations: 198 kB / 345.2 MB, free: 15.63 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3372, allocations: 0 / 345.2 MB, free: 15.63 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004502/0.3377, allocations: 107.8 kB / 345.3 MB, free: 15.53 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.0001451/0.3379, allocations: 107.2 kB / 345.4 MB, free: 15.41 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001528/0.3394, allocations: 0.5761 MB / 346 MB, free: 14.81 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.3394, allocations: 4 kB / 346 MB, free: 14.8 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001325/0.3407, allocations: 446.9 kB / 346.4 MB, free: 14.36 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005658/0.3413, allocations: 84.39 kB / 346.5 MB, free: 14.27 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00192/0.3433, allocations: 1.044 MB / 347.5 MB, free: 13.21 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003786/0.3436, allocations: 0.7723 MB / 348.3 MB, free: 12.41 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001682/0.3438, allocations: 38.95 kB / 348.4 MB, free: 12.38 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.889e-05/0.3439, allocations: 27.44 kB / 348.4 MB, free: 12.35 MB / 286.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3439, allocations: 0 / 348.4 MB, free: 12.35 MB / 286.1 MB Notification: Performance of Templates: time 0.01031/0.3542, allocations: 5.471 MB / 353.9 MB, free: 6.871 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)