Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_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 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.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.001746/0.001746, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002038/0.002038, allocations: 192.7 kB / 16.53 MB, free: 6.699 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.319/1.319, allocations: 205.1 MB / 222.4 MB, free: 4.633 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.001206/0.001206, allocations: 59.92 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.274/0.2752, allocations: 46.63 MB / 325.3 MB, free: 1.859 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1): time 0.03548/0.3107, allocations: 30.99 MB / 356.3 MB, free: 4.84 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0227/0.3335, allocations: 14.27 MB / 370.6 MB, free: 6.527 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002135/0.3357, allocations: 43.75 kB / 370.6 MB, free: 6.484 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001687/0.3374, allocations: 0.5744 MB / 371.2 MB, free: 5.906 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006874/0.3443, allocations: 2.177 MB / 373.4 MB, free: 3.719 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01022/0.3546, allocations: 3.678 MB / 377 MB, free: 28 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005586/0.3602, allocations: 3.957 MB / 381 MB, free: 12.06 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001483/0.3617, allocations: 1.018 MB / 382 MB, free: 11.03 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002653/0.3643, allocations: 1.464 MB / 383.5 MB, free: 9.562 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002312/0.3666, allocations: 1.515 MB / 385 MB, free: 8.043 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002897/0.367, allocations: 144 kB / 385.1 MB, free: 7.902 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005254/0.3722, allocations: 2.313 MB / 387.5 MB, free: 5.586 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006995/0.373, allocations: 0.5532 MB / 388 MB, free: 5.031 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00132/0.3743, allocations: 0.8166 MB / 388.8 MB, free: 4.211 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007344/0.3816, allocations: 3.577 MB / 392.4 MB, free: 0.625 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.644e-06/0.3817, allocations: 0 / 392.4 MB, free: 0.625 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3817, allocations: 0 / 392.4 MB, free: 0.625 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.761e-05/0.3817, allocations: 0 / 392.4 MB, free: 0.625 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.004943/0.3867, allocations: 2.107 MB / 394.5 MB, free: 14.46 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.3867, allocations: 8.031 kB / 394.5 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005924/0.3873, allocations: 170.1 kB / 394.7 MB, free: 14.29 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001555/0.3889, allocations: 0.9521 MB / 395.6 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.074e-05/0.389, allocations: 85.95 kB / 395.7 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001849/0.3892, allocations: 99.97 kB / 395.8 MB, free: 13.11 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002592/0.3918, allocations: 1.621 MB / 397.4 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.274e-05/0.3918, allocations: 4 kB / 397.4 MB, free: 11.4 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000136/0.392, allocations: 43.97 kB / 397.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001459/0.3921, allocations: 101.9 kB / 397.6 MB, free: 11.26 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002695/0.3948, allocations: 1.651 MB / 399.2 MB, free: 9.609 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.01005/0.4049, allocations: 6.667 MB / 405.9 MB, free: 2.547 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001552/0.4065, allocations: 0.927 MB / 406.8 MB, free: 1.613 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000867/0.4074, allocations: 0.5581 MB / 407.4 MB, free: 1.051 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003741/0.4111, allocations: 2.805 MB / 410.2 MB, free: 13.99 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.15e-05/0.4112, allocations: 47.16 kB / 410.2 MB, free: 13.94 MB / 350.1 MB Notification: Performance of pre-optimization done (n=80): time 2.505e-06/0.4112, allocations: 0 / 410.2 MB, free: 13.94 MB / 350.1 MB Notification: Performance of matching and sorting (n=90): time 0.008953/0.4202, allocations: 3.703 MB / 413.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001185/0.4203, allocations: 196.9 kB / 414.1 MB, free: 9.883 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002123/0.4224, allocations: 1.306 MB / 415.4 MB, free: 8.559 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001121/0.4226, allocations: 53.7 kB / 415.5 MB, free: 8.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006021/0.4232, allocations: 0.651 MB / 416.1 MB, free: 7.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003344/0.4235, allocations: 315.5 kB / 416.5 MB, free: 7.527 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005037/0.424, allocations: 287.3 kB / 416.7 MB, free: 7.242 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.4242, allocations: 305.1 kB / 417 MB, free: 6.941 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001014/0.4252, allocations: 0.5903 MB / 417.6 MB, free: 6.348 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001409/0.4266, allocations: 1.004 MB / 418.6 MB, free: 5.164 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002297/0.4289, allocations: 1.481 MB / 420.1 MB, free: 3.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.044e-05/0.4289, allocations: 4 kB / 420.1 MB, free: 3.516 MB / 350.1 MB Notification: Performance of matching and sorting (n=180) (initialization): time 0.00366/0.4326, allocations: 1.904 MB / 422 MB, free: 1.598 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.699e-05/0.4326, allocations: 8 kB / 422 MB, free: 1.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.409e-05/0.4327, allocations: 12 kB / 422 MB, free: 1.578 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004871/0.4376, allocations: 0.7716 MB / 422.8 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001131/0.4387, allocations: 287.5 kB / 423.1 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002337/0.4411, allocations: 2.164 MB / 425.2 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001271/0.4423, allocations: 72.03 kB / 425.3 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001647/0.4425, allocations: 71.97 kB / 425.4 MB, free: 14.13 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00155/0.4441, allocations: 0.8395 MB / 426.2 MB, free: 13.29 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001351/0.4454, allocations: 0.9914 MB / 427.2 MB, free: 12.11 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002251/0.4477, allocations: 1.46 MB / 428.7 MB, free: 10.48 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.135e-05/0.4477, allocations: 4 kB / 428.7 MB, free: 10.47 MB / 366.1 MB Notification: Performance of matching and sorting (n=180) (initialization_lambda0): time 0.003738/0.4515, allocations: 1.826 MB / 430.5 MB, free: 8.629 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.3e-05/0.4515, allocations: 8 kB / 430.5 MB, free: 8.621 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.825e-05/0.4515, allocations: 16 kB / 430.5 MB, free: 8.605 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004235/0.4558, allocations: 0.5998 MB / 431.1 MB, free: 7.996 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001088/0.4569, allocations: 295.5 kB / 431.4 MB, free: 7.707 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001977/0.4589, allocations: 2.016 MB / 433.4 MB, free: 5.613 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00146/0.4604, allocations: 71.95 kB / 433.5 MB, free: 5.543 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001857/0.4606, allocations: 67.98 kB / 433.6 MB, free: 5.477 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.0005083/0.4611, allocations: 271.8 kB / 433.8 MB, free: 5.203 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004416/0.4615, allocations: 150.2 kB / 434 MB, free: 5.055 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00335/0.4649, allocations: 1.522 MB / 435.5 MB, free: 3.516 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-05/0.4649, allocations: 15.94 kB / 435.5 MB, free: 3.5 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.697e-06/0.4649, allocations: 0 / 435.5 MB, free: 3.5 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.292e-05/0.4649, allocations: 7.969 kB / 435.5 MB, free: 3.492 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005071/0.47, allocations: 2.795 MB / 438.3 MB, free: 0.6094 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.413e-06/0.47, allocations: 4 kB / 438.3 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007469/0.4708, allocations: 151.8 kB / 438.5 MB, free: 468 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002962/0.4738, allocations: 0.588 MB / 439.1 MB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001061/0.4739, allocations: 23.98 kB / 439.1 MB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002102/0.476, allocations: 2.114 MB / 441.2 MB, free: 13.64 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.985e-06/0.476, allocations: 11.91 kB / 441.2 MB, free: 13.63 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003605/0.4796, allocations: 2.086 MB / 443.3 MB, free: 11.5 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005279/0.4802, allocations: 223.6 kB / 443.5 MB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003422/0.4805, allocations: 35.88 kB / 443.6 MB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009189/0.4815, allocations: 43.95 kB / 443.6 MB, free: 11.19 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002054/0.4817, allocations: 100.9 kB / 443.7 MB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001068/0.4818, allocations: 43.97 kB / 443.7 MB, free: 11.05 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001509/0.4833, allocations: 0.9006 MB / 444.6 MB, free: 10.14 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4833, allocations: 0 / 444.6 MB, free: 10.14 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003515/0.4869, allocations: 1.117 MB / 445.8 MB, free: 9.027 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.002634/0.4895, allocations: 0.8297 MB / 446.6 MB, free: 8.188 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00577/0.4953, allocations: 2.572 MB / 449.2 MB, free: 5.625 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.073e-05/0.4953, allocations: 3.859 kB / 449.2 MB, free: 5.621 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00158/0.4969, allocations: 0.6979 MB / 449.9 MB, free: 4.922 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003462/0.5004, allocations: 0.6289 MB / 450.5 MB, free: 4.293 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004872/0.5053, allocations: 2.732 MB / 453.2 MB, free: 1.516 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00103/0.5063, allocations: 1.26 MB / 454.5 MB, free: 236 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.1978/0.7042, allocations: 0.5677 MB / 455 MB, free: 114.6 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004283/0.7046, allocations: 112 kB / 455.2 MB, free: 114.6 MB / 382.1 MB Notification: Performance of SimCode: time 6.42e-07/0.7046, allocations: 0 / 455.2 MB, free: 114.6 MB / 382.1 MB Notification: Performance of Templates: time 0.05591/0.7606, allocations: 39.9 MB / 495.1 MB, free: 84.19 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1)