Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Fluid.Examples.Tanks.EmptyTanks") translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001218/0.001218, allocations: 106.5 kB / 16.62 MB, free: 6.332 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.00131/0.00131, allocations: 189.9 kB / 17.55 MB, free: 5.801 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.493/1.493, allocations: 205.1 MB / 223.4 MB, free: 12.42 MB / 190.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.001479/0.001479, allocations: 51.92 kB / 279.5 MB, free: 3.484 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1154, allocations: 46.62 MB / 326.1 MB, free: 4.789 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.0207/0.1362, allocations: 16.64 MB / 342.8 MB, free: 4.066 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01183/0.148, allocations: 7.002 MB / 349.8 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001279/0.1494, allocations: 31.75 kB / 349.8 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001039/0.1504, allocations: 294.4 kB / 350.1 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002928/0.1534, allocations: 0.9957 MB / 351.1 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005244/0.1586, allocations: 1.642 MB / 352.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003356/0.162, allocations: 2.155 MB / 354.9 MB, free: 7.922 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009203/0.1629, allocations: 0.6074 MB / 355.5 MB, free: 7.301 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001357/0.1643, allocations: 0.798 MB / 356.3 MB, free: 6.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001128/0.1655, allocations: 0.8369 MB / 357.1 MB, free: 5.66 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001483/0.1656, allocations: 80 kB / 357.2 MB, free: 5.582 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002569/0.1682, allocations: 1.213 MB / 358.4 MB, free: 4.367 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003396/0.1686, allocations: 319.1 kB / 358.7 MB, free: 4.055 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000512/0.1691, allocations: 457.9 kB / 359.2 MB, free: 3.605 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002718/0.1718, allocations: 1.827 MB / 361 MB, free: 1.773 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.1718, allocations: 0 / 361 MB, free: 1.773 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.624e-06/0.1718, allocations: 0 / 361 MB, free: 1.773 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.29e-05/0.1718, allocations: 0 / 361 MB, free: 1.773 MB / 302.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.003049/0.1749, allocations: 1.266 MB / 362.3 MB, free: 464 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/0.175, allocations: 15.97 kB / 362.3 MB, free: 448 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003489/0.1753, allocations: 95.98 kB / 362.4 MB, free: 352 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009153/0.1762, allocations: 0.5932 MB / 363 MB, free: 15.71 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001148/0.1764, allocations: 108.7 kB / 363.1 MB, free: 15.59 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001083/0.1765, allocations: 51.98 kB / 363.1 MB, free: 15.54 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001548/0.178, allocations: 0.904 MB / 364 MB, free: 14.61 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.479e-05/0.1781, allocations: 0 / 364 MB, free: 14.61 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.884e-05/0.1782, allocations: 27.98 kB / 364.1 MB, free: 14.58 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.442e-05/0.1783, allocations: 49.22 kB / 364.1 MB, free: 14.53 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001372/0.1796, allocations: 0.8482 MB / 365 MB, free: 13.68 MB / 318.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.005822/0.1855, allocations: 3.443 MB / 368.4 MB, free: 10.05 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001096/0.1866, allocations: 0.6608 MB / 369.1 MB, free: 9.383 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005518/0.1871, allocations: 370.3 kB / 369.4 MB, free: 9.02 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003108/0.1903, allocations: 2.047 MB / 371.5 MB, free: 6.777 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.537e-05/0.1903, allocations: 39.12 kB / 371.5 MB, free: 6.73 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 2.374e-06/0.1903, allocations: 0 / 371.5 MB, free: 6.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=66): time 0.007271/0.1976, allocations: 2.832 MB / 374.3 MB, free: 3.828 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.632e-05/0.1977, allocations: 85.67 kB / 374.4 MB, free: 3.727 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009047/0.1986, allocations: 0.6798 MB / 375.1 MB, free: 3.039 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.352e-05/0.1987, allocations: 37.7 kB / 375.1 MB, free: 2.996 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002528/0.199, allocations: 340.4 kB / 375.5 MB, free: 2.66 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001977/0.1992, allocations: 228.7 kB / 375.7 MB, free: 2.434 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002562/0.1994, allocations: 146.6 kB / 375.8 MB, free: 2.285 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001866/0.1996, allocations: 386.8 kB / 376.2 MB, free: 1.898 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006232/0.2003, allocations: 376.6 kB / 376.6 MB, free: 1.527 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007757/0.201, allocations: 0.5152 MB / 377.1 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001421/0.2025, allocations: 0.8677 MB / 378 MB, free: 20 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.2025, allocations: 0 / 378 MB, free: 20 kB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.1827/0.3852, allocations: 1.157 MB / 379.1 MB, free: 55.24 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.338e-05/0.3852, allocations: 10.59 kB / 379.1 MB, free: 55.24 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.24e-05/0.3852, allocations: 4.125 kB / 379.1 MB, free: 55.24 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001446/0.3867, allocations: 453.5 kB / 379.6 MB, free: 55.23 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007414/0.3875, allocations: 159.8 kB / 379.7 MB, free: 55.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001135/0.3886, allocations: 1.026 MB / 380.8 MB, free: 54.71 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006452/0.3893, allocations: 37.89 kB / 380.8 MB, free: 54.71 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.275e-05/0.3893, allocations: 31.22 kB / 380.8 MB, free: 54.71 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007893/0.3901, allocations: 0.5324 MB / 381.4 MB, free: 54.47 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006205/0.3908, allocations: 0.5163 MB / 381.9 MB, free: 54.16 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001124/0.3919, allocations: 0.8425 MB / 382.7 MB, free: 53.7 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.538e-06/0.3919, allocations: 2.141 kB / 382.7 MB, free: 53.7 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001927/0.3938, allocations: 1.104 MB / 383.8 MB, free: 53.3 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.3939, allocations: 6.406 kB / 383.8 MB, free: 53.3 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.3939, allocations: 6.188 kB / 383.8 MB, free: 53.3 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007187/0.3946, allocations: 310.7 kB / 384.1 MB, free: 53.23 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006493/0.3953, allocations: 167.1 kB / 384.3 MB, free: 53.21 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008874/0.3962, allocations: 0.9082 MB / 385.2 MB, free: 52.56 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005955/0.3968, allocations: 48.14 kB / 385.3 MB, free: 52.55 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.631e-05/0.3969, allocations: 35.05 kB / 385.3 MB, free: 52.54 MB / 318.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.0002484/0.3971, allocations: 231.9 kB / 385.5 MB, free: 52.33 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001642/0.3973, allocations: 77.14 kB / 385.6 MB, free: 52.33 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001961/0.3993, allocations: 1.089 MB / 386.7 MB, free: 51.89 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.415e-06/0.3993, allocations: 6.25 kB / 386.7 MB, free: 51.89 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.765e-06/0.3993, allocations: 7.281 kB / 386.7 MB, free: 51.89 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.858e-06/0.3993, allocations: 3.516 kB / 386.7 MB, free: 51.89 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003206/0.4025, allocations: 2.01 MB / 388.7 MB, free: 50.98 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.4025, allocations: 0 / 388.7 MB, free: 50.98 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005949/0.4031, allocations: 116.2 kB / 388.8 MB, free: 50.97 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001221/0.4044, allocations: 441.5 kB / 389.3 MB, free: 50.89 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.754e-05/0.4045, allocations: 20.2 kB / 389.3 MB, free: 50.88 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001182/0.4056, allocations: 1.028 MB / 390.3 MB, free: 50.18 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.4057, allocations: 1.312 kB / 390.3 MB, free: 50.18 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002454/0.4081, allocations: 1.598 MB / 391.9 MB, free: 49.46 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004191/0.4086, allocations: 249.2 kB / 392.1 MB, free: 49.29 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001773/0.4087, allocations: 12.12 kB / 392.2 MB, free: 49.28 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006285/0.4094, allocations: 45.5 kB / 392.2 MB, free: 49.27 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00019/0.4096, allocations: 54.28 kB / 392.3 MB, free: 49.26 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.57e-05/0.4097, allocations: 29.39 kB / 392.3 MB, free: 49.25 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006374/0.4103, allocations: 483 kB / 392.8 MB, free: 49.05 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4103, allocations: 0 / 392.8 MB, free: 49.05 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002057/0.4124, allocations: 0.582 MB / 393.3 MB, free: 49 MB / 318.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.001242/0.4136, allocations: 488.9 kB / 393.8 MB, free: 48.85 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003108/0.4167, allocations: 1.562 MB / 395.4 MB, free: 48.25 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.4168, allocations: 1.312 kB / 395.4 MB, free: 48.25 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009371/0.4177, allocations: 469.1 kB / 395.8 MB, free: 48.04 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001827/0.4195, allocations: 393.4 kB / 396.2 MB, free: 47.85 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003266/0.4228, allocations: 1.994 MB / 398.2 MB, free: 46.38 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004087/0.4232, allocations: 0.9988 MB / 399.2 MB, free: 45.35 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001055/0.4243, allocations: 302.6 kB / 399.5 MB, free: 45.05 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001943/0.4245, allocations: 83.28 kB / 399.6 MB, free: 44.97 MB / 318.1 MB Notification: Performance of SimCode: time 1.052e-06/0.4245, allocations: 2.734 kB / 399.6 MB, free: 44.97 MB / 318.1 MB Notification: Performance of Templates: time 0.02991/0.4544, allocations: 22.79 MB / 422.4 MB, free: 22.18 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1)