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.00182/0.00182, allocations: 108 kB / 15.61 MB, free: 152 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.001293/0.001293, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.54/1.54, allocations: 205.1 MB / 222.4 MB, free: 4.598 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.001356/0.001356, allocations: 55.91 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2562/0.2576, allocations: 46.63 MB / 325.3 MB, free: 1.828 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01721/0.2748, allocations: 15.84 MB / 341.2 MB, free: 4.035 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01147/0.2864, allocations: 6.835 MB / 348 MB, free: 13.19 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008781/0.2873, allocations: 23.88 kB / 348 MB, free: 13.16 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009693/0.2883, allocations: 337.9 kB / 348.3 MB, free: 12.83 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002758/0.2911, allocations: 1.065 MB / 349.4 MB, free: 11.76 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004471/0.2956, allocations: 1.805 MB / 351.2 MB, free: 9.953 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002477/0.2981, allocations: 2.152 MB / 353.4 MB, free: 7.793 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008666/0.2989, allocations: 0.588 MB / 354 MB, free: 7.188 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001454/0.3004, allocations: 0.7904 MB / 354.7 MB, free: 6.395 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001247/0.3017, allocations: 0.8057 MB / 355.5 MB, free: 5.586 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001762/0.3019, allocations: 80 kB / 355.6 MB, free: 5.508 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002469/0.3043, allocations: 1.205 MB / 356.8 MB, free: 4.301 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003637/0.3047, allocations: 315.2 kB / 357.1 MB, free: 3.992 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005455/0.3053, allocations: 461.9 kB / 357.6 MB, free: 3.539 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002574/0.3079, allocations: 1.827 MB / 359.4 MB, free: 1.707 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.3079, allocations: 0 / 359.4 MB, free: 1.707 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3079, allocations: 0 / 359.4 MB, free: 1.707 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.255e-05/0.3079, allocations: 0 / 359.4 MB, free: 1.707 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.002647/0.3106, allocations: 1.262 MB / 360.7 MB, free: 400 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.3106, allocations: 8.031 kB / 360.7 MB, free: 392 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003302/0.3109, allocations: 103.8 kB / 360.8 MB, free: 288 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009208/0.3119, allocations: 0.5856 MB / 361.4 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001152/0.312, allocations: 108.7 kB / 361.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000115/0.3121, allocations: 59.89 kB / 361.5 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00148/0.3136, allocations: 0.8962 MB / 362.4 MB, free: 14.56 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.104e-05/0.3136, allocations: 4 kB / 362.4 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.718e-05/0.3137, allocations: 19.98 kB / 362.5 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.053e-05/0.3138, allocations: 53.28 kB / 362.5 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001344/0.3152, allocations: 0.8405 MB / 363.4 MB, free: 13.64 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.005562/0.3208, allocations: 3.47 MB / 366.8 MB, free: 9.984 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00103/0.3218, allocations: 0.6569 MB / 367.5 MB, free: 9.32 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005584/0.3224, allocations: 366.3 kB / 367.8 MB, free: 8.957 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002825/0.3252, allocations: 2.043 MB / 369.9 MB, free: 6.719 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.933e-05/0.3253, allocations: 47.12 kB / 369.9 MB, free: 6.664 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 2.013e-06/0.3253, allocations: 0 / 369.9 MB, free: 6.664 MB / 302.1 MB Notification: Performance of matching and sorting (n=66): time 0.006893/0.3322, allocations: 2.828 MB / 372.8 MB, free: 3.766 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.596e-05/0.3323, allocations: 85.67 kB / 372.8 MB, free: 3.664 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008386/0.3331, allocations: 0.6837 MB / 373.5 MB, free: 2.973 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.095e-05/0.3332, allocations: 45.7 kB / 373.6 MB, free: 2.922 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000233/0.3334, allocations: 332.4 kB / 373.9 MB, free: 2.594 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001899/0.3336, allocations: 224.8 kB / 374.1 MB, free: 2.371 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002653/0.3339, allocations: 154.5 kB / 374.3 MB, free: 2.215 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001768/0.3341, allocations: 382.8 kB / 374.6 MB, free: 1.832 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006049/0.3347, allocations: 372.6 kB / 375 MB, free: 1.465 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007525/0.3355, allocations: 0.5191 MB / 375.5 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001333/0.3368, allocations: 0.8677 MB / 376.4 MB, free: 15.95 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.578e-06/0.3368, allocations: 4 kB / 376.4 MB, free: 15.94 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00206/0.3389, allocations: 1.153 MB / 377.5 MB, free: 14.78 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.298e-05/0.3389, allocations: 8 kB / 377.5 MB, free: 14.77 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.392e-05/0.3389, allocations: 7.984 kB / 377.6 MB, free: 14.76 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001429/0.3404, allocations: 468.4 kB / 378 MB, free: 14.3 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006637/0.341, allocations: 159.8 kB / 378.2 MB, free: 14.14 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001202/0.3423, allocations: 1.017 MB / 379.2 MB, free: 13.1 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000601/0.3429, allocations: 36.02 kB / 379.2 MB, free: 13.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.934e-05/0.343, allocations: 28 kB / 379.3 MB, free: 13.04 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008511/0.3438, allocations: 0.5331 MB / 379.8 MB, free: 12.5 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007135/0.3445, allocations: 0.516 MB / 380.3 MB, free: 11.93 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00128/0.3458, allocations: 0.8412 MB / 381.1 MB, free: 11.02 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.893e-06/0.3459, allocations: 4 kB / 381.1 MB, free: 11.02 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001999/0.3479, allocations: 1.098 MB / 382.2 MB, free: 9.91 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.3479, allocations: 8 kB / 382.3 MB, free: 9.902 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.325e-06/0.3479, allocations: 4 kB / 382.3 MB, free: 9.898 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007356/0.3486, allocations: 317.1 kB / 382.6 MB, free: 9.586 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006378/0.3493, allocations: 163.7 kB / 382.7 MB, free: 9.426 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001085/0.3504, allocations: 0.9151 MB / 383.6 MB, free: 8.484 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006811/0.3511, allocations: 36.02 kB / 383.7 MB, free: 8.449 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.24e-05/0.3512, allocations: 28 kB / 383.7 MB, free: 8.422 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.0002831/0.3515, allocations: 236 kB / 383.9 MB, free: 8.184 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001968/0.3517, allocations: 83.09 kB / 384 MB, free: 8.102 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002111/0.3538, allocations: 1.084 MB / 385.1 MB, free: 7.004 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.446e-06/0.3538, allocations: 8 kB / 385.1 MB, free: 6.996 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.286e-06/0.3538, allocations: 3.984 kB / 385.1 MB, free: 6.992 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.3538, allocations: 0 / 385.1 MB, free: 6.992 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003243/0.3571, allocations: 2.009 MB / 387.1 MB, free: 4.918 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.3571, allocations: 0 / 387.1 MB, free: 4.918 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005817/0.3577, allocations: 115.9 kB / 387.2 MB, free: 4.805 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001198/0.3589, allocations: 448.4 kB / 387.7 MB, free: 4.363 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.408e-05/0.359, allocations: 23.98 kB / 387.7 MB, free: 4.34 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001229/0.3602, allocations: 1.028 MB / 388.7 MB, free: 3.285 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.3603, allocations: 4.031 kB / 388.7 MB, free: 3.281 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002706/0.363, allocations: 1.588 MB / 390.3 MB, free: 1.668 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004915/0.3635, allocations: 244.1 kB / 390.5 MB, free: 1.41 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001978/0.3637, allocations: 23.94 kB / 390.6 MB, free: 1.387 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006414/0.3643, allocations: 35.91 kB / 390.6 MB, free: 1.352 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001529/0.3645, allocations: 52.58 kB / 390.7 MB, free: 1.301 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.822e-05/0.3646, allocations: 35.91 kB / 390.7 MB, free: 1.266 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006714/0.3653, allocations: 479 kB / 391.2 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3653, allocations: 0 / 391.2 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001758/0.367, allocations: 0.5779 MB / 391.7 MB, free: 228 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.001296/0.3683, allocations: 478.5 kB / 392.2 MB, free: 15.74 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003574/0.3719, allocations: 1.572 MB / 393.8 MB, free: 14.17 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.623e-06/0.372, allocations: 0 / 393.8 MB, free: 14.17 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001057/0.373, allocations: 475.5 kB / 394.2 MB, free: 13.71 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001966/0.375, allocations: 386.3 kB / 394.6 MB, free: 13.34 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003763/0.3788, allocations: 1.743 MB / 396.4 MB, free: 11.57 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006584/0.3795, allocations: 0.9911 MB / 397.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001224/0.3807, allocations: 306.6 kB / 397.7 MB, free: 10.24 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002239/0.3809, allocations: 75.41 kB / 397.7 MB, free: 10.17 MB / 334.1 MB Notification: Performance of SimCode: time 6.52e-07/0.3809, allocations: 3.938 kB / 397.7 MB, free: 10.16 MB / 334.1 MB Notification: Performance of Templates: time 0.04015/0.4211, allocations: 22.94 MB / 420.7 MB, free: 3.184 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)