Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.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.ThreeTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks") translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001436/0.001436, 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.001525/0.001525, allocations: 192.2 kB / 16.13 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.551/1.551, allocations: 205.1 MB / 222 MB, free: 4.746 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.001164/0.001164, allocations: 59.91 kB / 278.1 MB, free: 12.76 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2809/0.2821, allocations: 46.62 MB / 324.7 MB, free: 1.949 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.03386/0.316, allocations: 30.28 MB / 355 MB, free: 5.785 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02448/0.3405, allocations: 15.74 MB / 370.7 MB, free: 6.008 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003219/0.3438, allocations: 71.5 kB / 370.8 MB, free: 5.938 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001819/0.3457, allocations: 0.5207 MB / 371.3 MB, free: 5.414 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006518/0.3522, allocations: 2.151 MB / 373.4 MB, free: 3.254 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008223/0.3605, allocations: 3.164 MB / 376.6 MB, free: 84 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007537/0.368, allocations: 6.151 MB / 382.7 MB, free: 9.914 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001984/0.37, allocations: 1.027 MB / 383.8 MB, free: 8.863 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002904/0.3729, allocations: 1.339 MB / 385.1 MB, free: 7.52 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00302/0.376, allocations: 1.658 MB / 386.8 MB, free: 5.855 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003806/0.3764, allocations: 92 kB / 386.9 MB, free: 5.766 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006058/0.3824, allocations: 2.359 MB / 389.2 MB, free: 3.402 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008874/0.3833, allocations: 0.5452 MB / 389.8 MB, free: 2.855 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001342/0.3847, allocations: 0.8047 MB / 390.6 MB, free: 2.047 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006512/0.3912, allocations: 3.643 MB / 394.2 MB, free: 14.39 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.3912, allocations: 7.938 kB / 394.2 MB, free: 14.39 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3913, allocations: 0 / 394.2 MB, free: 14.39 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.11e-05/0.3913, allocations: 0 / 394.2 MB, free: 14.39 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.006239/0.3975, allocations: 2.2 MB / 396.4 MB, free: 12.13 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.338e-05/0.3976, allocations: 12.03 kB / 396.4 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005887/0.3982, allocations: 178 kB / 396.6 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001525/0.3997, allocations: 0.9989 MB / 397.6 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001465/0.3999, allocations: 175.1 kB / 397.8 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001699/0.4001, allocations: 95.97 kB / 397.9 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002797/0.4029, allocations: 1.757 MB / 399.6 MB, free: 8.809 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.812e-05/0.4029, allocations: 0 / 399.6 MB, free: 8.809 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001378/0.4031, allocations: 43.97 kB / 399.7 MB, free: 8.766 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001453/0.4032, allocations: 109.9 kB / 399.8 MB, free: 8.656 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0028/0.406, allocations: 1.792 MB / 401.6 MB, free: 6.855 MB / 334.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.01159/0.4176, allocations: 6.703 MB / 408.3 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001913/0.4196, allocations: 1.238 MB / 409.5 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00112/0.4207, allocations: 0.7651 MB / 410.3 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005893/0.4266, allocations: 4.267 MB / 414.5 MB, free: 9.117 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.586e-05/0.4267, allocations: 47.56 kB / 414.6 MB, free: 9.062 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008/0.4275, allocations: 202.6 kB / 414.8 MB, free: 8.863 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 2.485e-06/0.4275, allocations: 0 / 414.8 MB, free: 8.863 MB / 350.1 MB Notification: Performance of matching and sorting (n=112): time 0.01951/0.447, allocations: 5.695 MB / 420.5 MB, free: 3.105 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.189e-05/0.4471, allocations: 145.5 kB / 420.6 MB, free: 2.934 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002014/0.4491, allocations: 1.25 MB / 421.9 MB, free: 1.676 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001806/0.4493, allocations: 49.7 kB / 421.9 MB, free: 1.621 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000563/0.4499, allocations: 0.613 MB / 422.5 MB, free: 1 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003974/0.4503, allocations: 386.5 kB / 422.9 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005491/0.4509, allocations: 295.3 kB / 423.2 MB, free: 332 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001126/0.451, allocations: 305.1 kB / 423.5 MB, free: 24 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001259/0.4523, allocations: 0.7192 MB / 424.2 MB, free: 15.3 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00179/0.4541, allocations: 1.064 MB / 425.3 MB, free: 14.09 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002759/0.4568, allocations: 1.751 MB / 427 MB, free: 12.21 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.135e-06/0.4569, allocations: 0 / 427 MB, free: 12.21 MB / 366.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.004407/0.4613, allocations: 2.296 MB / 429.3 MB, free: 9.898 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.504e-05/0.4613, allocations: 13.28 kB / 429.3 MB, free: 9.887 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.704e-05/0.4614, allocations: 15.94 kB / 429.4 MB, free: 9.871 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007834/0.4692, allocations: 1.281 MB / 430.6 MB, free: 8.586 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001681/0.471, allocations: 295.6 kB / 430.9 MB, free: 8.297 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002949/0.4739, allocations: 1.602 MB / 432.5 MB, free: 6.668 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001963/0.4759, allocations: 79.8 kB / 432.6 MB, free: 6.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003476/0.4763, allocations: 71.91 kB / 432.7 MB, free: 6.52 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001898/0.4782, allocations: 0.9878 MB / 433.7 MB, free: 5.527 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00155/0.4798, allocations: 1.055 MB / 434.7 MB, free: 4.324 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002704/0.4825, allocations: 1.722 MB / 436.4 MB, free: 2.461 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.958e-06/0.4825, allocations: 0 / 436.4 MB, free: 2.461 MB / 366.1 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.00422/0.4868, allocations: 2.199 MB / 438.6 MB, free: 256 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.4868, allocations: 12 kB / 438.6 MB, free: 244 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.68e-05/0.4868, allocations: 8 kB / 438.7 MB, free: 236 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006641/0.4935, allocations: 1.097 MB / 439.8 MB, free: 15.13 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001377/0.4949, allocations: 307.5 kB / 440.1 MB, free: 14.83 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002124/0.497, allocations: 1.446 MB / 441.5 MB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001661/0.4987, allocations: 87.78 kB / 441.6 MB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002442/0.4989, allocations: 71.97 kB / 441.7 MB, free: 13.2 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 6 (tank3.inFlow[1],tank3.regularFlow[1],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 (156): * Single equations (assignments): 155 * 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 {(8,18)} Notification: Performance of prepare postOptimizeDAE: time 0.0006353/0.4996, allocations: 267.8 kB / 441.9 MB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005808/0.5002, allocations: 146.2 kB / 442.1 MB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004438/0.5046, allocations: 2.094 MB / 444.2 MB, free: 10.68 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-05/0.5047, allocations: 16 kB / 444.2 MB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.306e-06/0.5047, allocations: 4 kB / 444.2 MB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.323e-05/0.5047, allocations: 7.969 kB / 444.2 MB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006288/0.511, allocations: 3.571 MB / 447.8 MB, free: 7.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.514e-06/0.511, allocations: 4 kB / 447.8 MB, free: 7.016 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009776/0.512, allocations: 199.7 kB / 448 MB, free: 6.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003796/0.5158, allocations: 0.9922 MB / 448.9 MB, free: 5.824 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001309/0.516, allocations: 39.98 kB / 449 MB, free: 5.785 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002297/0.5183, allocations: 1.615 MB / 450.6 MB, free: 4.145 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.205e-06/0.5183, allocations: 0 / 450.6 MB, free: 4.145 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004765/0.5231, allocations: 2.907 MB / 453.5 MB, free: 1.219 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008877/0.524, allocations: 391 kB / 453.9 MB, free: 0.8164 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003807/0.5243, allocations: 28 kB / 453.9 MB, free: 0.7891 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001262/0.5256, allocations: 71.88 kB / 454 MB, free: 0.7188 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002389/0.5259, allocations: 97.17 kB / 454.1 MB, free: 0.625 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000144/0.526, allocations: 47.97 kB / 454.1 MB, free: 0.5781 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.2407/0.7667, allocations: 0.8457 MB / 455 MB, free: 117 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.453e-06/0.7668, allocations: 0.9062 kB / 455 MB, free: 117 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.005751/0.7725, allocations: 1.163 MB / 456.1 MB, free: 117 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T,tank3.level,tank3.medium.T) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * 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 {(9,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002342/0.7749, allocations: 0.8467 MB / 457 MB, free: 116.9 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007066/0.782, allocations: 2.845 MB / 459.8 MB, free: 116.2 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.807e-06/0.782, allocations: 8.469 kB / 459.8 MB, free: 116.2 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001685/0.7837, allocations: 0.8732 MB / 460.7 MB, free: 115.9 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003041/0.7867, allocations: 0.6017 MB / 461.3 MB, free: 115.8 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005255/0.792, allocations: 3.585 MB / 464.9 MB, free: 114 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006364/0.7927, allocations: 1.293 MB / 466.2 MB, free: 113.2 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001864/0.7945, allocations: 0.5966 MB / 466.8 MB, free: 113 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003346/0.7949, allocations: 131 kB / 466.9 MB, free: 113 MB / 382.1 MB Notification: Performance of SimCode: time 9.92e-07/0.7949, allocations: 0 / 466.9 MB, free: 113 MB / 382.1 MB Notification: Performance of Templates: time 0.05327/0.8482, allocations: 41.86 MB / 0.4969 GB, free: 72.82 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1)