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.001426/0.001426, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.001738/0.001738, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.62/1.62, allocations: 205.4 MB / 222.1 MB, free: 5.656 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.0004593/0.0004595, allocations: 12 kB / 278.9 MB, free: 12.85 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2597/0.2601, allocations: 47.58 MB / 326.4 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.02607/0.2863, allocations: 25.17 MB / 351.6 MB, free: 10.29 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01864/0.305, allocations: 13.38 MB / 365 MB, free: 12.89 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002053/0.3071, allocations: 59.5 kB / 365 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001553/0.3086, allocations: 0.5284 MB / 365.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00579/0.3144, allocations: 1.881 MB / 367.5 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00855/0.323, allocations: 2.908 MB / 370.4 MB, free: 7.504 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004637/0.3276, allocations: 2.314 MB / 372.7 MB, free: 5.188 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001536/0.3292, allocations: 0.9807 MB / 373.7 MB, free: 4.184 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001979/0.3312, allocations: 1.215 MB / 374.9 MB, free: 2.965 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001527/0.3327, allocations: 1.09 MB / 376 MB, free: 1.871 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002044/0.3329, allocations: 84 kB / 376 MB, free: 1.789 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004331/0.3373, allocations: 2.212 MB / 378.3 MB, free: 15.57 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005212/0.3378, allocations: 0.4948 MB / 378.7 MB, free: 15.07 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003649/0.3382, allocations: 313 kB / 379.1 MB, free: 14.76 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003655/0.3419, allocations: 2.623 MB / 381.7 MB, free: 12.13 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.606e-06/0.3419, allocations: 0 / 381.7 MB, free: 12.13 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3419, allocations: 0 / 381.7 MB, free: 12.13 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.596e-05/0.3419, allocations: 0 / 381.7 MB, free: 12.13 MB / 318.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.004539/0.3465, allocations: 1.904 MB / 383.6 MB, free: 10.18 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.3465, allocations: 8.031 kB / 383.6 MB, free: 10.17 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004551/0.347, allocations: 174.1 kB / 383.8 MB, free: 9.996 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00162/0.3486, allocations: 0.9762 MB / 384.7 MB, free: 8.977 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001524/0.3488, allocations: 175.1 kB / 384.9 MB, free: 8.785 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001842/0.349, allocations: 104 kB / 385 MB, free: 8.684 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002622/0.3516, allocations: 1.737 MB / 386.7 MB, free: 6.895 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.903e-05/0.3516, allocations: 0 / 386.7 MB, free: 6.895 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001385/0.3518, allocations: 47.97 kB / 386.8 MB, free: 6.848 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000155/0.3519, allocations: 125.8 kB / 386.9 MB, free: 6.723 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002758/0.3547, allocations: 1.776 MB / 388.7 MB, free: 4.938 MB / 318.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.01129/0.366, allocations: 6.789 MB / 395.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001832/0.3679, allocations: 1.234 MB / 396.7 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006248/0.3741, allocations: 4.318 MB / 401 MB, free: 7.84 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.989e-05/0.3742, allocations: 47.56 kB / 401.1 MB, free: 7.785 MB / 334.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008476/0.375, allocations: 202.6 kB / 401.3 MB, free: 7.586 MB / 334.1 MB Notification: Performance of pre-optimization done (n=97): time 3.767e-06/0.3751, allocations: 4 kB / 401.3 MB, free: 7.582 MB / 334.1 MB Notification: Performance of matching and sorting (n=112): time 0.01864/0.3937, allocations: 5.735 MB / 407 MB, free: 1.781 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001036/0.3939, allocations: 141.5 kB / 407.2 MB, free: 1.613 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001712/0.3956, allocations: 1.238 MB / 408.4 MB, free: 376 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001312/0.3957, allocations: 45.7 kB / 408.4 MB, free: 324 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005141/0.3962, allocations: 0.613 MB / 409 MB, free: 15.7 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003564/0.3966, allocations: 386.4 kB / 409.4 MB, free: 15.31 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.819e-05/0.3967, allocations: 35.94 kB / 409.5 MB, free: 15.28 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002059/0.3969, allocations: 361.9 kB / 409.8 MB, free: 14.92 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001232/0.3982, allocations: 0.6949 MB / 410.5 MB, free: 14.22 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001332/0.3995, allocations: 1.04 MB / 411.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001271/0.4008, allocations: 0.8105 MB / 412.4 MB, free: 12.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.825e-06/0.4008, allocations: 4 kB / 412.4 MB, free: 12.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003881/0.4047, allocations: 2.241 MB / 414.6 MB, free: 9.973 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001622/0.4063, allocations: 3.772 MB / 418.4 MB, free: 5.934 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.184e-05/0.4064, allocations: 12 kB / 418.4 MB, free: 5.922 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006905/0.4133, allocations: 1.261 MB / 419.7 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001491/0.4148, allocations: 307.5 kB / 420 MB, free: 4.355 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002531/0.4173, allocations: 1.599 MB / 421.6 MB, free: 2.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001355/0.4187, allocations: 83.89 kB / 421.6 MB, free: 2.648 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001442/0.4189, allocations: 71.95 kB / 421.7 MB, free: 2.578 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/0.4189, allocations: 4 kB / 421.7 MB, free: 2.574 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00327/0.4222, allocations: 2.03 MB / 423.7 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.255e-05/0.4222, allocations: 8 kB / 423.7 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006102/0.4283, allocations: 1.121 MB / 424.9 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001252/0.4296, allocations: 303.5 kB / 425.2 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002136/0.4317, allocations: 1.461 MB / 426.6 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001319/0.4331, allocations: 83.8 kB / 426.7 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001857/0.4333, allocations: 67.97 kB / 426.8 MB, free: 13.47 MB / 366.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 (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 initialization (156): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 18} Notification: Performance of prepare postOptimizeDAE: time 0.0008541/0.4341, allocations: 468.6 kB / 427.2 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003459/0.4345, allocations: 142.3 kB / 427.4 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004043/0.4385, allocations: 2.086 MB / 429.5 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.475e-05/0.4386, allocations: 12 kB / 429.5 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.125e-06/0.4386, allocations: 3.938 kB / 429.5 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.265e-05/0.4386, allocations: 7.984 kB / 429.5 MB, free: 10.74 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006103/0.4447, allocations: 3.587 MB / 433.1 MB, free: 7.098 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.641e-06/0.4447, allocations: 0 / 433.1 MB, free: 7.098 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009217/0.4456, allocations: 199.7 kB / 433.3 MB, free: 6.902 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003706/0.4494, allocations: 1 MB / 434.3 MB, free: 5.898 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001157/0.4495, allocations: 31.98 kB / 434.3 MB, free: 5.867 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002497/0.452, allocations: 1.607 MB / 435.9 MB, free: 4.227 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.452, allocations: 8.141 kB / 435.9 MB, free: 4.219 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004897/0.4569, allocations: 2.892 MB / 438.8 MB, free: 1.309 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001269/0.4582, allocations: 426.9 kB / 439.2 MB, free: 0.8711 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004445/0.4587, allocations: 24 kB / 439.2 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001322/0.46, allocations: 79.84 kB / 439.3 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002476/0.4603, allocations: 101.1 kB / 439.4 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001261/0.4604, allocations: 55.97 kB / 439.5 MB, free: 0.6172 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001324/0.4617, allocations: 0.8324 MB / 440.3 MB, free: 15.78 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4617, allocations: 0 / 440.3 MB, free: 15.78 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004049/0.4658, allocations: 1.163 MB / 441.5 MB, free: 14.62 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {9 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.002329/0.4681, allocations: 0.8261 MB / 442.3 MB, free: 13.78 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006188/0.4743, allocations: 2.772 MB / 445.1 MB, free: 11.01 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.045e-06/0.4744, allocations: 0 / 445.1 MB, free: 11.01 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001924/0.4763, allocations: 0.8725 MB / 445.9 MB, free: 10.14 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003185/0.4795, allocations: 0.5978 MB / 446.5 MB, free: 9.543 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006297/0.4858, allocations: 3.566 MB / 450.1 MB, free: 5.953 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001125/0.487, allocations: 1.323 MB / 451.4 MB, free: 4.605 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002229/0.4892, allocations: 0.5823 MB / 452 MB, free: 4.016 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004011/0.4896, allocations: 127.3 kB / 452.1 MB, free: 3.891 MB / 382.1 MB Notification: Performance of SimCode: time 8.42e-07/0.4896, allocations: 0 / 452.1 MB, free: 3.891 MB / 382.1 MB Notification: Performance of Templates: time 0.2416/0.7313, allocations: 40.39 MB / 492.5 MB, free: 87.74 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: