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.001196/0.001196, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001241/0.001241, allocations: 194.4 kB / 16.53 MB, free: 6.391 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.441/1.441, allocations: 205.1 MB / 222.4 MB, free: 4.59 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.001339/0.001339, allocations: 56.39 kB / 278.7 MB, free: 12.39 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2523/0.2537, allocations: 46.63 MB / 325.3 MB, free: 2.004 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01749/0.2712, allocations: 15.85 MB / 341.2 MB, free: 4.148 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01038/0.2816, allocations: 6.831 MB / 348 MB, free: 13.3 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001056/0.2827, allocations: 31.81 kB / 348 MB, free: 13.27 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009443/0.2837, allocations: 334 kB / 348.3 MB, free: 12.95 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002773/0.2865, allocations: 1.065 MB / 349.4 MB, free: 11.88 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004749/0.2913, allocations: 1.805 MB / 351.2 MB, free: 10.07 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002885/0.2942, allocations: 2.152 MB / 353.4 MB, free: 7.906 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008554/0.295, allocations: 0.5919 MB / 354 MB, free: 7.297 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001273/0.2963, allocations: 0.7787 MB / 354.7 MB, free: 6.516 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001091/0.2974, allocations: 0.8057 MB / 355.5 MB, free: 5.707 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001523/0.2976, allocations: 80 kB / 355.6 MB, free: 5.629 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002732/0.3003, allocations: 1.213 MB / 356.8 MB, free: 4.414 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003379/0.3007, allocations: 315.1 kB / 357.1 MB, free: 4.105 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005384/0.3012, allocations: 457.9 kB / 357.6 MB, free: 3.656 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002711/0.304, allocations: 1.82 MB / 359.4 MB, free: 1.832 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.304, allocations: 3.938 kB / 359.4 MB, free: 1.828 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.304, allocations: 0 / 359.4 MB, free: 1.828 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.13e-05/0.304, allocations: 0 / 359.4 MB, free: 1.828 MB / 286.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.002576/0.3066, allocations: 1.27 MB / 360.7 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.3066, allocations: 12.03 kB / 360.7 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003235/0.307, allocations: 95.89 kB / 360.8 MB, free: 408 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008859/0.3079, allocations: 0.5896 MB / 361.4 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001224/0.308, allocations: 112.7 kB / 361.5 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001112/0.3081, allocations: 55.89 kB / 361.5 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001385/0.3095, allocations: 0.8962 MB / 362.4 MB, free: 14.67 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.019e-05/0.3095, allocations: 0 / 362.4 MB, free: 14.67 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.339e-05/0.3096, allocations: 23.98 kB / 362.5 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.793e-05/0.3097, allocations: 57.27 kB / 362.5 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001313/0.311, allocations: 0.8366 MB / 363.4 MB, free: 13.75 MB / 302.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.005382/0.3164, allocations: 3.466 MB / 366.8 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009899/0.3174, allocations: 0.6569 MB / 367.5 MB, free: 9.438 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005303/0.318, allocations: 370.3 kB / 367.8 MB, free: 9.07 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002795/0.3208, allocations: 2.043 MB / 369.9 MB, free: 6.832 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.995e-05/0.3208, allocations: 47.11 kB / 369.9 MB, free: 6.777 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 2.234e-06/0.3208, allocations: 0 / 369.9 MB, free: 6.777 MB / 302.1 MB Notification: Performance of matching and sorting (n=66): time 0.006882/0.3277, allocations: 2.824 MB / 372.8 MB, free: 3.883 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.395e-05/0.3278, allocations: 93.66 kB / 372.8 MB, free: 3.773 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008599/0.3287, allocations: 0.6798 MB / 373.5 MB, free: 3.086 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.496e-05/0.3288, allocations: 37.7 kB / 373.6 MB, free: 3.043 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000247/0.329, allocations: 336.4 kB / 373.9 MB, free: 2.711 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001889/0.3292, allocations: 224.8 kB / 374.1 MB, free: 2.488 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002624/0.3295, allocations: 154.5 kB / 374.3 MB, free: 2.332 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001776/0.3297, allocations: 382.8 kB / 374.6 MB, free: 1.949 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006082/0.3303, allocations: 380.6 kB / 375 MB, free: 1.574 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007118/0.331, allocations: 0.5191 MB / 375.5 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001351/0.3324, allocations: 0.8599 MB / 376.4 MB, free: 68 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.482e-05/0.3324, allocations: 4 kB / 376.4 MB, free: 64 kB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002199/0.3346, allocations: 1.157 MB / 377.5 MB, free: 14.89 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.337e-05/0.3347, allocations: 8 kB / 377.6 MB, free: 14.88 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/0.3347, allocations: 4 kB / 377.6 MB, free: 14.88 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001341/0.336, allocations: 460.9 kB / 378 MB, free: 14.42 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006803/0.3367, allocations: 159.8 kB / 378.2 MB, free: 14.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001343/0.3381, allocations: 1.017 MB / 379.2 MB, free: 13.23 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006748/0.3388, allocations: 32.02 kB / 379.2 MB, free: 13.2 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.2e-05/0.3389, allocations: 39.98 kB / 379.3 MB, free: 13.16 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009824/0.3398, allocations: 0.5292 MB / 379.8 MB, free: 12.62 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008281/0.3407, allocations: 0.5121 MB / 380.3 MB, free: 12.05 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001494/0.3422, allocations: 0.8373 MB / 381.1 MB, free: 11.15 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.907e-06/0.3422, allocations: 4 kB / 381.1 MB, free: 11.15 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.002048/0.3443, allocations: 1.102 MB / 382.2 MB, free: 10.04 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.3443, allocations: 8.562 kB / 382.2 MB, free: 10.03 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.3443, allocations: 4 kB / 382.2 MB, free: 10.02 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007459/0.3451, allocations: 320.6 kB / 382.6 MB, free: 9.707 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006639/0.3457, allocations: 159.8 kB / 382.7 MB, free: 9.551 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00108/0.3468, allocations: 0.9189 MB / 383.6 MB, free: 8.605 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006278/0.3475, allocations: 32.02 kB / 383.7 MB, free: 8.574 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.007e-05/0.3475, allocations: 32 kB / 383.7 MB, free: 8.543 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.0003339/0.3479, allocations: 232 kB / 383.9 MB, free: 8.309 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000174/0.3481, allocations: 79.09 kB / 384 MB, free: 8.23 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002065/0.3501, allocations: 1.091 MB / 385.1 MB, free: 7.125 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.091e-05/0.3502, allocations: 8 kB / 385.1 MB, free: 7.117 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.3502, allocations: 0 / 385.1 MB, free: 7.117 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.288e-06/0.3502, allocations: 3.984 kB / 385.1 MB, free: 7.113 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003208/0.3534, allocations: 2.005 MB / 387.1 MB, free: 5.043 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.3534, allocations: 0 / 387.1 MB, free: 5.043 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005719/0.354, allocations: 127.8 kB / 387.2 MB, free: 4.918 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001145/0.3552, allocations: 448.5 kB / 387.7 MB, free: 4.477 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.779e-05/0.3552, allocations: 12 kB / 387.7 MB, free: 4.465 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00124/0.3565, allocations: 1.036 MB / 388.7 MB, free: 3.402 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3565, allocations: 0 / 388.7 MB, free: 3.402 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002459/0.3589, allocations: 1.595 MB / 390.3 MB, free: 1.781 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004271/0.3594, allocations: 240.1 kB / 390.6 MB, free: 1.527 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001305/0.3595, allocations: 12 kB / 390.6 MB, free: 1.516 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005646/0.3601, allocations: 39.91 kB / 390.6 MB, free: 1.477 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001529/0.3603, allocations: 52.58 kB / 390.7 MB, free: 1.426 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.298e-05/0.3603, allocations: 31.97 kB / 390.7 MB, free: 1.395 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007048/0.3611, allocations: 483 kB / 391.2 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3611, allocations: 0 / 391.2 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001566/0.3626, allocations: 0.5778 MB / 391.7 MB, free: 356 kB / 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.00102/0.3637, allocations: 490.5 kB / 392.2 MB, free: 15.86 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00336/0.367, allocations: 1.561 MB / 393.8 MB, free: 14.3 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.561e-06/0.3671, allocations: 4 kB / 393.8 MB, free: 14.29 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009492/0.368, allocations: 475.5 kB / 394.2 MB, free: 13.83 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001695/0.3697, allocations: 385.4 kB / 394.6 MB, free: 13.46 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003401/0.3731, allocations: 1.743 MB / 396.4 MB, free: 11.69 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005723/0.3737, allocations: 0.995 MB / 397.4 MB, free: 10.66 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0009816/0.3747, allocations: 302.5 kB / 397.7 MB, free: 10.36 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001924/0.3749, allocations: 79.41 kB / 397.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3749, allocations: 0 / 397.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of Templates: time 0.03615/0.4111, allocations: 22.94 MB / 420.7 MB, free: 3.305 MB / 350.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)