Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00158/0.00158, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001952/0.001952, allocations: 191.4 kB / 18.51 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.402/1.402, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001033/0.001033, allocations: 47.81 kB / 301.3 MB, free: 5.875 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09461/0.09566, allocations: 49.44 MB / 350.7 MB, free: 4.426 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1): time 0.2108/0.3065, allocations: 30.99 MB / 381.7 MB, free: 9.012 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01904/0.3256, allocations: 14.27 MB / 396 MB, free: 1.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002265/0.3279, allocations: 41.62 kB / 396 MB, free: 1.395 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001963/0.3299, allocations: 0.5787 MB / 396.6 MB, free: 1.043 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006695/0.3366, allocations: 2.179 MB / 398.8 MB, free: 15.85 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01223/0.3489, allocations: 3.678 MB / 402.5 MB, free: 13.39 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006935/0.3558, allocations: 3.974 MB / 406.4 MB, free: 11.18 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002114/0.358, allocations: 1.003 MB / 407.4 MB, free: 10.51 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003581/0.3616, allocations: 1.475 MB / 408.9 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003094/0.3647, allocations: 1.515 MB / 410.4 MB, free: 8.84 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003911/0.3651, allocations: 143.7 kB / 410.6 MB, free: 8.84 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005837/0.371, allocations: 2.316 MB / 412.9 MB, free: 6.918 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009043/0.3719, allocations: 0.5531 MB / 413.4 MB, free: 6.363 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001546/0.3735, allocations: 0.8205 MB / 414.3 MB, free: 5.539 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008222/0.3817, allocations: 3.581 MB / 417.8 MB, free: 1.949 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.3817, allocations: 0 / 417.8 MB, free: 1.949 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3817, allocations: 0 / 417.8 MB, free: 1.949 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.37e-05/0.3818, allocations: 0 / 417.8 MB, free: 1.949 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.004732/0.3865, allocations: 2.099 MB / 419.9 MB, free: 15.8 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.3866, allocations: 8.031 kB / 419.9 MB, free: 15.79 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006059/0.3872, allocations: 170.1 kB / 420.1 MB, free: 15.62 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001494/0.3887, allocations: 0.9482 MB / 421.1 MB, free: 14.63 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.416e-05/0.3888, allocations: 85.95 kB / 421.1 MB, free: 14.54 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001654/0.389, allocations: 95.92 kB / 421.2 MB, free: 14.45 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002559/0.3915, allocations: 1.635 MB / 422.9 MB, free: 12.73 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.168e-05/0.3916, allocations: 4 kB / 422.9 MB, free: 12.73 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001398/0.3917, allocations: 47.97 kB / 422.9 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001322/0.3919, allocations: 101.9 kB / 423 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00264/0.3945, allocations: 1.652 MB / 424.7 MB, free: 10.93 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.01064/0.4052, allocations: 6.657 MB / 431.3 MB, free: 3.879 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001549/0.4067, allocations: 0.9264 MB / 432.3 MB, free: 2.945 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008406/0.4076, allocations: 0.562 MB / 432.8 MB, free: 2.383 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00424/0.4119, allocations: 2.809 MB / 435.6 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.007e-05/0.4119, allocations: 43.22 kB / 435.7 MB, free: 15.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=80): time 4.669e-06/0.4119, allocations: 0 / 435.7 MB, free: 15.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=90): time 0.009099/0.421, allocations: 3.715 MB / 439.4 MB, free: 11.44 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001272/0.4212, allocations: 196.9 kB / 439.6 MB, free: 11.21 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001979/0.4232, allocations: 1.298 MB / 440.9 MB, free: 9.891 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001816/0.4234, allocations: 53.7 kB / 440.9 MB, free: 9.832 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005509/0.424, allocations: 0.651 MB / 441.6 MB, free: 9.172 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003534/0.4243, allocations: 323.6 kB / 441.9 MB, free: 8.852 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004505/0.4248, allocations: 279.3 kB / 442.2 MB, free: 8.574 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001138/0.4249, allocations: 309.1 kB / 442.5 MB, free: 8.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001022/0.4259, allocations: 0.5864 MB / 443.1 MB, free: 7.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001304/0.4272, allocations: 0.9975 MB / 444.1 MB, free: 6.508 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002126/0.4294, allocations: 1.485 MB / 445.5 MB, free: 4.859 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-05/0.4294, allocations: 4 kB / 445.5 MB, free: 4.855 MB / 350.1 MB Notification: Performance of matching and sorting (n=180) (initialization): time 0.003353/0.4328, allocations: 1.908 MB / 447.4 MB, free: 2.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.672e-05/0.4328, allocations: 8 kB / 447.5 MB, free: 2.922 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.17e-05/0.4328, allocations: 12 kB / 447.5 MB, free: 2.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00481/0.4377, allocations: 0.7716 MB / 448.2 MB, free: 2.129 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001217/0.4389, allocations: 283.5 kB / 448.5 MB, free: 1.852 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002327/0.4412, allocations: 2.161 MB / 450.7 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001429/0.4427, allocations: 72.02 kB / 450.7 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001609/0.4429, allocations: 71.98 kB / 450.8 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001529/0.4444, allocations: 0.8473 MB / 451.7 MB, free: 14.62 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001307/0.4457, allocations: 0.9883 MB / 452.7 MB, free: 13.45 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002143/0.4479, allocations: 1.456 MB / 454.1 MB, free: 11.82 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.277e-06/0.4479, allocations: 8 kB / 454.1 MB, free: 11.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=180) (initialization_lambda0): time 0.003387/0.4513, allocations: 1.83 MB / 455.9 MB, free: 9.969 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.374e-05/0.4513, allocations: 11.98 kB / 456 MB, free: 9.957 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.803e-05/0.4514, allocations: 12 kB / 456 MB, free: 9.945 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003984/0.4554, allocations: 0.592 MB / 456.6 MB, free: 9.344 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001176/0.4566, allocations: 291.5 kB / 456.8 MB, free: 9.059 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001779/0.4583, allocations: 2.02 MB / 458.9 MB, free: 6.961 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001297/0.4597, allocations: 76.02 kB / 458.9 MB, free: 6.887 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001358/0.4598, allocations: 63.98 kB / 459 MB, free: 6.824 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 12 (tank2.aboveLevel[2],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank1.aboveLevel[2],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[1],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 163 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,3), (2,7), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0005133/0.4603, allocations: 280.4 kB / 459.3 MB, free: 6.543 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002981/0.4606, allocations: 142.3 kB / 459.4 MB, free: 6.402 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003126/0.4638, allocations: 1.522 MB / 460.9 MB, free: 4.871 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.487e-05/0.4638, allocations: 19.98 kB / 461 MB, free: 4.852 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.775e-06/0.4638, allocations: 0 / 461 MB, free: 4.852 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.288e-05/0.4639, allocations: 8.016 kB / 461 MB, free: 4.844 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00484/0.4687, allocations: 2.807 MB / 463.8 MB, free: 1.953 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.027e-06/0.4687, allocations: 4 kB / 463.8 MB, free: 1.949 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007009/0.4695, allocations: 151.7 kB / 463.9 MB, free: 1.801 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002849/0.4723, allocations: 0.5841 MB / 464.5 MB, free: 1.207 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001164/0.4725, allocations: 24 kB / 464.5 MB, free: 1.184 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001938/0.4744, allocations: 2.121 MB / 466.7 MB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.4744, allocations: 4.031 kB / 466.7 MB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003503/0.4779, allocations: 2.098 MB / 468.8 MB, free: 12.84 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005063/0.4785, allocations: 211.3 kB / 469 MB, free: 12.62 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003557/0.4788, allocations: 32 kB / 469 MB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008861/0.4797, allocations: 51.89 kB / 469 MB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002063/0.4799, allocations: 96.86 kB / 469.1 MB, free: 12.44 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000107/0.48, allocations: 43.97 kB / 469.2 MB, free: 12.39 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00138/0.4814, allocations: 0.9044 MB / 470.1 MB, free: 11.49 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.4814, allocations: 0 / 470.1 MB, free: 11.49 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003454/0.4849, allocations: 1.117 MB / 471.2 MB, free: 10.37 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(2,12), (1,6), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002313/0.4872, allocations: 0.8262 MB / 472 MB, free: 9.551 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005797/0.493, allocations: 2.58 MB / 474.6 MB, free: 6.977 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.325e-06/0.4931, allocations: 0 / 474.6 MB, free: 6.977 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001449/0.4945, allocations: 0.6936 MB / 475.3 MB, free: 6.285 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003091/0.4977, allocations: 0.6287 MB / 475.9 MB, free: 5.676 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004494/0.5022, allocations: 2.796 MB / 478.7 MB, free: 2.836 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007827/0.503, allocations: 1.252 MB / 480 MB, free: 1.551 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004827/0.5035, allocations: 131.4 kB / 480.1 MB, free: 1.422 MB / 382.1 MB Notification: Performance of SimCode: time 7.12e-07/0.5035, allocations: 4 kB / 480.1 MB, free: 1.418 MB / 382.1 MB Notification: Performance of Templates: time 0.05991/0.5634, allocations: 45.04 MB / 0.5128 GB, free: 4.488 MB / 430.1 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1)