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.001435/0.001435, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.001637/0.001637, allocations: 173.1 kB / 16.27 MB, free: 6.656 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.585/1.585, allocations: 205.4 MB / 222.4 MB, free: 5.57 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.0006945/0.0006945, allocations: 8 kB / 279.4 MB, free: 12.53 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2788/0.2795, allocations: 47.6 MB / 327 MB, free: 1.395 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.03126/0.3108, allocations: 29.52 MB / 356.6 MB, free: 5.75 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02099/0.3318, allocations: 15.5 MB / 372.1 MB, free: 6.207 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002047/0.3339, allocations: 63.44 kB / 372.1 MB, free: 6.145 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001412/0.3353, allocations: 0.5168 MB / 372.6 MB, free: 5.625 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005243/0.3406, allocations: 2.147 MB / 374.8 MB, free: 3.469 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008499/0.3491, allocations: 3.168 MB / 378 MB, free: 300 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007672/0.3568, allocations: 6.159 MB / 384.1 MB, free: 10.12 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00203/0.3588, allocations: 1.021 MB / 385.1 MB, free: 9.078 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002626/0.3615, allocations: 1.315 MB / 386.4 MB, free: 7.758 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0025/0.364, allocations: 1.655 MB / 388.1 MB, free: 6.098 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002755/0.3643, allocations: 84 kB / 388.2 MB, free: 6.016 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005238/0.3695, allocations: 2.351 MB / 390.5 MB, free: 3.66 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008202/0.3704, allocations: 0.553 MB / 391.1 MB, free: 3.105 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001225/0.3716, allocations: 0.8181 MB / 391.9 MB, free: 2.277 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006597/0.3782, allocations: 3.603 MB / 395.5 MB, free: 14.66 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.3783, allocations: 0 / 395.5 MB, free: 14.66 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.3783, allocations: 0 / 395.5 MB, free: 14.66 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.469e-05/0.3783, allocations: 0 / 395.5 MB, free: 14.66 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.005161/0.3835, allocations: 1.893 MB / 397.4 MB, free: 12.72 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.198e-05/0.3835, allocations: 15.97 kB / 397.4 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004761/0.384, allocations: 170.1 kB / 397.6 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001512/0.3855, allocations: 1.003 MB / 398.6 MB, free: 11.49 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001555/0.3857, allocations: 175 kB / 398.8 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001967/0.3859, allocations: 99.97 kB / 398.9 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002879/0.3888, allocations: 1.753 MB / 400.6 MB, free: 9.395 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.383e-05/0.3888, allocations: 3.906 kB / 400.6 MB, free: 9.391 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001499/0.389, allocations: 43.97 kB / 400.7 MB, free: 9.348 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001562/0.3892, allocations: 121.9 kB / 400.8 MB, free: 9.227 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002801/0.392, allocations: 1.784 MB / 402.6 MB, free: 7.434 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.01106/0.403, allocations: 6.738 MB / 409.3 MB, free: 364 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001858/0.4049, allocations: 1.242 MB / 410.5 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001099/0.406, allocations: 0.7573 MB / 411.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005943/0.412, allocations: 4.294 MB / 415.6 MB, free: 9.633 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.147e-05/0.4121, allocations: 43.56 kB / 415.6 MB, free: 9.582 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000813/0.4129, allocations: 210.7 kB / 415.8 MB, free: 9.375 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 2.806e-06/0.4129, allocations: 0 / 415.8 MB, free: 9.375 MB / 350.1 MB Notification: Performance of matching and sorting (n=112): time 0.01809/0.431, allocations: 5.758 MB / 421.6 MB, free: 3.555 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.774e-05/0.4311, allocations: 145.5 kB / 421.7 MB, free: 3.383 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001718/0.4329, allocations: 1.246 MB / 423 MB, free: 2.129 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001212/0.433, allocations: 45.7 kB / 423 MB, free: 2.078 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004656/0.4335, allocations: 0.6207 MB / 423.6 MB, free: 1.449 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003251/0.4338, allocations: 382.5 kB / 424 MB, free: 1.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001909/0.434, allocations: 125.6 kB / 424.1 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.863e-05/0.4341, allocations: 305.1 kB / 424.4 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001146/0.4352, allocations: 0.7066 MB / 425.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001324/0.4366, allocations: 1.068 MB / 426.2 MB, free: 14.73 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002499/0.4391, allocations: 1.751 MB / 428 MB, free: 12.84 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.673e-06/0.4391, allocations: 4 kB / 428 MB, free: 12.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003818/0.4429, allocations: 2.285 MB / 430.3 MB, free: 10.54 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003069/0.4432, allocations: 383.1 kB / 430.6 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.153e-05/0.4433, allocations: 8 kB / 430.6 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006897/0.4502, allocations: 1.284 MB / 431.9 MB, free: 8.734 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001344/0.4515, allocations: 299.5 kB / 432.2 MB, free: 8.441 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00232/0.4539, allocations: 1.61 MB / 433.8 MB, free: 6.805 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001442/0.4553, allocations: 83.8 kB / 433.9 MB, free: 6.723 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001367/0.4555, allocations: 67.97 kB / 434 MB, free: 6.656 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.36e-05/0.4555, allocations: 4 kB / 434 MB, free: 6.652 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00338/0.4589, allocations: 2.038 MB / 436 MB, free: 4.609 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.835e-05/0.4589, allocations: 8 kB / 436 MB, free: 4.602 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006113/0.465, allocations: 1.113 MB / 437.1 MB, free: 3.484 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001322/0.4664, allocations: 307.5 kB / 437.4 MB, free: 3.184 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00223/0.4686, allocations: 1.477 MB / 438.9 MB, free: 1.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001456/0.4701, allocations: 83.8 kB / 439 MB, free: 1.598 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001355/0.4702, allocations: 71.91 kB / 439.1 MB, free: 1.527 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 (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.0008568/0.4711, allocations: 464.6 kB / 439.5 MB, free: 1.062 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002545/0.4714, allocations: 150.2 kB / 439.7 MB, free: 0.9141 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004166/0.4755, allocations: 2.094 MB / 441.8 MB, free: 14.81 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.847e-05/0.4756, allocations: 15.94 kB / 441.8 MB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.917e-06/0.4756, allocations: 0 / 441.8 MB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.413e-05/0.4756, allocations: 3.984 kB / 441.8 MB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005795/0.4814, allocations: 3.579 MB / 445.4 MB, free: 11.15 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.925e-06/0.4814, allocations: 0 / 445.4 MB, free: 11.15 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008914/0.4823, allocations: 191.8 kB / 445.5 MB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00363/0.486, allocations: 0.9961 MB / 446.5 MB, free: 9.965 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001027/0.4861, allocations: 35.98 kB / 446.6 MB, free: 9.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002094/0.4882, allocations: 1.607 MB / 448.2 MB, free: 8.293 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.4882, allocations: 4.094 kB / 448.2 MB, free: 8.289 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00426/0.4925, allocations: 2.919 MB / 451.1 MB, free: 5.352 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007481/0.4932, allocations: 403.1 kB / 451.5 MB, free: 4.938 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001892/0.4934, allocations: 28 kB / 451.5 MB, free: 4.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009671/0.4944, allocations: 79.84 kB / 451.6 MB, free: 4.832 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002367/0.4947, allocations: 101.1 kB / 451.7 MB, free: 4.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001163/0.4948, allocations: 47.97 kB / 451.7 MB, free: 4.684 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001089/0.4959, allocations: 0.848 MB / 452.6 MB, free: 3.832 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4959, allocations: 0 / 452.6 MB, free: 3.832 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002724/0.4986, allocations: 1.163 MB / 453.8 MB, free: 2.668 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.001805/0.5004, allocations: 0.8457 MB / 454.6 MB, free: 1.812 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.201/0.7014, allocations: 2.831 MB / 457.4 MB, free: 117 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-05/0.7015, allocations: 1.188 kB / 457.4 MB, free: 117 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002306/0.7038, allocations: 0.8702 MB / 458.3 MB, free: 116.9 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003442/0.7073, allocations: 0.6139 MB / 458.9 MB, free: 116.8 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006135/0.7134, allocations: 3.72 MB / 462.6 MB, free: 115.1 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000733/0.7142, allocations: 1.295 MB / 463.9 MB, free: 114.3 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002106/0.7163, allocations: 0.5886 MB / 464.5 MB, free: 114.2 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003301/0.7166, allocations: 128.5 kB / 464.7 MB, free: 114.2 MB / 382.1 MB Notification: Performance of SimCode: time 1.182e-06/0.7166, allocations: 0 / 464.7 MB, free: 114.2 MB / 382.1 MB Notification: Performance of Templates: time 0.0555/0.7722, allocations: 41.41 MB / 0.4942 GB, free: 76.96 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)