Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.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.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks") translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007858/0.007858, allocations: 102 kB / 15.73 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.001362/0.001362, allocations: 194.9 kB / 16.68 MB, free: 5.961 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.498/1.498, allocations: 205.1 MB / 222.5 MB, free: 4.379 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.001398/0.001398, allocations: 53.67 kB / 326.5 MB, free: 14.45 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1154, allocations: 46.63 MB / 373.2 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.02094/0.1363, allocations: 15.86 MB / 389 MB, free: 1.367 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01084/0.1472, allocations: 6.838 MB / 395.9 MB, free: 10.51 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00108/0.1483, allocations: 19.88 kB / 395.9 MB, free: 10.49 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001372/0.1498, allocations: 334 kB / 396.2 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00399/0.1538, allocations: 1.069 MB / 397.3 MB, free: 9.086 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006381/0.1602, allocations: 1.8 MB / 399.1 MB, free: 7.281 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003889/0.1641, allocations: 2.136 MB / 401.2 MB, free: 5.141 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001271/0.1654, allocations: 0.5958 MB / 401.8 MB, free: 4.531 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001895/0.1673, allocations: 0.8137 MB / 402.6 MB, free: 3.715 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00179/0.1691, allocations: 0.7941 MB / 403.4 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003065/0.1695, allocations: 83.94 kB / 403.5 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003388/0.1729, allocations: 1.217 MB / 404.7 MB, free: 1.617 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006392/0.1735, allocations: 315.1 kB / 405 MB, free: 1.309 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001174/0.1747, allocations: 461.9 kB / 405.5 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004685/0.1794, allocations: 1.831 MB / 407.3 MB, free: 15.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.879e-06/0.1794, allocations: 7.922 kB / 407.3 MB, free: 15.01 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.1794, allocations: 0 / 407.3 MB, free: 15.01 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.546e-05/0.1795, allocations: 0 / 407.3 MB, free: 15.01 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.004103/0.1836, allocations: 1.262 MB / 408.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.792e-05/0.1837, allocations: 8.031 kB / 408.6 MB, free: 13.69 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000519/0.1842, allocations: 95.98 kB / 408.7 MB, free: 13.6 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001428/0.1857, allocations: 0.6322 MB / 409.3 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000139/0.1858, allocations: 108.7 kB / 409.4 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001302/0.186, allocations: 47.98 kB / 409.5 MB, free: 12.76 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001749/0.1877, allocations: 0.8962 MB / 410.4 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.876e-05/0.1878, allocations: 4 kB / 410.4 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.47e-05/0.1879, allocations: 27.98 kB / 410.4 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.44e-05/0.188, allocations: 53.27 kB / 410.4 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001659/0.1896, allocations: 0.8366 MB / 411.3 MB, free: 10.91 MB / 350.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00698/0.1966, allocations: 3.474 MB / 414.7 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001128/0.1978, allocations: 0.6531 MB / 415.4 MB, free: 6.582 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00068/0.1985, allocations: 366.3 kB / 415.8 MB, free: 6.219 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003489/0.202, allocations: 2.047 MB / 417.8 MB, free: 3.977 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.972e-05/0.202, allocations: 39.12 kB / 417.8 MB, free: 3.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.465e-06/0.202, allocations: 0 / 417.8 MB, free: 3.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=66): time 0.007261/0.2093, allocations: 2.828 MB / 420.7 MB, free: 1.031 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.425e-05/0.2094, allocations: 89.67 kB / 420.8 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001033/0.2104, allocations: 0.6836 MB / 421.4 MB, free: 240 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.2e-05/0.2105, allocations: 37.7 kB / 421.5 MB, free: 196 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003068/0.2108, allocations: 332.5 kB / 421.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002294/0.211, allocations: 224.8 kB / 422 MB, free: 15.64 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002756/0.2113, allocations: 150.6 kB / 422.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002017/0.2115, allocations: 382.8 kB / 422.5 MB, free: 15.1 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000639/0.2122, allocations: 384.6 kB / 422.9 MB, free: 14.72 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007476/0.2129, allocations: 0.5152 MB / 423.4 MB, free: 14.14 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00142/0.2144, allocations: 0.8599 MB / 424.3 MB, free: 13.22 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.045e-06/0.2144, allocations: 7.938 kB / 424.3 MB, free: 13.21 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00215/0.2166, allocations: 1.157 MB / 425.5 MB, free: 12.05 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.952e-05/0.2166, allocations: 8 kB / 425.5 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.555e-05/0.2166, allocations: 4 kB / 425.5 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001374/0.218, allocations: 460.9 kB / 425.9 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007258/0.2187, allocations: 159.8 kB / 426.1 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001353/0.2201, allocations: 1.017 MB / 427.1 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007036/0.2208, allocations: 31.98 kB / 427.1 MB, free: 10.35 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.59e-05/0.2209, allocations: 35.98 kB / 427.2 MB, free: 10.32 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008806/0.2218, allocations: 0.5292 MB / 427.7 MB, free: 9.785 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000707/0.2225, allocations: 0.516 MB / 428.2 MB, free: 9.207 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001278/0.2238, allocations: 0.8411 MB / 429 MB, free: 8.301 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.731e-06/0.2239, allocations: 4 kB / 429 MB, free: 8.297 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001968/0.2258, allocations: 1.102 MB / 430.2 MB, free: 7.184 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.2259, allocations: 8 kB / 430.2 MB, free: 7.176 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.758e-06/0.2259, allocations: 4 kB / 430.2 MB, free: 7.172 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007633/0.2266, allocations: 317.1 kB / 430.5 MB, free: 6.859 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006587/0.2273, allocations: 163.8 kB / 430.6 MB, free: 6.699 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001124/0.2284, allocations: 0.9075 MB / 431.5 MB, free: 5.766 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006305/0.2291, allocations: 35.97 kB / 431.6 MB, free: 5.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.503e-05/0.2292, allocations: 35.98 kB / 431.6 MB, free: 5.695 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 4 (tank2.inFlow[1],tank2.regularFlow[1],tank1.inFlow[1],tank1.regularFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 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 {(4,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0003423/0.2295, allocations: 224.1 kB / 431.8 MB, free: 5.469 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002556/0.2298, allocations: 83 kB / 431.9 MB, free: 5.387 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002166/0.232, allocations: 1.103 MB / 433 MB, free: 4.27 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.167e-05/0.232, allocations: 8 kB / 433 MB, free: 4.262 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.232, allocations: 0 / 433 MB, free: 4.262 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.568e-06/0.232, allocations: 3.984 kB / 433 MB, free: 4.258 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003461/0.2355, allocations: 2 MB / 435 MB, free: 2.199 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.141e-06/0.2355, allocations: 4 kB / 435 MB, free: 2.195 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005835/0.2361, allocations: 115.8 kB / 435.1 MB, free: 2.082 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001271/0.2374, allocations: 452.5 kB / 435.6 MB, free: 1.637 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.422e-05/0.2375, allocations: 19.98 kB / 435.6 MB, free: 1.617 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001251/0.2387, allocations: 1.032 MB / 436.6 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.2388, allocations: 0 / 436.6 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002552/0.2413, allocations: 1.597 MB / 438.2 MB, free: 14.94 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005306/0.2419, allocations: 244.1 kB / 438.5 MB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000154/0.242, allocations: 12 kB / 438.5 MB, free: 14.67 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006309/0.2427, allocations: 39.91 kB / 438.5 MB, free: 14.63 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001478/0.2428, allocations: 56.56 kB / 438.6 MB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.617e-05/0.2429, allocations: 23.98 kB / 438.6 MB, free: 14.55 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006851/0.2436, allocations: 487 kB / 439.1 MB, free: 14.08 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.2436, allocations: 0 / 439.1 MB, free: 14.08 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001754/0.2454, allocations: 0.574 MB / 439.6 MB, free: 13.51 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 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 {(4,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001294/0.2467, allocations: 490.6 kB / 440.1 MB, free: 13.02 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003153/0.2498, allocations: 1.407 MB / 441.5 MB, free: 11.61 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/0.2499, allocations: 1.938 kB / 441.5 MB, free: 11.61 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001157/0.251, allocations: 475.4 kB / 442 MB, free: 11.15 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00189/0.2529, allocations: 386.2 kB / 442.4 MB, free: 10.77 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004131/0.2571, allocations: 1.724 MB / 444.1 MB, free: 9.016 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007159/0.2578, allocations: 0.9989 MB / 445.1 MB, free: 7.988 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001077/0.2589, allocations: 298.6 kB / 445.4 MB, free: 7.691 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002245/0.2591, allocations: 75.36 kB / 445.5 MB, free: 7.617 MB / 382.1 MB Notification: Performance of SimCode: time 9.31e-07/0.2592, allocations: 4 kB / 445.5 MB, free: 7.613 MB / 382.1 MB Notification: Performance of Templates: time 0.2862/0.5454, allocations: 23.55 MB / 469 MB, free: 68.06 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1)