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.007569/0.007569, allocations: 103.6 kB / 15.74 MB, free: 6.039 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.001615/0.001615, allocations: 195.8 kB / 16.68 MB, free: 5.953 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.578/1.578, allocations: 205.1 MB / 222.5 MB, free: 4.492 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.00126/0.00126, allocations: 53.23 kB / 326.5 MB, free: 14.52 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.1109, allocations: 46.63 MB / 373.2 MB, free: 1.438 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004232/0.1152, allocations: 2.749 MB / 375.9 MB, free: 14.67 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001925/0.1172, allocations: 0.8653 MB / 376.8 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001609/0.1173, allocations: 3.938 kB / 376.8 MB, free: 13.79 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003058/0.1177, allocations: 71.48 kB / 376.8 MB, free: 13.72 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003347/0.118, allocations: 138.9 kB / 377 MB, free: 13.59 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002889/0.1183, allocations: 83.89 kB / 377.1 MB, free: 13.5 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006295/0.119, allocations: 458.2 kB / 377.5 MB, free: 13.05 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002215/0.1192, allocations: 103.1 kB / 377.6 MB, free: 12.95 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002803/0.1195, allocations: 155.5 kB / 377.8 MB, free: 12.8 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002672/0.1198, allocations: 183.2 kB / 377.9 MB, free: 12.62 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.931e-05/0.1198, allocations: 35.94 kB / 378 MB, free: 12.59 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.625e-05/0.1199, allocations: 36 kB / 378 MB, free: 12.55 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.423e-05/0.12, allocations: 75.75 kB / 378.1 MB, free: 12.48 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002279/0.1202, allocations: 195.1 kB / 378.3 MB, free: 12.29 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005554/0.1208, allocations: 434.6 kB / 378.7 MB, free: 11.86 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.1208, allocations: 0 / 378.7 MB, free: 11.86 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1208, allocations: 0 / 378.7 MB, free: 11.86 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.341e-05/0.1208, allocations: 3.938 kB / 378.7 MB, free: 11.86 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.001231/0.1221, allocations: 0.6873 MB / 379.4 MB, free: 11.11 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.1221, allocations: 8.031 kB / 379.4 MB, free: 11.11 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001129/0.1222, allocations: 40.56 kB / 379.4 MB, free: 11.07 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000596/0.1229, allocations: 307.3 kB / 379.7 MB, free: 10.73 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001003/0.123, allocations: 42.7 kB / 379.8 MB, free: 10.68 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.401e-05/0.123, allocations: 24.38 kB / 379.8 MB, free: 10.66 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005498/0.1236, allocations: 321.6 kB / 380.1 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.605e-05/0.1236, allocations: 0 / 380.1 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.29e-05/0.1237, allocations: 16 kB / 380.1 MB, free: 10.29 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-06/0.1237, allocations: 4 kB / 380.1 MB, free: 10.28 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004624/0.1241, allocations: 201.6 kB / 380.3 MB, free: 10.08 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001519/0.1257, allocations: 0.7986 MB / 381.1 MB, free: 9.234 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005953/0.1263, allocations: 274.9 kB / 381.4 MB, free: 8.957 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000213/0.1265, allocations: 124.8 kB / 381.5 MB, free: 8.832 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.824e-05/0.1266, allocations: 4 kB / 381.5 MB, free: 8.828 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.784e-05/0.1266, allocations: 38.56 kB / 381.6 MB, free: 8.781 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 1.953e-06/0.1266, allocations: 0 / 381.6 MB, free: 8.781 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.00111/0.1277, allocations: 491.2 kB / 382 MB, free: 8.273 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000214/0.1279, allocations: 316.4 kB / 382.4 MB, free: 7.891 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000338/0.1283, allocations: 279 kB / 382.6 MB, free: 7.609 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.993e-05/0.1284, allocations: 37.7 kB / 382.7 MB, free: 7.566 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001605/0.1285, allocations: 172.6 kB / 382.8 MB, free: 7.395 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001118/0.1287, allocations: 106.4 kB / 382.9 MB, free: 7.289 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001324/0.1288, allocations: 73.69 kB / 383 MB, free: 7.211 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0003201/0.1291, allocations: 342.8 kB / 383.3 MB, free: 6.867 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002416/0.1294, allocations: 91.95 kB / 383.4 MB, free: 6.777 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003531/0.1297, allocations: 212.2 kB / 383.6 MB, free: 6.527 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004961/0.1302, allocations: 262.6 kB / 383.9 MB, free: 6.254 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.1303, allocations: 0 / 383.9 MB, free: 6.254 MB / 318.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006992/0.131, allocations: 368.8 kB / 384.3 MB, free: 5.879 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.249e-05/0.131, allocations: 33.7 kB / 384.3 MB, free: 5.84 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.131, allocations: 0 / 384.3 MB, free: 5.84 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001883/0.1312, allocations: 36.84 kB / 384.3 MB, free: 5.801 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009298/0.1322, allocations: 159.9 kB / 384.5 MB, free: 5.645 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004523/0.1367, allocations: 3.225 MB / 387.7 MB, free: 2.141 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000365/0.1371, allocations: 31.78 kB / 387.7 MB, free: 2.109 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.007e-05/0.1371, allocations: 12 kB / 387.7 MB, free: 2.098 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.0002701/0.1374, allocations: 161.6 kB / 387.9 MB, free: 1.93 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.726e-05/0.1375, allocations: 35.62 kB / 387.9 MB, free: 1.895 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.835e-05/0.1376, allocations: 43.25 kB / 388 MB, free: 1.852 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/0.1376, allocations: 7.938 kB / 388 MB, free: 1.844 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.846e-06/0.1376, allocations: 0 / 388 MB, free: 1.844 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008832/0.1385, allocations: 0.651 MB / 388.6 MB, free: 1.086 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005392/0.139, allocations: 389.2 kB / 389 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.1391, allocations: 0 / 389 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001206/0.1403, allocations: 207.8 kB / 389.2 MB, free: 464 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.036e-05/0.1404, allocations: 24.84 kB / 389.2 MB, free: 436 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.643e-05/0.1404, allocations: 8 kB / 389.3 MB, free: 428 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003287/0.1437, allocations: 3.041 MB / 392.3 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.1437, allocations: 0 / 392.3 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009088/0.1446, allocations: 0.5195 MB / 392.8 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002037/0.1448, allocations: 136.7 kB / 393 MB, free: 12.4 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.86e-05/0.1449, allocations: 8 kB / 393 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002766/0.1452, allocations: 19.92 kB / 393 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.969e-05/0.1453, allocations: 23.95 kB / 393 MB, free: 12.35 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.922e-05/0.1453, allocations: 8 kB / 393 MB, free: 12.34 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002555/0.1456, allocations: 198 kB / 393.2 MB, free: 12.15 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1456, allocations: 0 / 393.2 MB, free: 12.15 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005093/0.1461, allocations: 111.8 kB / 393.3 MB, free: 12.04 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.0001673/0.1463, allocations: 115.2 kB / 393.4 MB, free: 11.92 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001648/0.1479, allocations: 0.5253 MB / 393.9 MB, free: 11.37 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.578e-06/0.1479, allocations: 0 / 393.9 MB, free: 11.37 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001356/0.1493, allocations: 406.2 kB / 394.3 MB, free: 10.96 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005408/0.1499, allocations: 88.44 kB / 394.4 MB, free: 10.87 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001776/0.1516, allocations: 0.8515 MB / 395.3 MB, free: 9.992 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003467/0.152, allocations: 0.7762 MB / 396.1 MB, free: 9.191 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001649/0.1522, allocations: 34.95 kB / 396.1 MB, free: 9.152 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.962e-05/0.1523, allocations: 31.44 kB / 396.1 MB, free: 9.121 MB / 334.1 MB Notification: Performance of SimCode: time 1.673e-06/0.1523, allocations: 0 / 396.1 MB, free: 9.121 MB / 334.1 MB Notification: Performance of Templates: time 0.01162/0.1639, allocations: 6.258 MB / 402.4 MB, free: 2.852 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)