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.001801/0.001801, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002713/0.002713, allocations: 192.2 kB / 16.13 MB, free: 6.715 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.527/1.527, allocations: 205.1 MB / 222 MB, free: 4.75 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.00143/0.00143, allocations: 51.92 kB / 278 MB, free: 12.79 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2863/0.2878, allocations: 46.62 MB / 324.7 MB, free: 1.938 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.02024/0.308, allocations: 16.67 MB / 341.3 MB, free: 3.438 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01169/0.3198, allocations: 7.202 MB / 348.5 MB, free: 12.22 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001556/0.3214, allocations: 35.69 kB / 348.6 MB, free: 12.19 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001156/0.3226, allocations: 290.5 kB / 348.9 MB, free: 11.9 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003129/0.3258, allocations: 1.015 MB / 349.9 MB, free: 10.88 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004261/0.33, allocations: 1.508 MB / 351.4 MB, free: 9.371 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004156/0.3342, allocations: 3.189 MB / 354.6 MB, free: 6.172 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001086/0.3353, allocations: 0.5229 MB / 355.1 MB, free: 5.637 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001625/0.3369, allocations: 0.6888 MB / 355.8 MB, free: 4.945 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001329/0.3383, allocations: 0.8096 MB / 356.6 MB, free: 4.133 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001612/0.3385, allocations: 44 kB / 356.6 MB, free: 4.09 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002854/0.3413, allocations: 1.193 MB / 357.8 MB, free: 2.895 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003699/0.3417, allocations: 275.2 kB / 358.1 MB, free: 2.625 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005818/0.3423, allocations: 429.9 kB / 358.5 MB, free: 2.203 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002926/0.3452, allocations: 1.8 MB / 360.3 MB, free: 408 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.3453, allocations: 0 / 360.3 MB, free: 408 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.3453, allocations: 4 kB / 360.3 MB, free: 404 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.098e-05/0.3453, allocations: 0 / 360.3 MB, free: 404 kB / 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.003047/0.3483, allocations: 1.262 MB / 361.6 MB, free: 15.08 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/0.3484, allocations: 11.97 kB / 361.6 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003473/0.3488, allocations: 92 kB / 361.7 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009579/0.3497, allocations: 0.5972 MB / 362.3 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001103/0.3498, allocations: 104.7 kB / 362.4 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001014/0.3499, allocations: 51.98 kB / 362.4 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001535/0.3515, allocations: 0.8923 MB / 363.3 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.358e-05/0.3515, allocations: 3.984 kB / 363.3 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.725e-05/0.3516, allocations: 31.98 kB / 363.4 MB, free: 13.22 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-05/0.3517, allocations: 49.28 kB / 363.4 MB, free: 13.17 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001427/0.3532, allocations: 0.8443 MB / 364.3 MB, free: 12.32 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.00604/0.3592, allocations: 3.45 MB / 367.7 MB, free: 8.684 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00109/0.3603, allocations: 0.6646 MB / 368.4 MB, free: 8.012 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005761/0.3609, allocations: 370.3 kB / 368.7 MB, free: 7.648 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003276/0.3642, allocations: 2.035 MB / 370.8 MB, free: 5.418 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.317e-05/0.3643, allocations: 43.11 kB / 370.8 MB, free: 5.367 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 2.545e-06/0.3643, allocations: 0 / 370.8 MB, free: 5.367 MB / 302.1 MB Notification: Performance of matching and sorting (n=66): time 0.007274/0.3716, allocations: 2.839 MB / 373.7 MB, free: 2.457 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.325e-05/0.3717, allocations: 81.67 kB / 373.7 MB, free: 2.359 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008741/0.3725, allocations: 0.6837 MB / 374.4 MB, free: 1.668 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.711e-05/0.3726, allocations: 33.7 kB / 374.4 MB, free: 1.629 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00025/0.3729, allocations: 340.4 kB / 374.8 MB, free: 1.293 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001987/0.3731, allocations: 228.7 kB / 375 MB, free: 1.066 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000269/0.3734, allocations: 150.6 kB / 375.2 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002046/0.3736, allocations: 386.8 kB / 375.5 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006564/0.3742, allocations: 368.6 kB / 375.9 MB, free: 168 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008401/0.3751, allocations: 0.523 MB / 376.4 MB, free: 15.57 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0014/0.3765, allocations: 0.8638 MB / 377.3 MB, free: 14.65 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.3765, allocations: 0 / 377.3 MB, free: 14.65 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002133/0.3786, allocations: 1.161 MB / 378.4 MB, free: 13.48 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.243e-05/0.3787, allocations: 4 kB / 378.4 MB, free: 13.47 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.197e-05/0.3787, allocations: 4 kB / 378.4 MB, free: 13.47 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001372/0.3801, allocations: 460.4 kB / 378.9 MB, free: 13.02 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006607/0.3808, allocations: 159.7 kB / 379 MB, free: 12.86 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001282/0.3821, allocations: 1.021 MB / 380.1 MB, free: 11.81 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007615/0.3828, allocations: 43.83 kB / 380.1 MB, free: 11.77 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.358e-05/0.3829, allocations: 35.98 kB / 380.1 MB, free: 11.73 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009028/0.3838, allocations: 0.5331 MB / 380.7 MB, free: 11.2 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007126/0.3846, allocations: 0.5082 MB / 381.2 MB, free: 10.63 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001273/0.3858, allocations: 0.849 MB / 382 MB, free: 9.723 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.769e-06/0.3858, allocations: 4 kB / 382 MB, free: 9.719 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001968/0.3878, allocations: 1.094 MB / 383.1 MB, free: 8.613 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.3879, allocations: 11.98 kB / 383.1 MB, free: 8.602 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.869e-06/0.3879, allocations: 8 kB / 383.2 MB, free: 8.594 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007497/0.3886, allocations: 309 kB / 383.5 MB, free: 8.289 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006523/0.3893, allocations: 171.7 kB / 383.6 MB, free: 8.121 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001008/0.3903, allocations: 0.9073 MB / 384.5 MB, free: 7.188 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006725/0.391, allocations: 43.92 kB / 384.6 MB, free: 7.145 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.348e-05/0.3911, allocations: 32 kB / 384.6 MB, free: 7.113 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.0003441/0.3914, allocations: 232 kB / 384.8 MB, free: 6.879 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001693/0.3916, allocations: 83 kB / 384.9 MB, free: 6.797 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002044/0.3937, allocations: 1.088 MB / 386 MB, free: 5.691 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.759e-06/0.3937, allocations: 11.98 kB / 386 MB, free: 5.68 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.251e-06/0.3937, allocations: 0 / 386 MB, free: 5.68 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.3937, allocations: 0 / 386 MB, free: 5.68 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003211/0.3969, allocations: 2.009 MB / 388 MB, free: 3.609 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.3969, allocations: 0 / 388 MB, free: 3.609 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005884/0.3975, allocations: 119.9 kB / 388.1 MB, free: 3.492 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001241/0.3988, allocations: 448.5 kB / 388.6 MB, free: 3.051 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.832e-05/0.3989, allocations: 23.98 kB / 388.6 MB, free: 3.027 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001356/0.4002, allocations: 1.032 MB / 389.6 MB, free: 1.969 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.4002, allocations: 4.031 kB / 389.6 MB, free: 1.965 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00264/0.4029, allocations: 1.591 MB / 391.2 MB, free: 360 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005307/0.4034, allocations: 248 kB / 391.5 MB, free: 92 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001547/0.4036, allocations: 16 kB / 391.5 MB, free: 76 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006128/0.4042, allocations: 39.91 kB / 391.5 MB, free: 36 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001755/0.4044, allocations: 60.56 kB / 391.6 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.02e-05/0.4045, allocations: 23.98 kB / 391.6 MB, free: 15.95 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006371/0.4051, allocations: 483 kB / 392.1 MB, free: 15.48 MB / 334.1 MB Notification: Performance of sort global known variables: time 3e-07/0.4051, allocations: 4 kB / 392.1 MB, free: 15.48 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001641/0.4068, allocations: 0.5778 MB / 392.7 MB, free: 14.9 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.001122/0.4079, allocations: 486.5 kB / 393.1 MB, free: 14.41 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002991/0.4109, allocations: 1.392 MB / 394.5 MB, free: 13.02 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/0.4109, allocations: 5.75 kB / 394.5 MB, free: 13.02 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00104/0.412, allocations: 463.5 kB / 395 MB, free: 12.57 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001883/0.4139, allocations: 362.8 kB / 395.3 MB, free: 12.21 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003597/0.4175, allocations: 2 MB / 397.3 MB, free: 10.19 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00062/0.4181, allocations: 0.9953 MB / 398.3 MB, free: 9.164 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001164/0.4193, allocations: 306.5 kB / 398.6 MB, free: 8.859 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002164/0.4195, allocations: 71.42 kB / 398.7 MB, free: 8.789 MB / 334.1 MB Notification: Performance of SimCode: time 8.72e-07/0.4195, allocations: 4 kB / 398.7 MB, free: 8.785 MB / 334.1 MB Notification: Performance of Templates: time 0.03745/0.457, allocations: 21.92 MB / 420.6 MB, free: 2.828 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)