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.001474/0.001473, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001875/0.001875, allocations: 191.1 kB / 16.25 MB, free: 6.582 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.523/1.523, allocations: 205.1 MB / 222.1 MB, free: 4.668 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.00129/0.00129, allocations: 47.94 kB / 278.2 MB, free: 12.65 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.261/0.2623, allocations: 46.63 MB / 324.8 MB, free: 1.926 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01702/0.2794, allocations: 16.65 MB / 341.5 MB, free: 3.398 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.011/0.2905, allocations: 6.987 MB / 348.5 MB, free: 12.4 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001328/0.2918, allocations: 35.69 kB / 348.5 MB, free: 12.36 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001282/0.2932, allocations: 302.4 kB / 348.8 MB, free: 12.07 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003591/0.2968, allocations: 0.9879 MB / 349.8 MB, free: 11.07 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004923/0.3017, allocations: 1.647 MB / 351.4 MB, free: 9.426 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00324/0.305, allocations: 2.155 MB / 353.6 MB, free: 7.262 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001106/0.3061, allocations: 0.5997 MB / 354.2 MB, free: 6.645 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0016/0.3077, allocations: 0.802 MB / 355 MB, free: 5.84 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001178/0.3089, allocations: 0.833 MB / 355.8 MB, free: 5.004 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001493/0.3091, allocations: 80 kB / 355.9 MB, free: 4.926 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002896/0.312, allocations: 1.209 MB / 357.1 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003739/0.3124, allocations: 319.2 kB / 357.4 MB, free: 3.402 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005564/0.3129, allocations: 465.8 kB / 357.9 MB, free: 2.945 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003078/0.316, allocations: 1.827 MB / 359.7 MB, free: 1.113 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.3161, allocations: 3.938 kB / 359.7 MB, free: 1.109 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.3161, allocations: 0 / 359.7 MB, free: 1.109 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.403e-05/0.3161, allocations: 0 / 359.7 MB, free: 1.109 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.002905/0.319, allocations: 1.27 MB / 361 MB, free: 15.79 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.319, allocations: 8.031 kB / 361 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003175/0.3194, allocations: 95.98 kB / 361.1 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009356/0.3203, allocations: 0.5932 MB / 361.7 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001041/0.3204, allocations: 100.7 kB / 361.8 MB, free: 14.94 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001165/0.3206, allocations: 55.98 kB / 361.8 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00146/0.322, allocations: 0.9001 MB / 362.7 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.161e-05/0.3221, allocations: 0 / 362.7 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.133e-05/0.3221, allocations: 23.98 kB / 362.8 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.273e-05/0.3222, allocations: 53.27 kB / 362.8 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001396/0.3236, allocations: 0.8405 MB / 363.7 MB, free: 13.04 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.005838/0.3295, allocations: 3.454 MB / 367.1 MB, free: 9.398 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001077/0.3306, allocations: 0.6608 MB / 367.8 MB, free: 8.73 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005614/0.3312, allocations: 366.3 kB / 368.1 MB, free: 8.371 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002991/0.3342, allocations: 2.043 MB / 370.2 MB, free: 6.133 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.672e-05/0.3342, allocations: 43.12 kB / 370.2 MB, free: 6.082 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 2.324e-06/0.3342, allocations: 0 / 370.2 MB, free: 6.082 MB / 302.1 MB Notification: Performance of matching and sorting (n=66): time 0.007374/0.3416, allocations: 2.828 MB / 373 MB, free: 3.184 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.664e-05/0.3417, allocations: 89.67 kB / 373.1 MB, free: 3.078 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009024/0.3426, allocations: 0.6798 MB / 373.8 MB, free: 2.391 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.069e-05/0.3427, allocations: 41.7 kB / 373.8 MB, free: 2.344 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000277/0.343, allocations: 336.4 kB / 374.2 MB, free: 2.012 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002054/0.3432, allocations: 232.7 kB / 374.4 MB, free: 1.781 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000266/0.3435, allocations: 150.5 kB / 374.6 MB, free: 1.629 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002064/0.3437, allocations: 390.7 kB / 374.9 MB, free: 1.238 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006235/0.3444, allocations: 368.6 kB / 375.3 MB, free: 0.875 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007235/0.3451, allocations: 0.5113 MB / 375.8 MB, free: 308 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001287/0.3464, allocations: 0.8716 MB / 376.7 MB, free: 15.36 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.3464, allocations: 0 / 376.7 MB, free: 15.36 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002028/0.3484, allocations: 1.161 MB / 377.8 MB, free: 14.19 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.399e-05/0.3485, allocations: 8 kB / 377.8 MB, free: 14.18 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.907e-05/0.3485, allocations: 4 kB / 377.8 MB, free: 14.18 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001424/0.3499, allocations: 460.4 kB / 378.3 MB, free: 13.73 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006838/0.3506, allocations: 167.7 kB / 378.5 MB, free: 13.56 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001403/0.352, allocations: 1.009 MB / 379.5 MB, free: 12.53 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007582/0.3528, allocations: 47.86 kB / 379.5 MB, free: 12.48 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.202e-05/0.3529, allocations: 31.98 kB / 379.5 MB, free: 12.45 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009066/0.3538, allocations: 0.5291 MB / 380.1 MB, free: 11.92 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007113/0.3545, allocations: 0.5161 MB / 380.6 MB, free: 11.34 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001194/0.3557, allocations: 0.8412 MB / 381.4 MB, free: 10.44 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.541e-06/0.3558, allocations: 4 kB / 381.4 MB, free: 10.44 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001859/0.3576, allocations: 1.098 MB / 382.5 MB, free: 9.328 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.3577, allocations: 4 kB / 382.5 MB, free: 9.324 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.749e-06/0.3577, allocations: 12 kB / 382.6 MB, free: 9.312 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007367/0.3584, allocations: 317.2 kB / 382.9 MB, free: 9 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006884/0.3591, allocations: 167.8 kB / 383 MB, free: 8.836 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001069/0.3602, allocations: 0.9112 MB / 383.9 MB, free: 7.898 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007579/0.361, allocations: 36.08 kB / 384 MB, free: 7.863 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.556e-05/0.3611, allocations: 35.92 kB / 384 MB, free: 7.828 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.0003452/0.3614, allocations: 228.1 kB / 384.2 MB, free: 7.598 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001574/0.3616, allocations: 83 kB / 384.3 MB, free: 7.516 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002015/0.3636, allocations: 1.095 MB / 385.4 MB, free: 6.402 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.205e-06/0.3636, allocations: 8 kB / 385.4 MB, free: 6.395 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.3636, allocations: 0 / 385.4 MB, free: 6.395 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.436e-06/0.3636, allocations: 7.984 kB / 385.4 MB, free: 6.387 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003093/0.3667, allocations: 2.005 MB / 387.4 MB, free: 4.316 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.3668, allocations: 0 / 387.4 MB, free: 4.316 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000649/0.3674, allocations: 123.8 kB / 387.5 MB, free: 4.195 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001208/0.3686, allocations: 440.5 kB / 388 MB, free: 3.762 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.4e-05/0.3687, allocations: 19.98 kB / 388 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001257/0.37, allocations: 1.021 MB / 389 MB, free: 2.695 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.37, allocations: 0 / 389 MB, free: 2.695 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002467/0.3725, allocations: 1.603 MB / 390.6 MB, free: 1.07 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004493/0.3729, allocations: 248 kB / 390.9 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000128/0.3731, allocations: 12 kB / 390.9 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005963/0.3737, allocations: 47.91 kB / 390.9 MB, free: 0.75 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001435/0.3738, allocations: 48.58 kB / 391 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.347e-05/0.3739, allocations: 35.97 kB / 391 MB, free: 0.668 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006056/0.3745, allocations: 479 kB / 391.5 MB, free: 208 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3745, allocations: 0 / 391.5 MB, free: 208 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.001601/0.3761, allocations: 0.5741 MB / 392 MB, free: 15.62 MB / 334.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.001123/0.3773, allocations: 498.5 kB / 392.5 MB, free: 15.13 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003509/0.3808, allocations: 1.557 MB / 394.1 MB, free: 13.57 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.09e-05/0.3808, allocations: 4.188 kB / 394.1 MB, free: 13.57 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009816/0.3818, allocations: 471.5 kB / 394.6 MB, free: 13.11 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001934/0.3838, allocations: 393.3 kB / 394.9 MB, free: 12.73 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003561/0.3873, allocations: 1.993 MB / 396.9 MB, free: 10.71 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006069/0.3879, allocations: 0.9911 MB / 397.9 MB, free: 9.688 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.00114/0.3891, allocations: 310.5 kB / 398.2 MB, free: 9.379 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002038/0.3893, allocations: 75.41 kB / 398.3 MB, free: 9.305 MB / 334.1 MB Notification: Performance of SimCode: time 7.91e-07/0.3893, allocations: 0 / 398.3 MB, free: 9.305 MB / 334.1 MB Notification: Performance of Templates: time 0.03674/0.4261, allocations: 22.79 MB / 421.1 MB, free: 2.469 MB / 350.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)