Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks") translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.001723/0.001723, 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.002319/0.002319, allocations: 192.7 kB / 16.13 MB, free: 6.707 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.542/1.542, allocations: 205.1 MB / 222 MB, free: 4.754 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.001118/0.001118, allocations: 43.94 kB / 278 MB, free: 12.79 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2603/0.2614, allocations: 46.62 MB / 324.7 MB, free: 1.934 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.03729/0.2988, allocations: 30.28 MB / 355 MB, free: 5.785 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.03234/0.3312, allocations: 15.74 MB / 370.7 MB, free: 6.008 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003875/0.3351, allocations: 67.44 kB / 370.8 MB, free: 5.941 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002642/0.3378, allocations: 0.5246 MB / 371.3 MB, free: 5.414 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0097/0.3475, allocations: 2.147 MB / 373.4 MB, free: 3.258 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01312/0.3607, allocations: 3.176 MB / 376.6 MB, free: 76 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01241/0.3731, allocations: 6.147 MB / 382.7 MB, free: 9.91 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003042/0.3762, allocations: 1.03 MB / 383.8 MB, free: 8.855 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004688/0.3809, allocations: 1.331 MB / 385.1 MB, free: 7.52 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004486/0.3854, allocations: 1.666 MB / 386.8 MB, free: 5.848 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005896/0.3861, allocations: 88 kB / 386.9 MB, free: 5.762 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007537/0.3936, allocations: 2.355 MB / 389.2 MB, free: 3.402 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00125/0.3949, allocations: 0.5491 MB / 389.8 MB, free: 2.852 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001823/0.3967, allocations: 0.8047 MB / 390.6 MB, free: 2.043 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009557/0.4063, allocations: 3.639 MB / 394.2 MB, free: 14.39 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.085e-06/0.4064, allocations: 0 / 394.2 MB, free: 14.39 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.4064, allocations: 4 kB / 394.2 MB, free: 14.39 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.734e-05/0.4064, 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.007547/0.414, allocations: 2.2 MB / 396.4 MB, free: 12.14 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.984e-05/0.4141, allocations: 8.031 kB / 396.4 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008568/0.4149, allocations: 182 kB / 396.6 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002044/0.417, allocations: 1.007 MB / 397.6 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001941/0.4172, allocations: 171.1 kB / 397.8 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002345/0.4174, allocations: 104 kB / 397.9 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003314/0.4208, allocations: 1.749 MB / 399.6 MB, free: 8.809 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.416e-05/0.4208, allocations: 3.984 kB / 399.6 MB, free: 8.805 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00016/0.421, allocations: 47.95 kB / 399.7 MB, free: 8.758 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001571/0.4212, allocations: 105.9 kB / 399.8 MB, free: 8.652 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003375/0.4245, allocations: 1.788 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.01387/0.4384, allocations: 6.703 MB / 408.3 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002152/0.4406, allocations: 1.238 MB / 409.5 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001313/0.4419, allocations: 0.7651 MB / 410.3 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007061/0.449, allocations: 4.271 MB / 414.5 MB, free: 9.113 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.802e-05/0.4491, allocations: 47.56 kB / 414.6 MB, free: 9.059 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001122/0.4503, allocations: 202.6 kB / 414.8 MB, free: 8.859 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 6.282e-06/0.4503, allocations: 4 kB / 414.8 MB, free: 8.855 MB / 350.1 MB Notification: Performance of matching and sorting (n=112): time 0.02032/0.4706, allocations: 5.691 MB / 420.5 MB, free: 3.102 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.389e-05/0.4708, allocations: 141.5 kB / 420.6 MB, free: 2.934 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00239/0.4732, allocations: 1.25 MB / 421.9 MB, free: 1.676 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000198/0.4734, allocations: 45.7 kB / 421.9 MB, free: 1.625 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005991/0.474, allocations: 0.6247 MB / 422.5 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004656/0.4745, allocations: 378.5 kB / 422.9 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006101/0.4751, allocations: 295.3 kB / 423.2 MB, free: 332 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.4752, allocations: 309 kB / 423.5 MB, free: 20 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001365/0.4766, allocations: 0.7192 MB / 424.2 MB, free: 15.29 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001664/0.4783, allocations: 1.068 MB / 425.3 MB, free: 14.09 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002873/0.4812, allocations: 1.747 MB / 427 MB, free: 12.2 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.986e-05/0.4812, allocations: 8 kB / 427 MB, free: 12.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.004819/0.486, allocations: 2.284 MB / 429.3 MB, free: 9.898 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.052e-05/0.4861, allocations: 12.62 kB / 429.3 MB, free: 9.887 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.892e-05/0.4861, allocations: 15.92 kB / 429.4 MB, free: 9.871 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00761/0.4937, allocations: 1.285 MB / 430.6 MB, free: 8.582 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001548/0.4953, allocations: 291.6 kB / 430.9 MB, free: 8.297 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003165/0.4985, allocations: 1.599 MB / 432.5 MB, free: 6.672 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001939/0.5005, allocations: 83.8 kB / 432.6 MB, free: 6.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003463/0.5009, allocations: 75.91 kB / 432.7 MB, free: 6.516 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00221/0.5031, allocations: 0.9762 MB / 433.7 MB, free: 5.535 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001749/0.5049, allocations: 1.063 MB / 434.7 MB, free: 4.324 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003219/0.5081, allocations: 1.722 MB / 436.4 MB, free: 2.461 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.697e-05/0.5081, allocations: 4 kB / 436.4 MB, free: 2.457 MB / 366.1 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.004714/0.5129, allocations: 2.194 MB / 438.6 MB, free: 256 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.5129, allocations: 8 kB / 438.6 MB, free: 248 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.111e-05/0.5129, allocations: 12.62 kB / 438.7 MB, free: 236 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006484/0.5194, allocations: 1.097 MB / 439.8 MB, free: 15.13 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001529/0.521, allocations: 307.5 kB / 440.1 MB, free: 14.83 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002454/0.5234, allocations: 1.442 MB / 441.5 MB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002013/0.5255, allocations: 87.8 kB / 441.6 MB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000296/0.5258, allocations: 79.94 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.0006551/0.5265, allocations: 267.8 kB / 441.9 MB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005345/0.527, allocations: 146.2 kB / 442.1 MB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004689/0.5317, allocations: 2.094 MB / 444.2 MB, free: 10.67 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.32e-05/0.5318, allocations: 12 kB / 444.2 MB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.5318, allocations: 0 / 444.2 MB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.504e-05/0.5318, allocations: 7.969 kB / 444.2 MB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006672/0.5385, allocations: 3.583 MB / 447.8 MB, free: 7.012 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/0.5385, allocations: 0 / 447.8 MB, free: 7.012 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009799/0.5395, allocations: 199.7 kB / 448 MB, free: 6.816 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003879/0.5434, allocations: 0.9922 MB / 448.9 MB, free: 5.82 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001659/0.5436, allocations: 31.97 kB / 449 MB, free: 5.789 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002372/0.5459, allocations: 1.607 MB / 450.6 MB, free: 4.156 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.546, allocations: 4.031 kB / 450.6 MB, free: 4.152 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004963/0.5509, allocations: 2.911 MB / 453.5 MB, free: 1.223 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009676/0.5519, allocations: 403 kB / 453.9 MB, free: 0.8086 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000379/0.5523, allocations: 20 kB / 453.9 MB, free: 0.7891 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001245/0.5536, allocations: 79.88 kB / 454 MB, free: 0.7109 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002555/0.5538, allocations: 93.17 kB / 454.1 MB, free: 0.6211 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000153/0.554, allocations: 51.97 kB / 454.1 MB, free: 0.5703 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.2194/0.7734, allocations: 0.8376 MB / 455 MB, free: 117 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.212e-06/0.7734, allocations: 1.281 kB / 455 MB, free: 117 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.005278/0.7787, allocations: 1.164 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.002273/0.781, allocations: 0.858 MB / 457 MB, free: 116.9 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007204/0.7882, allocations: 2.838 MB / 459.8 MB, free: 116.2 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.016e-05/0.7882, allocations: 1.219 kB / 459.8 MB, free: 116.2 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00174/0.79, allocations: 0.8712 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.002926/0.7929, allocations: 0.6065 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.005356/0.7983, allocations: 3.582 MB / 464.9 MB, free: 114 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006246/0.7989, allocations: 1.298 MB / 466.2 MB, free: 113.2 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001937/0.8009, allocations: 0.5986 MB / 466.8 MB, free: 113 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003457/0.8012, allocations: 126 kB / 466.9 MB, free: 113 MB / 382.1 MB Notification: Performance of SimCode: time 9.92e-07/0.8012, allocations: 0 / 466.9 MB, free: 113 MB / 382.1 MB Notification: Performance of Templates: time 0.05309/0.8543, allocations: 41.86 MB / 0.4969 GB, free: 72.86 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1)