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.01226/0.01226, allocations: 101.6 kB / 15.73 MB, free: 6.449 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.002162/0.002162, allocations: 199.1 kB / 16.68 MB, free: 6.352 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.586/1.586, allocations: 205.1 MB / 222.5 MB, free: 4.5 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.001857/0.001857, allocations: 45.66 kB / 326.5 MB, free: 14.45 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1306/0.1325, allocations: 46.62 MB / 373.2 MB, free: 1.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01885/0.1514, allocations: 15.86 MB / 389 MB, free: 1.406 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01168/0.1631, allocations: 6.85 MB / 395.9 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001254/0.1644, allocations: 23.88 kB / 395.9 MB, free: 10.51 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001324/0.1658, allocations: 330 kB / 396.2 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003688/0.1695, allocations: 1.089 MB / 397.3 MB, free: 9.094 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005525/0.1751, allocations: 1.789 MB / 399.1 MB, free: 7.301 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003923/0.179, allocations: 2.152 MB / 401.2 MB, free: 5.145 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001227/0.1802, allocations: 0.5997 MB / 401.8 MB, free: 4.531 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002089/0.1823, allocations: 0.8098 MB / 402.6 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0015/0.1839, allocations: 0.7863 MB / 403.4 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001735/0.1841, allocations: 87.94 kB / 403.5 MB, free: 2.844 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003571/0.1876, allocations: 1.217 MB / 404.7 MB, free: 1.625 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004632/0.1881, allocations: 315.1 kB / 405 MB, free: 1.316 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007376/0.1889, allocations: 458 kB / 405.5 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003435/0.1923, allocations: 1.846 MB / 407.3 MB, free: 15.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.1923, allocations: 0 / 407.3 MB, free: 15.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.266e-06/0.1923, allocations: 0 / 407.3 MB, free: 15.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.056e-05/0.1924, allocations: 4 kB / 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.003283/0.1957, allocations: 1.299 MB / 408.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.323e-05/0.1957, allocations: 12.03 kB / 408.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000355/0.1961, allocations: 104.4 kB / 408.8 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001275/0.1974, allocations: 0.625 MB / 409.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001285/0.1975, allocations: 108.6 kB / 409.5 MB, free: 12.76 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001125/0.1976, allocations: 55.98 kB / 409.5 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001539/0.1992, allocations: 0.8924 MB / 410.4 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.351e-05/0.1992, allocations: 0 / 410.4 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.08e-05/0.1993, allocations: 31.92 kB / 410.5 MB, free: 11.76 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.306e-05/0.1994, allocations: 49.28 kB / 410.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001473/0.2009, allocations: 0.8444 MB / 411.4 MB, free: 10.86 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.006122/0.207, allocations: 3.459 MB / 414.8 MB, free: 7.211 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00109/0.2081, allocations: 0.6609 MB / 415.5 MB, free: 6.539 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005626/0.2087, allocations: 370.3 kB / 415.8 MB, free: 6.172 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003164/0.2119, allocations: 2.039 MB / 417.9 MB, free: 3.938 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.542e-05/0.2119, allocations: 43.12 kB / 417.9 MB, free: 3.887 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.375e-06/0.2119, allocations: 3.938 kB / 417.9 MB, free: 3.883 MB / 350.1 MB Notification: Performance of matching and sorting (n=66): time 0.007975/0.2199, allocations: 2.857 MB / 420.8 MB, free: 0.957 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.565e-05/0.2201, allocations: 81.67 kB / 420.9 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00123/0.2213, allocations: 0.6876 MB / 421.5 MB, free: 168 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.956e-05/0.2214, allocations: 37.7 kB / 421.6 MB, free: 124 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003725/0.2218, allocations: 349 kB / 421.9 MB, free: 15.77 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002561/0.222, allocations: 230 kB / 422.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004188/0.2225, allocations: 154.6 kB / 422.3 MB, free: 15.39 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002632/0.2227, allocations: 386.8 kB / 422.7 MB, free: 15 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008702/0.2236, allocations: 368.6 kB / 423 MB, free: 14.64 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001023/0.2247, allocations: 0.5191 MB / 423.6 MB, free: 14.05 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001302/0.226, allocations: 0.8638 MB / 424.4 MB, free: 13.13 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.226, allocations: 4 kB / 424.4 MB, free: 13.13 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002099/0.2281, allocations: 1.161 MB / 425.6 MB, free: 11.96 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.298e-05/0.2281, allocations: 8 kB / 425.6 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.229e-05/0.2282, allocations: 4 kB / 425.6 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001325/0.2295, allocations: 456.4 kB / 426 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006587/0.2302, allocations: 159.8 kB / 426.2 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001344/0.2315, allocations: 1.021 MB / 427.2 MB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007137/0.2322, allocations: 36.02 kB / 427.3 MB, free: 10.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.575e-05/0.2323, allocations: 28 kB / 427.3 MB, free: 10.23 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009618/0.2333, allocations: 0.5331 MB / 427.8 MB, free: 9.695 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007895/0.2341, allocations: 0.5121 MB / 428.3 MB, free: 9.121 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001335/0.2354, allocations: 0.8451 MB / 429.2 MB, free: 8.211 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.296e-06/0.2355, allocations: 4 kB / 429.2 MB, free: 8.207 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.002092/0.2376, allocations: 1.099 MB / 430.3 MB, free: 7.098 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.227e-05/0.2376, allocations: 8 kB / 430.3 MB, free: 7.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.448e-06/0.2376, allocations: 4 kB / 430.3 MB, free: 7.086 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000794/0.2384, allocations: 320.7 kB / 430.6 MB, free: 6.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006559/0.2391, allocations: 163.8 kB / 430.8 MB, free: 6.609 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001167/0.2403, allocations: 0.9151 MB / 431.7 MB, free: 5.668 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007577/0.241, allocations: 28.03 kB / 431.7 MB, free: 5.641 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.742e-05/0.2411, allocations: 43.98 kB / 431.7 MB, free: 5.598 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.0004503/0.2416, allocations: 232 kB / 432 MB, free: 5.363 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002768/0.2419, allocations: 83.42 kB / 432.1 MB, free: 5.281 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002371/0.2443, allocations: 1.091 MB / 433.1 MB, free: 4.176 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.207e-06/0.2443, allocations: 4 kB / 433.1 MB, free: 4.172 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-05/0.2443, allocations: 3.984 kB / 433.2 MB, free: 4.168 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.395e-06/0.2443, allocations: 4 kB / 433.2 MB, free: 4.164 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0037/0.248, allocations: 2 MB / 435.2 MB, free: 2.105 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.783e-06/0.2481, allocations: 0 / 435.2 MB, free: 2.105 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000592/0.2487, allocations: 119.9 kB / 435.3 MB, free: 1.988 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001278/0.2499, allocations: 444.4 kB / 435.7 MB, free: 1.551 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.921e-05/0.25, allocations: 23.98 kB / 435.7 MB, free: 1.527 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001354/0.2514, allocations: 1.028 MB / 436.8 MB, free: 484 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/0.2514, allocations: 8.031 kB / 436.8 MB, free: 476 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002852/0.2543, allocations: 1.597 MB / 438.4 MB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005863/0.2549, allocations: 244.5 kB / 438.6 MB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002278/0.2551, allocations: 16 kB / 438.6 MB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000703/0.2558, allocations: 39.91 kB / 438.7 MB, free: 14.53 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001895/0.256, allocations: 56.58 kB / 438.7 MB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.181e-05/0.2561, allocations: 31.97 kB / 438.7 MB, free: 14.45 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008219/0.257, allocations: 475 kB / 439.2 MB, free: 13.99 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.257, allocations: 0 / 439.2 MB, free: 13.99 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002274/0.2592, allocations: 0.5926 MB / 439.8 MB, free: 13.39 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.001536/0.2608, allocations: 481.7 kB / 440.3 MB, free: 12.91 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003346/0.2642, allocations: 1.421 MB / 441.7 MB, free: 11.5 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.272e-06/0.2642, allocations: 3.938 kB / 441.7 MB, free: 11.49 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001027/0.2652, allocations: 471.3 kB / 442.2 MB, free: 11.03 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002129/0.2674, allocations: 382.2 kB / 442.5 MB, free: 10.66 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003946/0.2713, allocations: 1.753 MB / 444.3 MB, free: 8.871 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009638/0.2723, allocations: 0.9911 MB / 445.3 MB, free: 7.852 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001151/0.2735, allocations: 302.6 kB / 445.6 MB, free: 7.551 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002359/0.2737, allocations: 71.42 kB / 445.6 MB, free: 7.48 MB / 382.1 MB Notification: Performance of SimCode: time 9.71e-07/0.2737, allocations: 0 / 445.6 MB, free: 7.48 MB / 382.1 MB Notification: Performance of Templates: time 0.2529/0.5267, allocations: 23.13 MB / 468.8 MB, free: 68.21 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)