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.007314/0.007314, allocations: 96.3 kB / 15.73 MB, free: 6.055 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.00204/0.00204, allocations: 194.5 kB / 16.67 MB, free: 5.977 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.617/1.617, allocations: 205.1 MB / 222.6 MB, free: 4.531 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.001193/0.001193, allocations: 53.38 kB / 326.5 MB, free: 14.45 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.1221, allocations: 46.62 MB / 373.2 MB, free: 1.344 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004033/0.1262, allocations: 2.745 MB / 375.9 MB, free: 14.58 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002061/0.1283, allocations: 0.8614 MB / 376.8 MB, free: 13.71 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002335/0.1286, allocations: 0 / 376.8 MB, free: 13.71 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000385/0.129, allocations: 79.34 kB / 376.8 MB, free: 13.63 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004222/0.1294, allocations: 138.9 kB / 377 MB, free: 13.5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002711/0.1297, allocations: 91.83 kB / 377.1 MB, free: 13.41 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005192/0.1302, allocations: 438.4 kB / 377.5 MB, free: 12.98 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002289/0.1305, allocations: 107.1 kB / 377.6 MB, free: 12.87 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001836/0.1307, allocations: 163.4 kB / 377.8 MB, free: 12.71 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003054/0.131, allocations: 183.2 kB / 377.9 MB, free: 12.53 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.244e-05/0.131, allocations: 35.94 kB / 378 MB, free: 12.5 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.705e-05/0.1311, allocations: 36 kB / 378 MB, free: 12.46 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.271e-05/0.1312, allocations: 71.75 kB / 378.1 MB, free: 12.39 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001865/0.1314, allocations: 199.1 kB / 378.3 MB, free: 12.2 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000461/0.1319, allocations: 438.2 kB / 378.7 MB, free: 11.77 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.1319, allocations: 0 / 378.7 MB, free: 11.77 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1319, allocations: 0 / 378.7 MB, free: 11.77 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.366e-06/0.1319, allocations: 0 / 378.7 MB, free: 11.77 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.001175/0.1331, allocations: 0.6987 MB / 379.4 MB, free: 11.01 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.1331, allocations: 8.031 kB / 379.4 MB, free: 11 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.196e-05/0.1332, allocations: 44.7 kB / 379.4 MB, free: 10.96 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004767/0.1337, allocations: 299.7 kB / 379.7 MB, free: 10.63 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001034/0.1338, allocations: 50.69 kB / 379.8 MB, free: 10.57 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.148e-05/0.1339, allocations: 20.38 kB / 379.8 MB, free: 10.55 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005171/0.1344, allocations: 329.6 kB / 380.1 MB, free: 10.19 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.668e-05/0.1344, allocations: 3.953 kB / 380.1 MB, free: 10.19 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.19e-05/0.1345, allocations: 8 kB / 380.1 MB, free: 10.18 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.568e-06/0.1345, allocations: 4 kB / 380.1 MB, free: 10.18 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004108/0.1349, allocations: 201.6 kB / 380.3 MB, free: 9.977 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001464/0.1364, allocations: 0.8065 MB / 381.2 MB, free: 9.121 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006396/0.137, allocations: 276 kB / 381.4 MB, free: 8.844 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002292/0.1373, allocations: 112.9 kB / 381.5 MB, free: 8.73 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.412e-05/0.1373, allocations: 7.984 kB / 381.5 MB, free: 8.723 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.123e-05/0.1374, allocations: 38.56 kB / 381.6 MB, free: 8.676 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 1.492e-06/0.1374, allocations: 3.938 kB / 381.6 MB, free: 8.672 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.001063/0.1384, allocations: 491.4 kB / 382.1 MB, free: 8.164 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001628/0.1386, allocations: 312.4 kB / 382.4 MB, free: 7.785 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002975/0.1389, allocations: 287 kB / 382.6 MB, free: 7.496 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.258e-05/0.139, allocations: 33.7 kB / 382.7 MB, free: 7.457 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001277/0.1391, allocations: 168.9 kB / 382.8 MB, free: 7.289 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.515e-05/0.1392, allocations: 115 kB / 383 MB, free: 7.176 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001229/0.1393, allocations: 65.7 kB / 383 MB, free: 7.105 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.1395, allocations: 342.8 kB / 383.4 MB, free: 6.762 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002174/0.1397, allocations: 91.95 kB / 383.4 MB, free: 6.672 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003084/0.14, allocations: 208.2 kB / 383.6 MB, free: 6.426 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004557/0.1405, allocations: 266.7 kB / 383.9 MB, free: 6.148 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1405, allocations: 0 / 383.9 MB, free: 6.148 MB / 318.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006168/0.1411, allocations: 376.9 kB / 384.3 MB, free: 5.766 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.861e-05/0.1412, allocations: 29.7 kB / 384.3 MB, free: 5.73 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.1412, allocations: 0 / 384.3 MB, free: 5.73 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001638/0.1413, allocations: 40.92 kB / 384.3 MB, free: 5.688 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009768/0.1423, allocations: 163.8 kB / 384.5 MB, free: 5.527 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003733/0.1461, allocations: 3.225 MB / 387.7 MB, free: 2.023 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002702/0.1464, allocations: 47.88 kB / 387.8 MB, free: 1.977 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.606e-05/0.1464, allocations: 8 kB / 387.8 MB, free: 1.969 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.0001826/0.1466, allocations: 153.7 kB / 387.9 MB, free: 1.809 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.724e-05/0.1467, allocations: 35.81 kB / 388 MB, free: 1.773 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.441e-05/0.1468, allocations: 39.08 kB / 388 MB, free: 1.734 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.1468, allocations: 0 / 388 MB, free: 1.734 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.1468, allocations: 4 kB / 388 MB, free: 1.73 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000721/0.1475, allocations: 0.655 MB / 388.7 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004363/0.148, allocations: 381.2 kB / 389 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.148, allocations: 0 / 389 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001297/0.1493, allocations: 215.7 kB / 389.2 MB, free: 344 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.016e-05/0.1494, allocations: 16.86 kB / 389.3 MB, free: 324 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.579e-05/0.1494, allocations: 12.08 kB / 389.3 MB, free: 312 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003385/0.1528, allocations: 3.041 MB / 392.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.1528, allocations: 0 / 392.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008243/0.1536, allocations: 0.5275 MB / 392.8 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001499/0.1538, allocations: 137.1 kB / 393 MB, free: 12.28 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.09e-05/0.1539, allocations: 8 kB / 393 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000255/0.1541, allocations: 15.98 kB / 393 MB, free: 12.26 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.675e-05/0.1542, allocations: 23.95 kB / 393 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.03e-05/0.1542, allocations: 16 kB / 393 MB, free: 12.22 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001963/0.1544, allocations: 198 kB / 393.2 MB, free: 12.03 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1544, allocations: 0 / 393.2 MB, free: 12.03 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000401/0.1548, 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.0002018/0.155, allocations: 115.2 kB / 393.5 MB, free: 11.8 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001597/0.1567, allocations: 0.5253 MB / 394 MB, free: 11.25 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.1567, allocations: 0 / 394 MB, free: 11.25 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001359/0.158, allocations: 406.3 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.0005/0.1585, allocations: 96.38 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.00176/0.1603, allocations: 0.8622 MB / 395.3 MB, free: 9.852 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003887/0.1607, allocations: 0.7762 MB / 396.1 MB, free: 9.051 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001475/0.1609, allocations: 42.89 kB / 396.1 MB, free: 9.004 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.932e-05/0.161, allocations: 27.44 kB / 396.2 MB, free: 8.977 MB / 334.1 MB Notification: Performance of SimCode: time 5.31e-07/0.161, allocations: 0 / 396.2 MB, free: 8.977 MB / 334.1 MB Notification: Performance of Templates: time 0.01151/0.1725, allocations: 6.25 MB / 402.4 MB, free: 2.715 MB / 334.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)