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.002063/0.002063, allocations: 112.4 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.003306/0.003306, allocations: 213.9 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.582/2.582, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001577/0.001577, allocations: 59.91 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3683/0.3699, allocations: 50.55 MB / 409.9 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1): time 0.03546/0.4054, allocations: 31.17 MB / 441.1 MB, free: 2.266 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02087/0.4263, allocations: 14.28 MB / 455.4 MB, free: 3.953 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001977/0.4283, allocations: 47.69 kB / 455.4 MB, free: 3.906 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00209/0.4305, allocations: 0.5784 MB / 456 MB, free: 3.324 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00646/0.437, allocations: 2.181 MB / 458.2 MB, free: 1.133 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009536/0.4465, allocations: 3.676 MB / 461.9 MB, free: 13.47 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00617/0.4527, allocations: 3.96 MB / 465.8 MB, free: 9.496 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00216/0.4549, allocations: 1.01 MB / 466.8 MB, free: 8.469 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00348/0.4584, allocations: 1.507 MB / 468.3 MB, free: 6.957 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002939/0.4614, allocations: 1.526 MB / 469.9 MB, free: 5.426 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006015/0.462, allocations: 151.9 kB / 470 MB, free: 5.277 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005282/0.4673, allocations: 2.348 MB / 472.4 MB, free: 2.926 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001049/0.4684, allocations: 0.5532 MB / 472.9 MB, free: 2.371 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001873/0.4703, allocations: 0.8166 MB / 473.7 MB, free: 1.551 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007692/0.478, allocations: 3.615 MB / 477.4 MB, free: 13.93 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.203e-06/0.4781, allocations: 0 / 477.4 MB, free: 13.93 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.4781, allocations: 0 / 477.4 MB, free: 13.93 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.192e-05/0.4782, allocations: 4 kB / 477.4 MB, free: 13.92 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.005969/0.4841, allocations: 2.099 MB / 479.5 MB, free: 11.77 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/0.4842, allocations: 12.03 kB / 479.5 MB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008322/0.485, allocations: 170.1 kB / 479.6 MB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002366/0.4874, allocations: 1.018 MB / 480.7 MB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.784e-05/0.4875, allocations: 77.92 kB / 480.7 MB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002522/0.4878, allocations: 99.95 kB / 480.8 MB, free: 10.35 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003068/0.4908, allocations: 1.632 MB / 482.5 MB, free: 8.641 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.296e-05/0.4909, allocations: 4 kB / 482.5 MB, free: 8.637 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001391/0.491, allocations: 39.98 kB / 482.5 MB, free: 8.598 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001593/0.4912, allocations: 105.9 kB / 482.6 MB, free: 8.492 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002799/0.494, allocations: 1.647 MB / 484.3 MB, free: 6.844 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.01049/0.5045, allocations: 6.648 MB / 490.9 MB, free: 15.8 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001566/0.5061, allocations: 0.9263 MB / 491.8 MB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008505/0.507, allocations: 0.5642 MB / 492.4 MB, free: 14.3 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004404/0.5114, allocations: 2.797 MB / 495.2 MB, free: 11.25 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.305e-05/0.5115, allocations: 43.22 kB / 495.2 MB, free: 11.2 MB / 414.1 MB Notification: Performance of pre-optimization done (n=80): time 2.895e-06/0.5115, allocations: 3.938 kB / 495.2 MB, free: 11.2 MB / 414.1 MB Notification: Performance of matching and sorting (n=90): time 0.009/0.5205, allocations: 3.715 MB / 499 MB, free: 7.375 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001615/0.5207, allocations: 192.9 kB / 499.1 MB, free: 7.145 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002103/0.5228, allocations: 1.306 MB / 0.4887 GB, free: 5.82 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001266/0.5229, allocations: 53.64 kB / 0.4888 GB, free: 5.762 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006233/0.5236, allocations: 0.651 MB / 0.4894 GB, free: 5.102 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003146/0.5239, allocations: 323.5 kB / 0.4897 GB, free: 4.781 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005062/0.5244, allocations: 283.3 kB / 0.49 GB, free: 4.5 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001116/0.5245, allocations: 309.1 kB / 0.4903 GB, free: 4.195 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001058/0.5256, allocations: 0.5903 MB / 0.4909 GB, free: 3.602 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001352/0.527, allocations: 0.9967 MB / 0.4918 GB, free: 2.426 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002208/0.5292, allocations: 1.485 MB / 0.4933 GB, free: 0.7812 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.144e-05/0.5292, allocations: 7.938 kB / 0.4933 GB, free: 0.7734 MB / 414.1 MB Notification: Performance of matching and sorting (n=180) (initialization): time 0.003397/0.5326, allocations: 1.904 MB / 0.4951 GB, free: 14.85 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.801e-05/0.5327, allocations: 12 kB / 0.4952 GB, free: 14.84 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.646e-05/0.5327, allocations: 12 kB / 0.4952 GB, free: 14.82 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004702/0.5374, allocations: 0.7595 MB / 0.4959 GB, free: 14.05 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001195/0.5386, allocations: 287.5 kB / 0.4962 GB, free: 13.77 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002358/0.541, allocations: 2.16 MB / 0.4983 GB, free: 11.54 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001472/0.5425, allocations: 72.02 kB / 0.4984 GB, free: 11.46 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002422/0.5428, allocations: 67.98 kB / 0.4984 GB, free: 11.4 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001588/0.5444, allocations: 0.8473 MB / 0.4993 GB, free: 10.55 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001377/0.5457, allocations: 0.9875 MB / 0.5002 GB, free: 9.375 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002237/0.548, allocations: 1.468 MB / 0.5017 GB, free: 7.738 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.755e-05/0.548, allocations: 4 kB / 0.5017 GB, free: 7.734 MB / 430.1 MB Notification: Performance of matching and sorting (n=180) (initialization_lambda0): time 0.003558/0.5516, allocations: 1.826 MB / 0.5034 GB, free: 5.891 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.322e-05/0.5516, allocations: 12 kB / 0.5034 GB, free: 5.879 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.373e-05/0.5517, allocations: 16.11 kB / 0.5035 GB, free: 5.863 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004092/0.5558, allocations: 0.592 MB / 0.504 GB, free: 5.262 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001176/0.557, allocations: 291.5 kB / 0.5043 GB, free: 4.977 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001973/0.559, allocations: 2.024 MB / 0.5063 GB, free: 2.875 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001471/0.5604, allocations: 67.95 kB / 0.5064 GB, free: 2.809 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002325/0.5607, allocations: 67.98 kB / 0.5064 GB, free: 2.742 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.000603/0.5613, allocations: 272.8 kB / 0.5067 GB, free: 2.469 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005916/0.5619, allocations: 142.5 kB / 0.5068 GB, free: 2.328 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003582/0.5655, allocations: 1.523 MB / 0.5083 GB, free: 0.7969 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.176e-05/0.5655, allocations: 12 kB / 0.5083 GB, free: 0.7852 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.24e-05/0.5655, allocations: 4.062 kB / 0.5083 GB, free: 0.7812 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.231e-05/0.5656, allocations: 15.84 kB / 0.5083 GB, free: 0.7656 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005447/0.571, allocations: 2.801 MB / 0.5111 GB, free: 13.88 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.778e-06/0.5711, allocations: 4 kB / 0.5111 GB, free: 13.88 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006898/0.5718, allocations: 147.8 kB / 0.5112 GB, free: 13.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002797/0.5746, allocations: 0.5842 MB / 0.5118 GB, free: 13.14 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001189/0.5747, allocations: 23.94 kB / 0.5118 GB, free: 13.11 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00201/0.5767, allocations: 2.118 MB / 0.5139 GB, free: 10.92 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.5768, allocations: 0 / 0.5139 GB, free: 10.92 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003559/0.5803, allocations: 2.111 MB / 0.5159 GB, free: 8.77 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006203/0.581, allocations: 215.3 kB / 0.5161 GB, free: 8.539 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003968/0.5814, allocations: 28 kB / 0.5162 GB, free: 8.512 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001041/0.5824, allocations: 51.89 kB / 0.5162 GB, free: 8.461 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002183/0.5827, allocations: 88.88 kB / 0.5163 GB, free: 8.371 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001292/0.5828, allocations: 43.97 kB / 0.5164 GB, free: 8.328 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001628/0.5844, allocations: 0.9084 MB / 0.5172 GB, free: 7.418 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5844, allocations: 0 / 0.5172 GB, free: 7.418 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003567/0.588, 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.002528/0.5906, allocations: 0.8316 MB / 0.5191 GB, free: 5.473 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005046/0.5956, allocations: 2.272 MB / 0.5214 GB, free: 3.207 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.748e-06/0.5957, allocations: 8.062 kB / 0.5214 GB, free: 3.199 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001359/0.597, allocations: 0.6809 MB / 0.522 GB, free: 2.52 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003332/0.6004, allocations: 0.634 MB / 0.5227 GB, free: 1.895 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005032/0.6054, allocations: 2.765 MB / 0.5254 GB, free: 15.08 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001058/0.6065, allocations: 1.252 MB / 0.5266 GB, free: 13.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000529/0.607, allocations: 127.4 kB / 0.5267 GB, free: 13.67 MB / 462.1 MB Notification: Performance of SimCode: time 9.42e-07/0.6071, allocations: 0 / 0.5267 GB, free: 13.67 MB / 462.1 MB Notification: Performance of Templates: time 0.3157/0.9228, allocations: 45.69 MB / 0.5713 GB, free: 104.9 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)