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.005759/0.005759, allocations: 103.2 kB / 15.73 MB, free: 5.957 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.001167/0.001167, allocations: 187.4 kB / 16.67 MB, free: 5.887 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.577/1.577, allocations: 205.1 MB / 222.5 MB, free: 4.504 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.001202/0.001202, allocations: 51.95 kB / 326.5 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.115, allocations: 46.62 MB / 373.2 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004253/0.1193, allocations: 2.753 MB / 375.9 MB, free: 14.56 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001569/0.1209, allocations: 0.8614 MB / 376.8 MB, free: 13.69 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000144/0.1211, allocations: 3.938 kB / 376.8 MB, free: 13.68 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003326/0.1214, allocations: 71.42 kB / 376.8 MB, free: 13.61 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003376/0.1218, allocations: 146.9 kB / 377 MB, free: 13.47 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002352/0.122, allocations: 83.88 kB / 377.1 MB, free: 13.39 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005385/0.1226, allocations: 438.3 kB / 377.5 MB, free: 12.96 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000229/0.1228, allocations: 115.1 kB / 377.6 MB, free: 12.84 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000171/0.123, allocations: 155.5 kB / 377.8 MB, free: 12.69 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002573/0.1232, allocations: 187.2 kB / 377.9 MB, free: 12.51 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.757e-05/0.1233, allocations: 32 kB / 378 MB, free: 12.48 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.345e-05/0.1234, allocations: 36 kB / 378 MB, free: 12.44 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.894e-05/0.1235, allocations: 71.75 kB / 378.1 MB, free: 12.37 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002086/0.1237, allocations: 195.1 kB / 378.3 MB, free: 12.18 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004869/0.1242, allocations: 434.6 kB / 378.7 MB, free: 11.75 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.1242, allocations: 0 / 378.7 MB, free: 11.75 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1242, allocations: 0 / 378.7 MB, free: 11.75 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.525e-05/0.1242, allocations: 4 kB / 378.7 MB, free: 11.75 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.001304/0.1255, allocations: 0.6834 MB / 379.4 MB, free: 11.01 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.1256, allocations: 11.97 kB / 379.4 MB, free: 11 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.923e-05/0.1257, allocations: 40.56 kB / 379.4 MB, free: 10.96 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005214/0.1262, allocations: 311.3 kB / 379.7 MB, free: 10.62 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001193/0.1263, allocations: 50.69 kB / 379.8 MB, free: 10.56 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.596e-05/0.1264, allocations: 24.38 kB / 379.8 MB, free: 10.54 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005483/0.127, allocations: 317.6 kB / 380.1 MB, free: 10.19 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.485e-05/0.127, allocations: 0 / 380.1 MB, free: 10.19 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.225e-05/0.127, allocations: 11.98 kB / 380.1 MB, free: 10.18 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.107e-06/0.127, allocations: 4 kB / 380.1 MB, free: 10.17 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004267/0.1275, allocations: 205.6 kB / 380.3 MB, free: 9.969 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001405/0.1289, allocations: 0.7948 MB / 381.1 MB, free: 9.125 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005682/0.1295, allocations: 276.1 kB / 381.4 MB, free: 8.848 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002172/0.1297, allocations: 112.8 kB / 381.5 MB, free: 8.734 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.49e-05/0.1297, allocations: 4 kB / 381.5 MB, free: 8.73 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.696e-05/0.1298, allocations: 38.56 kB / 381.6 MB, free: 8.684 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 3.697e-06/0.1298, allocations: 0 / 381.6 MB, free: 8.684 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.001141/0.131, allocations: 495.1 kB / 382 MB, free: 8.172 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001686/0.1311, allocations: 312.4 kB / 382.3 MB, free: 7.793 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003296/0.1315, allocations: 283 kB / 382.6 MB, free: 7.508 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.806e-05/0.1315, allocations: 37.7 kB / 382.7 MB, free: 7.465 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001552/0.1317, allocations: 172.6 kB / 382.8 MB, free: 7.293 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001002/0.1318, allocations: 110.4 kB / 382.9 MB, free: 7.184 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001141/0.1319, allocations: 69.7 kB / 383 MB, free: 7.109 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001643/0.1321, allocations: 338.8 kB / 383.3 MB, free: 6.77 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002111/0.1323, allocations: 95.95 kB / 383.4 MB, free: 6.676 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003145/0.1326, allocations: 204.2 kB / 383.6 MB, free: 6.434 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004818/0.1331, allocations: 270.6 kB / 383.9 MB, free: 6.152 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.1331, allocations: 0 / 383.9 MB, free: 6.152 MB / 318.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006281/0.1338, allocations: 364.8 kB / 384.2 MB, free: 5.781 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.538e-05/0.1338, allocations: 29.7 kB / 384.3 MB, free: 5.746 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.1338, allocations: 3.984 kB / 384.3 MB, free: 5.742 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001796/0.134, allocations: 40.94 kB / 384.3 MB, free: 5.699 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001/0.135, allocations: 163.8 kB / 384.5 MB, free: 5.539 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003822/0.1389, allocations: 3.224 MB / 387.7 MB, free: 2.035 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002837/0.1392, allocations: 39.78 kB / 387.7 MB, free: 1.996 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.51e-05/0.1392, allocations: 8.188 kB / 387.7 MB, free: 1.988 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.0001985/0.1394, allocations: 157.7 kB / 387.9 MB, free: 1.824 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.03e-05/0.1395, allocations: 35.62 kB / 387.9 MB, free: 1.789 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.351e-05/0.1396, allocations: 39.08 kB / 388 MB, free: 1.75 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.1396, allocations: 4 kB / 388 MB, free: 1.746 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.86e-06/0.1396, allocations: 7.984 kB / 388 MB, free: 1.738 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007417/0.1403, allocations: 0.6549 MB / 388.6 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004524/0.1408, allocations: 381.3 kB / 389 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.1408, allocations: 7.922 kB / 389 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001255/0.1421, allocations: 207.8 kB / 389.2 MB, free: 352 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.981e-05/0.1422, allocations: 24.78 kB / 389.2 MB, free: 324 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.334e-05/0.1422, allocations: 8 kB / 389.3 MB, free: 316 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00327/0.1455, allocations: 3.033 MB / 392.3 MB, free: 12.99 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.1455, allocations: 0 / 392.3 MB, free: 12.99 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008635/0.1464, allocations: 0.5196 MB / 392.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001929/0.1466, allocations: 140.6 kB / 392.9 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.004e-05/0.1466, allocations: 8 kB / 393 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002607/0.1469, allocations: 15.98 kB / 393 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000106/0.147, allocations: 23.97 kB / 393 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.786e-05/0.147, allocations: 19.98 kB / 393 MB, free: 12.23 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002123/0.1472, allocations: 198 kB / 393.2 MB, free: 12.04 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1473, allocations: 0 / 393.2 MB, free: 12.04 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004154/0.1477, allocations: 111.8 kB / 393.3 MB, free: 11.93 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.0001418/0.1478, allocations: 107.2 kB / 393.4 MB, free: 11.82 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001607/0.1494, allocations: 0.5252 MB / 393.9 MB, free: 11.27 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.1495, allocations: 8.188 kB / 394 MB, free: 11.26 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001447/0.1509, allocations: 402.2 kB / 394.3 MB, free: 10.85 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005364/0.1515, allocations: 92.67 kB / 394.4 MB, free: 10.76 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001783/0.1533, allocations: 0.8514 MB / 395.3 MB, free: 9.879 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003504/0.1536, allocations: 0.7723 MB / 396.1 MB, free: 9.082 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000168/0.1538, allocations: 38.95 kB / 396.1 MB, free: 9.039 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.297e-05/0.1539, allocations: 35.31 kB / 396.1 MB, free: 9.004 MB / 334.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1539, allocations: 0 / 396.1 MB, free: 9.004 MB / 334.1 MB Notification: Performance of Templates: time 0.0121/0.166, allocations: 6.254 MB / 402.4 MB, free: 2.738 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)