Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Fluid.Examples.Tanks.EmptyTanks") translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.0104/0.0104, allocations: 96.8 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.002006/0.002006, allocations: 200.5 kB / 16.68 MB, free: 5.965 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.533/1.533, 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.001162/0.001162, allocations: 45.25 kB / 326.5 MB, free: 14.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1094, allocations: 46.63 MB / 373.2 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01997/0.1294, allocations: 15.84 MB / 389 MB, free: 1.41 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.012/0.1414, allocations: 6.85 MB / 395.9 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001083/0.1426, allocations: 19.88 kB / 395.9 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001079/0.1437, allocations: 334 kB / 396.2 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002891/0.1466, allocations: 1.065 MB / 397.3 MB, free: 9.121 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005087/0.1517, allocations: 1.796 MB / 399.1 MB, free: 7.32 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003131/0.1549, allocations: 2.144 MB / 401.2 MB, free: 5.172 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001195/0.1561, allocations: 0.5958 MB / 401.8 MB, free: 4.562 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00181/0.1579, allocations: 0.7942 MB / 402.6 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00163/0.1596, allocations: 0.7902 MB / 403.4 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003027/0.1599, allocations: 84 kB / 403.5 MB, free: 2.891 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002749/0.1627, allocations: 1.221 MB / 404.7 MB, free: 1.668 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004564/0.1631, allocations: 315.1 kB / 405 MB, free: 1.359 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008736/0.164, allocations: 454 kB / 405.4 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004108/0.1681, allocations: 1.85 MB / 407.3 MB, free: 15.06 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.1682, allocations: 3.938 kB / 407.3 MB, free: 15.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.1682, allocations: 0 / 407.3 MB, free: 15.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.555e-05/0.1682, allocations: 0 / 407.3 MB, free: 15.05 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.004562/0.1728, allocations: 1.299 MB / 408.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.008e-05/0.1729, allocations: 12.03 kB / 408.6 MB, free: 13.69 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005522/0.1734, allocations: 100.4 kB / 408.7 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001221/0.1747, allocations: 0.6328 MB / 409.3 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001179/0.1748, allocations: 104.7 kB / 409.4 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001159/0.1749, allocations: 51.98 kB / 409.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001663/0.1766, allocations: 0.8962 MB / 410.4 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.619e-05/0.1766, allocations: 3.984 kB / 410.4 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.1e-05/0.1767, allocations: 27.98 kB / 410.4 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.668e-05/0.1768, allocations: 45.28 kB / 410.5 MB, free: 11.76 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001487/0.1783, allocations: 0.8444 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.005696/0.1841, allocations: 3.466 MB / 414.8 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001081/0.1852, allocations: 0.657 MB / 415.4 MB, free: 6.582 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005722/0.1857, allocations: 370.3 kB / 415.8 MB, free: 6.215 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002928/0.1887, allocations: 2.047 MB / 417.8 MB, free: 3.973 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.239e-05/0.1887, allocations: 39.12 kB / 417.9 MB, free: 3.926 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.305e-06/0.1887, allocations: 3.938 kB / 417.9 MB, free: 3.922 MB / 350.1 MB Notification: Performance of matching and sorting (n=66): time 0.007131/0.1959, allocations: 2.853 MB / 420.7 MB, free: 1 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.725e-05/0.196, allocations: 85.67 kB / 420.8 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00093/0.1969, allocations: 0.6837 MB / 421.5 MB, free: 212 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.647e-05/0.197, allocations: 37.7 kB / 421.5 MB, free: 168 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003033/0.1973, allocations: 349 kB / 421.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002228/0.1975, allocations: 234 kB / 422.1 MB, free: 15.59 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002911/0.1978, allocations: 150.6 kB / 422.3 MB, free: 15.43 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000196/0.198, allocations: 386.8 kB / 422.6 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006961/0.1987, allocations: 368.6 kB / 423 MB, free: 14.68 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007725/0.1995, allocations: 0.5152 MB / 423.5 MB, free: 14.1 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001337/0.2009, allocations: 0.8638 MB / 424.4 MB, free: 13.18 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5e-06/0.2009, allocations: 4 kB / 424.4 MB, free: 13.18 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002131/0.203, allocations: 1.165 MB / 425.5 MB, free: 12 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.203, allocations: 8 kB / 425.5 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.433e-05/0.2031, allocations: 4 kB / 425.6 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001344/0.2044, allocations: 452.5 kB / 426 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006378/0.2051, allocations: 159.7 kB / 426.1 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001271/0.2064, allocations: 1.032 MB / 427.2 MB, free: 10.33 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006084/0.207, allocations: 28.03 kB / 427.2 MB, free: 10.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.612e-05/0.2071, allocations: 35.98 kB / 427.2 MB, free: 10.27 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009188/0.208, allocations: 0.5369 MB / 427.8 MB, free: 9.727 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006932/0.2087, allocations: 0.5082 MB / 428.3 MB, free: 9.156 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001221/0.2099, allocations: 0.8528 MB / 429.1 MB, free: 8.238 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.637e-06/0.2099, allocations: 4 kB / 429.1 MB, free: 8.234 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001977/0.2119, allocations: 1.095 MB / 430.2 MB, free: 7.129 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.138e-05/0.212, allocations: 8 kB / 430.2 MB, free: 7.121 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.206e-06/0.212, allocations: 4 kB / 430.3 MB, free: 7.117 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006648/0.2126, allocations: 312.8 kB / 430.6 MB, free: 6.809 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006746/0.2133, allocations: 171.7 kB / 430.7 MB, free: 6.641 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001028/0.2144, allocations: 0.9112 MB / 431.6 MB, free: 5.703 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005326/0.2149, allocations: 28.03 kB / 431.7 MB, free: 5.676 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.369e-05/0.215, allocations: 39.98 kB / 431.7 MB, free: 5.637 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.0002701/0.2153, allocations: 232 kB / 431.9 MB, free: 5.402 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002621/0.2155, allocations: 83.42 kB / 432 MB, free: 5.32 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001995/0.2175, allocations: 1.092 MB / 433.1 MB, free: 4.215 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.975e-06/0.2176, allocations: 7.938 kB / 433.1 MB, free: 4.207 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.845e-06/0.2176, allocations: 0 / 433.1 MB, free: 4.207 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.788e-06/0.2176, allocations: 7.984 kB / 433.1 MB, free: 4.199 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003127/0.2207, allocations: 2 MB / 435.1 MB, free: 2.141 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.2207, allocations: 0 / 435.1 MB, free: 2.141 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000557/0.2213, allocations: 115.9 kB / 435.2 MB, free: 2.027 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001117/0.2224, allocations: 440.5 kB / 435.7 MB, free: 1.594 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.071e-05/0.2225, allocations: 15.98 kB / 435.7 MB, free: 1.578 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001315/0.2238, allocations: 1.04 MB / 436.7 MB, free: 0.5117 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.2238, allocations: 4 kB / 436.7 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002542/0.2264, allocations: 1.597 MB / 438.3 MB, free: 14.88 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004518/0.2269, allocations: 244.5 kB / 438.6 MB, free: 14.62 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001659/0.227, allocations: 16 kB / 438.6 MB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005967/0.2276, allocations: 43.72 kB / 438.6 MB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000144/0.2278, allocations: 52.58 kB / 438.7 MB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.668e-05/0.2279, allocations: 27.98 kB / 438.7 MB, free: 14.49 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006833/0.2286, allocations: 479 kB / 439.2 MB, free: 14.03 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.714e-06/0.2286, allocations: 3.938 kB / 439.2 MB, free: 14.03 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001988/0.2306, allocations: 0.5965 MB / 439.8 MB, free: 13.43 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.001382/0.232, allocations: 482 kB / 440.2 MB, free: 12.95 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003145/0.2351, allocations: 1.409 MB / 441.6 MB, free: 11.54 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.59e-06/0.2351, allocations: 0 / 441.6 MB, free: 11.54 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001012/0.2362, allocations: 475.3 kB / 442.1 MB, free: 11.08 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001872/0.238, allocations: 390.4 kB / 442.5 MB, free: 10.7 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003546/0.2416, allocations: 1.742 MB / 444.2 MB, free: 8.922 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006629/0.2423, allocations: 0.995 MB / 445.2 MB, free: 7.898 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00106/0.2434, allocations: 310.5 kB / 445.5 MB, free: 7.59 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002226/0.2436, allocations: 75.41 kB / 445.6 MB, free: 7.516 MB / 382.1 MB Notification: Performance of SimCode: time 5.11e-07/0.2436, allocations: 0 / 445.6 MB, free: 7.516 MB / 382.1 MB Notification: Performance of Templates: time 0.2579/0.5015, allocations: 23.12 MB / 468.7 MB, free: 68.23 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_3.1_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1)