Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001715/0.001715, allocations: 113 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002255/0.002255, allocations: 212.9 kB / 19.4 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.397/1.397, allocations: 227.4 MB / 247.6 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 59.91 kB / 359.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2584/0.2596, allocations: 50.54 MB / 409.9 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1): time 0.02919/0.2888, allocations: 31.17 MB / 441.1 MB, free: 2.258 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01846/0.3074, allocations: 14.28 MB / 455.4 MB, free: 3.938 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001662/0.3091, allocations: 43.75 kB / 455.4 MB, free: 3.895 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001709/0.3108, allocations: 0.5822 MB / 456 MB, free: 3.309 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005264/0.3161, allocations: 2.173 MB / 458.2 MB, free: 1.125 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008466/0.3246, allocations: 3.684 MB / 461.9 MB, free: 13.46 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00542/0.33, allocations: 3.96 MB / 465.8 MB, free: 9.48 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001641/0.3317, allocations: 1.01 MB / 466.8 MB, free: 8.453 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00275/0.3345, allocations: 1.507 MB / 468.4 MB, free: 6.941 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002701/0.3372, allocations: 1.518 MB / 469.9 MB, free: 5.418 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003953/0.3376, allocations: 148 kB / 470 MB, free: 5.273 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005133/0.3427, allocations: 2.352 MB / 472.4 MB, free: 2.918 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001059/0.3438, allocations: 0.5454 MB / 472.9 MB, free: 2.371 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001328/0.3452, allocations: 0.8244 MB / 473.7 MB, free: 1.543 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007033/0.3522, allocations: 3.623 MB / 477.4 MB, free: 13.91 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.3523, allocations: 0 / 477.4 MB, free: 13.91 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3523, allocations: 0 / 477.4 MB, free: 13.91 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.938e-05/0.3523, allocations: 0 / 477.4 MB, free: 13.91 MB / 398.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.004182/0.3565, allocations: 2.099 MB / 479.5 MB, free: 11.75 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.3565, allocations: 12.03 kB / 479.5 MB, free: 11.74 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005485/0.3571, allocations: 170.1 kB / 479.6 MB, free: 11.57 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001497/0.3586, allocations: 1.011 MB / 480.6 MB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.039e-05/0.3587, allocations: 85.89 kB / 480.7 MB, free: 10.44 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001619/0.3589, allocations: 95.97 kB / 480.8 MB, free: 10.34 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002587/0.3614, allocations: 1.632 MB / 482.5 MB, free: 8.629 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.743e-05/0.3615, allocations: 0 / 482.5 MB, free: 8.629 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001328/0.3616, allocations: 43.97 kB / 482.5 MB, free: 8.586 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001432/0.3618, allocations: 101.9 kB / 482.6 MB, free: 8.484 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002606/0.3644, allocations: 1.647 MB / 484.2 MB, free: 6.836 MB / 398.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.01001/0.3744, allocations: 6.644 MB / 490.9 MB, free: 15.8 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001539/0.376, allocations: 0.9288 MB / 491.8 MB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008229/0.3768, allocations: 0.5571 MB / 492.4 MB, free: 14.3 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003875/0.3807, allocations: 2.812 MB / 495.2 MB, free: 11.24 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.362e-05/0.3808, allocations: 47.22 kB / 495.2 MB, free: 11.19 MB / 414.1 MB Notification: Performance of pre-optimization done (n=80): time 2.725e-06/0.3808, allocations: 0 / 495.2 MB, free: 11.19 MB / 414.1 MB Notification: Performance of matching and sorting (n=90): time 0.008795/0.3896, allocations: 3.703 MB / 498.9 MB, free: 7.375 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000111/0.3897, allocations: 204.7 kB / 499.1 MB, free: 7.133 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001698/0.3914, allocations: 1.306 MB / 0.4887 GB, free: 5.809 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001123/0.3916, allocations: 53.7 kB / 0.4888 GB, free: 5.75 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005434/0.3921, allocations: 0.6549 MB / 0.4894 GB, free: 5.086 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002617/0.3924, allocations: 315.5 kB / 0.4897 GB, free: 4.773 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004132/0.3928, allocations: 283.3 kB / 0.49 GB, free: 4.492 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.3929, allocations: 305.1 kB / 0.4903 GB, free: 4.191 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009238/0.3938, allocations: 0.5903 MB / 0.4908 GB, free: 3.598 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001289/0.3951, allocations: 1.001 MB / 0.4918 GB, free: 2.418 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002047/0.3972, allocations: 1.489 MB / 0.4933 GB, free: 0.7695 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.725e-06/0.3972, allocations: 4 kB / 0.4933 GB, free: 0.7656 MB / 414.1 MB Notification: Performance of matching and sorting (n=180) (initialization): time 0.003244/0.4005, allocations: 1.9 MB / 0.4951 GB, free: 14.84 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.582e-05/0.4005, allocations: 12 kB / 0.4951 GB, free: 14.83 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.294e-05/0.4005, allocations: 12 kB / 0.4952 GB, free: 14.82 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004588/0.4051, allocations: 0.7561 MB / 0.4959 GB, free: 14.05 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001132/0.4063, allocations: 287.6 kB / 0.4962 GB, free: 13.77 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00216/0.4084, allocations: 2.164 MB / 0.4983 GB, free: 11.53 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001382/0.4098, allocations: 67.95 kB / 0.4983 GB, free: 11.46 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002127/0.4101, allocations: 67.98 kB / 0.4984 GB, free: 11.4 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001626/0.4117, allocations: 0.8473 MB / 0.4992 GB, free: 10.55 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00138/0.4131, allocations: 0.9953 MB / 0.5002 GB, free: 9.367 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002146/0.4153, allocations: 1.464 MB / 0.5016 GB, free: 7.734 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.079e-05/0.4153, allocations: 4 kB / 0.5016 GB, free: 7.73 MB / 430.1 MB Notification: Performance of matching and sorting (n=180) (initialization_lambda0): time 0.003411/0.4187, allocations: 1.834 MB / 0.5034 GB, free: 5.879 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.028e-05/0.4187, allocations: 8 kB / 0.5034 GB, free: 5.871 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.043e-05/0.4188, allocations: 12 kB / 0.5035 GB, free: 5.859 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004045/0.4228, allocations: 0.5918 MB / 0.504 GB, free: 5.258 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00113/0.424, allocations: 291.5 kB / 0.5043 GB, free: 4.973 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001809/0.4258, allocations: 2.012 MB / 0.5063 GB, free: 2.883 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001349/0.4272, allocations: 75.94 kB / 0.5063 GB, free: 2.809 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001778/0.4273, allocations: 64.08 kB / 0.5064 GB, free: 2.746 MB / 430.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.0004682/0.4278, allocations: 280.8 kB / 0.5067 GB, free: 2.465 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003911/0.4282, allocations: 146.5 kB / 0.5068 GB, free: 2.32 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003217/0.4315, allocations: 1.538 MB / 0.5083 GB, free: 0.7773 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-05/0.4315, allocations: 19.94 kB / 0.5083 GB, free: 0.7578 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.724e-06/0.4315, allocations: 0 / 0.5083 GB, free: 0.7578 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.256e-05/0.4315, allocations: 7.922 kB / 0.5083 GB, free: 0.75 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004674/0.4362, allocations: 2.794 MB / 0.5111 GB, free: 13.87 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.631e-06/0.4362, allocations: 0 / 0.5111 GB, free: 13.87 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006894/0.4369, allocations: 151.8 kB / 0.5112 GB, free: 13.72 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002763/0.4397, allocations: 0.584 MB / 0.5118 GB, free: 13.13 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001066/0.4398, allocations: 27.98 kB / 0.5118 GB, free: 13.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001911/0.4417, allocations: 2.114 MB / 0.5139 GB, free: 10.91 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.045e-06/0.4418, allocations: 0 / 0.5139 GB, free: 10.91 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00346/0.4452, allocations: 2.1 MB / 0.5159 GB, free: 8.773 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004813/0.4457, allocations: 215.3 kB / 0.5161 GB, free: 8.543 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003609/0.4461, allocations: 31.92 kB / 0.5162 GB, free: 8.512 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001036/0.4471, allocations: 55.91 kB / 0.5162 GB, free: 8.457 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002091/0.4474, allocations: 92.86 kB / 0.5163 GB, free: 8.363 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001136/0.4475, allocations: 39.98 kB / 0.5163 GB, free: 8.324 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001439/0.4489, allocations: 0.9005 MB / 0.5172 GB, free: 7.422 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4489, allocations: 4 kB / 0.5172 GB, free: 7.418 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003057/0.452, allocations: 1.117 MB / 0.5183 GB, free: 6.301 MB / 446.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.002181/0.4542, allocations: 0.8286 MB / 0.5191 GB, free: 5.473 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004694/0.4589, allocations: 2.278 MB / 0.5214 GB, free: 3.199 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.995e-06/0.4589, allocations: 1.938 kB / 0.5214 GB, free: 3.199 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001356/0.4603, allocations: 0.6967 MB / 0.522 GB, free: 2.504 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0033/0.4636, allocations: 0.6205 MB / 0.5226 GB, free: 1.895 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004974/0.4686, allocations: 2.774 MB / 0.5253 GB, free: 15.08 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009418/0.4696, allocations: 1.252 MB / 0.5266 GB, free: 13.79 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005093/0.4701, allocations: 127.4 kB / 0.5267 GB, free: 13.67 MB / 462.1 MB Notification: Performance of SimCode: time 1.092e-06/0.4701, allocations: 0 / 0.5267 GB, free: 13.67 MB / 462.1 MB Notification: Performance of Templates: time 0.2777/0.7478, allocations: 45.49 MB / 0.5711 GB, free: 105 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & ./Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1)