Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks") translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.006816/0.006816, allocations: 103.2 kB / 15.73 MB, free: 6.004 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.001401/0.001401, allocations: 188.6 kB / 16.67 MB, free: 5.93 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.509/1.509, allocations: 205.1 MB / 222.5 MB, free: 12.22 MB / 190.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.001918/0.001918, allocations: 51.92 kB / 326.5 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1389/0.1408, allocations: 46.62 MB / 373.2 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.2986/0.4395, allocations: 15.85 MB / 389 MB, free: 4.211 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0118/0.4513, allocations: 6.844 MB / 395.8 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001508/0.4529, allocations: 26.25 kB / 395.9 MB, free: 15.4 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001321/0.4543, allocations: 333.9 kB / 396.2 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00427/0.4586, allocations: 1.067 MB / 397.3 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007788/0.4664, allocations: 1.791 MB / 399.1 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006125/0.4725, allocations: 2.144 MB / 401.2 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001854/0.4744, allocations: 0.6086 MB / 401.8 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002867/0.4773, allocations: 0.7885 MB / 402.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001674/0.479, allocations: 0.799 MB / 403.4 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001797/0.4792, allocations: 79.75 kB / 403.5 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003791/0.483, allocations: 1.21 MB / 404.7 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005703/0.4836, allocations: 317 kB / 405 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001322/0.4849, allocations: 462.4 kB / 405.4 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005853/0.4908, allocations: 1.845 MB / 407.3 MB, free: 9.637 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.233e-06/0.4908, allocations: 1.656 kB / 407.3 MB, free: 9.637 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.4908, allocations: 0 / 407.3 MB, free: 9.637 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.083e-05/0.4909, allocations: 0 / 407.3 MB, free: 9.637 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.004714/0.4956, allocations: 1.27 MB / 408.6 MB, free: 8.652 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.831e-05/0.4957, allocations: 9.375 kB / 408.6 MB, free: 8.652 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00042/0.4961, allocations: 94.94 kB / 408.7 MB, free: 8.609 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001317/0.4975, allocations: 0.6282 MB / 409.3 MB, free: 8.094 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001424/0.4976, allocations: 110.9 kB / 409.4 MB, free: 8.004 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001376/0.4978, allocations: 51.48 kB / 409.5 MB, free: 7.988 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001775/0.4996, allocations: 0.8927 MB / 410.3 MB, free: 7.445 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.429e-05/0.4996, allocations: 3.984 kB / 410.3 MB, free: 7.441 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.593e-05/0.4997, allocations: 26.17 kB / 410.4 MB, free: 7.422 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001033/0.4998, allocations: 52.5 kB / 410.4 MB, free: 7.406 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001619/0.5014, allocations: 0.8412 MB / 411.3 MB, free: 6.988 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.006644/0.5081, allocations: 3.454 MB / 414.7 MB, free: 4.258 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001079/0.5092, allocations: 0.6494 MB / 415.4 MB, free: 3.922 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005467/0.5097, allocations: 372.7 kB / 415.7 MB, free: 3.727 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003384/0.5131, allocations: 2.047 MB / 417.8 MB, free: 1.902 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.125e-05/0.5132, allocations: 42.53 kB / 417.8 MB, free: 1.855 MB / 334.1 MB Notification: Performance of pre-optimization done (n=56): time 2.615e-06/0.5132, allocations: 1.031 kB / 417.8 MB, free: 1.855 MB / 334.1 MB Notification: Performance of matching and sorting (n=66): time 0.008094/0.5213, allocations: 2.831 MB / 420.7 MB, free: 15.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.241e-05/0.5214, allocations: 85.67 kB / 420.7 MB, free: 15.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009968/0.5225, allocations: 0.6875 MB / 421.4 MB, free: 14.72 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001005/0.5226, allocations: 41.64 kB / 421.5 MB, free: 14.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00034/0.5229, allocations: 328.5 kB / 421.8 MB, free: 14.35 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002714/0.5232, allocations: 228.7 kB / 422 MB, free: 14.12 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002684/0.5235, allocations: 146.6 kB / 422.2 MB, free: 13.97 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000247/0.5237, allocations: 386.8 kB / 422.5 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000819/0.5246, allocations: 376.6 kB / 422.9 MB, free: 13.21 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007862/0.5254, allocations: 0.5191 MB / 423.4 MB, free: 12.63 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001397/0.5268, allocations: 0.856 MB / 424.3 MB, free: 11.72 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.5268, allocations: 0 / 424.3 MB, free: 11.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002372/0.5292, allocations: 1.17 MB / 425.4 MB, free: 10.54 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.261e-05/0.5292, allocations: 8 kB / 425.5 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.651e-05/0.5292, allocations: 4 kB / 425.5 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001409/0.5306, allocations: 456.8 kB / 425.9 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000678/0.5313, allocations: 167.7 kB / 426.1 MB, free: 9.914 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00148/0.5328, allocations: 1.013 MB / 427.1 MB, free: 8.875 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000795/0.5336, allocations: 32.03 kB / 427.1 MB, free: 8.844 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.844e-05/0.5337, allocations: 39.92 kB / 427.1 MB, free: 8.805 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001127/0.5349, allocations: 0.5331 MB / 427.7 MB, free: 8.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007166/0.5356, allocations: 0.5082 MB / 428.2 MB, free: 7.699 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001359/0.537, allocations: 0.8528 MB / 429 MB, free: 6.781 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.106e-06/0.537, allocations: 7.938 kB / 429.1 MB, free: 6.773 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.002248/0.5392, allocations: 1.098 MB / 430.1 MB, free: 5.664 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.738e-05/0.5393, allocations: 8 kB / 430.2 MB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/0.5393, allocations: 7.984 kB / 430.2 MB, free: 5.648 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008449/0.5401, allocations: 305.1 kB / 430.5 MB, free: 5.348 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006745/0.5408, allocations: 167.7 kB / 430.6 MB, free: 5.184 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001089/0.5419, allocations: 0.9074 MB / 431.5 MB, free: 4.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007563/0.5427, allocations: 32.91 kB / 431.6 MB, free: 4.219 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.102e-05/0.5428, allocations: 35.98 kB / 431.6 MB, free: 4.184 MB / 350.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.0004009/0.5432, allocations: 220.1 kB / 431.8 MB, free: 3.961 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002422/0.5434, allocations: 79.06 kB / 431.9 MB, free: 3.883 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002182/0.5456, allocations: 1.102 MB / 433 MB, free: 2.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.056e-05/0.5457, allocations: 12 kB / 433 MB, free: 2.758 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.633e-06/0.5457, allocations: 0 / 433 MB, free: 2.758 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.023e-05/0.5457, allocations: 3.984 kB / 433 MB, free: 2.754 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003915/0.5496, allocations: 1.993 MB / 435 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.54e-06/0.5496, allocations: 3.938 kB / 435 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006412/0.5503, allocations: 120.7 kB / 435.1 MB, free: 0.582 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001292/0.5516, allocations: 444.5 kB / 435.6 MB, free: 148 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.687e-05/0.5517, allocations: 19.98 kB / 435.6 MB, free: 128 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001744/0.5534, allocations: 1.025 MB / 436.6 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.693e-06/0.5534, allocations: 3.938 kB / 436.6 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003063/0.5565, allocations: 1.604 MB / 438.2 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000609/0.5571, allocations: 244.1 kB / 438.4 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001307/0.5573, allocations: 16 kB / 438.5 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000543/0.5578, allocations: 31.97 kB / 438.5 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001698/0.558, allocations: 60.52 kB / 438.6 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.274e-05/0.5581, allocations: 23.98 kB / 438.6 MB, free: 13.05 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006444/0.5587, allocations: 483 kB / 439 MB, free: 12.59 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.5587, allocations: 4 kB / 439.1 MB, free: 12.59 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001987/0.5607, allocations: 0.5778 MB / 439.6 MB, free: 12.01 MB / 366.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.001405/0.5622, allocations: 490.5 kB / 440.1 MB, free: 11.52 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003222/0.5654, allocations: 1.403 MB / 441.5 MB, free: 10.12 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.5654, allocations: 0 / 441.5 MB, free: 10.12 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001176/0.5666, allocations: 473.2 kB / 442 MB, free: 9.656 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001886/0.5685, allocations: 392.8 kB / 442.4 MB, free: 9.277 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00388/0.5724, allocations: 1.715 MB / 444.1 MB, free: 7.539 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001113/0.5735, allocations: 0.995 MB / 445.1 MB, free: 6.516 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001093/0.5746, allocations: 314.4 kB / 445.4 MB, free: 6.203 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002086/0.5748, allocations: 75.41 kB / 445.5 MB, free: 6.129 MB / 366.1 MB Notification: Performance of SimCode: time 1.082e-06/0.5748, allocations: 0 / 445.5 MB, free: 6.129 MB / 366.1 MB Notification: Performance of Templates: time 0.04359/0.6184, allocations: 23.13 MB / 468.6 MB, free: 14.96 MB / 398.1 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1)