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.001623/0.001623, allocations: 112.9 kB / 17.06 MB, free: 5.992 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.001679/0.001679, allocations: 196 kB / 18.01 MB, free: 5.074 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.415/1.415, allocations: 205.1 MB / 223.9 MB, free: 12.23 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.001221/0.001221, allocations: 52.31 kB / 327.8 MB, free: 3.312 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09942/0.1007, allocations: 46.62 MB / 374.5 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003642/0.1043, allocations: 2.756 MB / 377.2 MB, free: 1.816 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001339/0.1057, allocations: 0.8691 MB / 378.1 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001379/0.1059, allocations: 0 / 378.1 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002523/0.1061, allocations: 79.39 kB / 378.2 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002961/0.1064, allocations: 134.9 kB / 378.3 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002022/0.1067, allocations: 91.81 kB / 378.4 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004646/0.1071, allocations: 434.4 kB / 378.8 MB, free: 216 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000207/0.1074, allocations: 99.2 kB / 378.9 MB, free: 116 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2045/0.3118, allocations: 157.8 kB / 379.1 MB, free: 9.934 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000536/0.3124, allocations: 179.5 kB / 379.2 MB, free: 9.934 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000121/0.3126, allocations: 35.47 kB / 379.3 MB, free: 9.934 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.507e-05/0.3127, allocations: 34.38 kB / 379.3 MB, free: 9.934 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001171/0.3128, allocations: 80.23 kB / 379.4 MB, free: 9.922 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003361/0.3131, allocations: 188.1 kB / 379.6 MB, free: 9.875 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009177/0.3141, allocations: 448.2 kB / 380 MB, free: 9.805 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.696e-06/0.3141, allocations: 0.6562 kB / 380 MB, free: 9.805 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3141, allocations: 0 / 380 MB, free: 9.805 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.95e-05/0.3141, allocations: 3.594 kB / 380 MB, free: 9.805 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.001324/0.3155, allocations: 0.6885 MB / 380.7 MB, free: 9.293 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.093e-05/0.3155, allocations: 9.406 kB / 380.7 MB, free: 9.293 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001108/0.3156, allocations: 43.23 kB / 380.8 MB, free: 9.273 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006437/0.3163, allocations: 306.7 kB / 381.1 MB, free: 9.039 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001261/0.3164, allocations: 48.2 kB / 381.1 MB, free: 9.008 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.366e-05/0.3165, allocations: 22.5 kB / 381.1 MB, free: 9.008 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006054/0.3171, allocations: 325.1 kB / 381.4 MB, free: 8.879 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.661e-05/0.3171, allocations: 3.875 kB / 381.4 MB, free: 8.879 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.122e-05/0.3172, allocations: 9.062 kB / 381.5 MB, free: 8.879 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.328e-06/0.3172, allocations: 6.125 kB / 381.5 MB, free: 8.879 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005205/0.3177, allocations: 199.4 kB / 381.7 MB, free: 8.879 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001465/0.3192, allocations: 0.7976 MB / 382.4 MB, free: 8.582 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005828/0.3198, allocations: 280.2 kB / 382.7 MB, free: 8.551 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002456/0.3201, allocations: 119 kB / 382.8 MB, free: 8.543 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.823e-05/0.3201, allocations: 4.781 kB / 382.8 MB, free: 8.543 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.364e-05/0.3201, allocations: 37.94 kB / 382.9 MB, free: 8.504 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 1.513e-06/0.3202, allocations: 2.062 kB / 382.9 MB, free: 8.504 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.00133/0.3215, allocations: 491.8 kB / 383.4 MB, free: 8.344 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000121/0.3216, allocations: 314.5 kB / 383.7 MB, free: 7.969 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004275/0.3221, allocations: 282.5 kB / 383.9 MB, free: 7.855 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.631e-05/0.3221, allocations: 32.67 kB / 384 MB, free: 7.824 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001527/0.3223, allocations: 169.1 kB / 384.1 MB, free: 7.723 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000114/0.3224, allocations: 108.1 kB / 384.2 MB, free: 7.652 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001318/0.3225, allocations: 69.23 kB / 384.3 MB, free: 7.633 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.987e-05/0.3226, allocations: 342.4 kB / 384.7 MB, free: 7.32 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000241/0.3229, allocations: 94.08 kB / 384.7 MB, free: 7.301 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003144/0.3232, allocations: 215.1 kB / 385 MB, free: 7.141 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004511/0.3237, allocations: 257.7 kB / 385.2 MB, free: 6.992 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.3237, allocations: 5.344 kB / 385.2 MB, free: 6.988 MB / 318.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.000593/0.3243, allocations: 371.9 kB / 385.6 MB, free: 6.805 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.401e-05/0.3243, allocations: 35.83 kB / 385.6 MB, free: 6.77 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.593e-06/0.3243, allocations: 1.312 kB / 385.6 MB, free: 6.77 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001832/0.3245, allocations: 41.75 kB / 385.6 MB, free: 6.754 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009516/0.3255, allocations: 159.7 kB / 385.8 MB, free: 6.75 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003097/0.3286, allocations: 3.239 MB / 389 MB, free: 3.75 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003029/0.3289, allocations: 33.09 kB / 389.1 MB, free: 3.734 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.769e-05/0.329, allocations: 12.22 kB / 389.1 MB, free: 3.73 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.0001627/0.3291, allocations: 157.7 kB / 389.2 MB, free: 3.59 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.854e-05/0.3292, allocations: 33.88 kB / 389.3 MB, free: 3.574 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.41e-05/0.3293, allocations: 39.72 kB / 389.3 MB, free: 3.547 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.3293, allocations: 3.406 kB / 389.3 MB, free: 3.547 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.3293, allocations: 1.125 kB / 389.3 MB, free: 3.547 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006683/0.33, allocations: 0.6509 MB / 390 MB, free: 2.934 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006329/0.3306, allocations: 391.7 kB / 390.4 MB, free: 2.652 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.3306, allocations: 0 / 390.4 MB, free: 2.652 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001267/0.3319, allocations: 209.4 kB / 390.6 MB, free: 2.645 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.833e-05/0.332, allocations: 26.8 kB / 390.6 MB, free: 2.633 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.188e-05/0.332, allocations: 7.141 kB / 390.6 MB, free: 2.629 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002662/0.3347, allocations: 3.039 MB / 393.6 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.3347, allocations: 0 / 393.6 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009308/0.3357, allocations: 0.5225 MB / 394.2 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001625/0.3358, allocations: 138.6 kB / 394.3 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.525e-05/0.3359, allocations: 7.375 kB / 394.3 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002533/0.3361, allocations: 16.52 kB / 394.3 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.718e-05/0.3362, allocations: 22.72 kB / 394.3 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.268e-05/0.3363, allocations: 14.14 kB / 394.3 MB, free: 15.27 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002279/0.3365, allocations: 200.6 kB / 394.5 MB, free: 15.15 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3365, allocations: 4 kB / 394.5 MB, free: 15.15 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004787/0.337, allocations: 103.3 kB / 394.6 MB, free: 15.13 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.0001361/0.3371, allocations: 116 kB / 394.8 MB, free: 15.03 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001565/0.3387, allocations: 0.5276 MB / 395.3 MB, free: 14.77 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.451e-06/0.3387, allocations: 1.406 kB / 395.3 MB, free: 14.77 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001406/0.3401, allocations: 406.3 kB / 395.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005635/0.3407, allocations: 87.78 kB / 395.8 MB, free: 14.58 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00184/0.3426, allocations: 0.8687 MB / 396.6 MB, free: 14.07 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004035/0.343, allocations: 0.7765 MB / 397.4 MB, free: 13.37 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001867/0.3432, allocations: 39.8 kB / 397.5 MB, free: 13.36 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.884e-05/0.3433, allocations: 27.64 kB / 397.5 MB, free: 13.35 MB / 334.1 MB Notification: Performance of SimCode: time 1.143e-06/0.3433, allocations: 0 / 397.5 MB, free: 13.35 MB / 334.1 MB Notification: Performance of Templates: time 0.01265/0.3559, allocations: 6.261 MB / 403.7 MB, free: 11.85 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)