Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.008885/0.008885, allocations: 98.41 kB / 15.73 MB, free: 6.008 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.002133/0.002133, allocations: 192.2 kB / 16.67 MB, free: 5.938 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.539/1.539, allocations: 205.1 MB / 222.5 MB, free: 4.516 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.001957/0.001957, allocations: 49.84 kB / 326.5 MB, free: 14.44 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.137/0.139, allocations: 46.63 MB / 373.2 MB, free: 1.344 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.006411/0.1454, allocations: 2.753 MB / 375.9 MB, free: 14.57 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002465/0.1479, allocations: 0.8614 MB / 376.8 MB, free: 13.7 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004217/0.1484, allocations: 3.938 kB / 376.8 MB, free: 13.7 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004481/0.1489, allocations: 71.42 kB / 376.8 MB, free: 13.63 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006412/0.1496, allocations: 134.9 kB / 377 MB, free: 13.5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004132/0.15, allocations: 91.83 kB / 377.1 MB, free: 13.41 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009134/0.1509, allocations: 446.3 kB / 377.5 MB, free: 12.97 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000313/0.1513, allocations: 111.1 kB / 377.6 MB, free: 12.86 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003721/0.1516, allocations: 151.5 kB / 377.8 MB, free: 12.71 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004646/0.1521, allocations: 187.2 kB / 377.9 MB, free: 12.53 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001235/0.1523, allocations: 36 kB / 378 MB, free: 12.49 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000141/0.1524, allocations: 32 kB / 378 MB, free: 12.46 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001185/0.1525, allocations: 75.75 kB / 378.1 MB, free: 12.39 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003562/0.1529, allocations: 195.1 kB / 378.3 MB, free: 12.2 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006803/0.1536, allocations: 438.3 kB / 378.7 MB, free: 11.77 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.211e-06/0.1536, allocations: 3.938 kB / 378.7 MB, free: 11.76 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1536, allocations: 0 / 378.7 MB, free: 11.76 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.684e-05/0.1537, allocations: 0 / 378.7 MB, free: 11.76 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.001642/0.1553, allocations: 0.6948 MB / 379.4 MB, free: 11.01 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/0.1554, allocations: 8.031 kB / 379.4 MB, free: 11 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001627/0.1555, allocations: 44.7 kB / 379.4 MB, free: 10.96 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006403/0.1562, allocations: 303.7 kB / 379.7 MB, free: 10.62 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001246/0.1563, allocations: 50.7 kB / 379.8 MB, free: 10.57 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.56e-05/0.1564, allocations: 16.38 kB / 379.8 MB, free: 10.55 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007695/0.1572, allocations: 329.6 kB / 380.1 MB, free: 10.19 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.518e-05/0.1572, allocations: 3.953 kB / 380.1 MB, free: 10.19 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.197e-05/0.1573, allocations: 12 kB / 380.1 MB, free: 10.18 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.057e-05/0.1573, allocations: 7.984 kB / 380.2 MB, free: 10.17 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006208/0.1579, allocations: 205.6 kB / 380.4 MB, free: 9.965 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001977/0.1599, allocations: 0.7988 MB / 381.2 MB, free: 9.117 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000755/0.1607, allocations: 272.1 kB / 381.4 MB, free: 8.844 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002987/0.161, allocations: 120.8 kB / 381.5 MB, free: 8.723 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.441e-05/0.1611, allocations: 4 kB / 381.5 MB, free: 8.719 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.638e-05/0.1611, allocations: 38.66 kB / 381.6 MB, free: 8.672 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 1.884e-06/0.1611, allocations: 3.938 kB / 381.6 MB, free: 8.668 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.001445/0.1626, allocations: 487.3 kB / 382.1 MB, free: 8.164 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000187/0.1628, allocations: 312.4 kB / 382.4 MB, free: 7.785 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004198/0.1632, allocations: 286.9 kB / 382.6 MB, free: 7.496 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.008e-05/0.1633, allocations: 33.7 kB / 382.7 MB, free: 7.457 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001731/0.1635, allocations: 168.9 kB / 382.8 MB, free: 7.289 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001411/0.1636, allocations: 111 kB / 383 MB, free: 7.18 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001785/0.1638, allocations: 73.69 kB / 383 MB, free: 7.102 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001812/0.164, allocations: 342.8 kB / 383.4 MB, free: 6.758 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002886/0.1643, allocations: 87.95 kB / 383.4 MB, free: 6.672 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003998/0.1647, allocations: 212.2 kB / 383.7 MB, free: 6.422 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006228/0.1653, allocations: 266.6 kB / 383.9 MB, free: 6.145 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.1654, allocations: 0 / 383.9 MB, free: 6.145 MB / 318.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0009638/0.1663, allocations: 368.9 kB / 384.3 MB, free: 5.77 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.55e-05/0.1664, allocations: 37.69 kB / 384.3 MB, free: 5.727 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.948e-06/0.1664, allocations: 0 / 384.3 MB, free: 5.727 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002358/0.1667, allocations: 40.78 kB / 384.3 MB, free: 5.684 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001245/0.1679, allocations: 155.9 kB / 384.5 MB, free: 5.531 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004205/0.1722, allocations: 3.229 MB / 387.7 MB, free: 2.023 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002984/0.1725, allocations: 39.88 kB / 387.8 MB, free: 1.984 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.386e-05/0.1725, allocations: 12 kB / 387.8 MB, free: 1.973 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.0002303/0.1728, allocations: 157.7 kB / 387.9 MB, free: 1.809 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.964e-05/0.1729, allocations: 35.81 kB / 388 MB, free: 1.773 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.754e-05/0.1729, allocations: 35.08 kB / 388 MB, free: 1.738 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/0.173, allocations: 4 kB / 388 MB, free: 1.734 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.173, allocations: 0 / 388 MB, free: 1.734 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007616/0.1737, allocations: 0.6549 MB / 388.7 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004488/0.1742, allocations: 393.3 kB / 389 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.1742, allocations: 3.938 kB / 389 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001164/0.1754, allocations: 207.7 kB / 389.3 MB, free: 340 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.159e-05/0.1755, allocations: 24.84 kB / 389.3 MB, free: 312 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.433e-05/0.1755, allocations: 4 kB / 389.3 MB, free: 308 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003043/0.1785, allocations: 3.037 MB / 392.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.083e-06/0.1786, allocations: 0 / 392.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008075/0.1794, allocations: 0.5237 MB / 392.8 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000155/0.1795, allocations: 140.9 kB / 393 MB, free: 12.28 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.792e-05/0.1796, allocations: 4 kB / 393 MB, free: 12.28 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002498/0.1799, allocations: 19.92 kB / 393 MB, free: 12.26 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.715e-05/0.1799, allocations: 23.97 kB / 393 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.914e-05/0.18, allocations: 11.98 kB / 393 MB, free: 12.22 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001972/0.1802, allocations: 206 kB / 393.2 MB, free: 12.02 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1802, allocations: 0 / 393.2 MB, free: 12.02 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000417/0.1806, allocations: 107.8 kB / 393.3 MB, free: 11.92 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.0001358/0.1807, allocations: 107.2 kB / 393.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001501/0.1823, allocations: 0.533 MB / 394 MB, free: 11.25 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/0.1823, allocations: 4 kB / 394 MB, free: 11.24 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00131/0.1836, allocations: 398.4 kB / 394.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005185/0.1841, allocations: 96.44 kB / 394.5 MB, free: 10.74 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0018/0.1859, allocations: 0.8584 MB / 395.3 MB, free: 9.855 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003323/0.1863, allocations: 0.7762 MB / 396.1 MB, free: 9.055 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001785/0.1865, allocations: 34.95 kB / 396.1 MB, free: 9.016 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.539e-05/0.1865, allocations: 31.44 kB / 396.2 MB, free: 8.984 MB / 334.1 MB Notification: Performance of SimCode: time 2.224e-06/0.1866, allocations: 0 / 396.2 MB, free: 8.984 MB / 334.1 MB Notification: Performance of Templates: time 0.01146/0.198, allocations: 6.262 MB / 402.4 MB, free: 2.711 MB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile (rm -f Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1)