Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.|tank2.aboveLevel.2.|tank2.aboveLevel.3.|tank3.aboveLevel.1.|tank3.aboveLevel.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.|tank2.aboveLevel.2.|tank2.aboveLevel.3.|tank3.aboveLevel.1.|tank3.aboveLevel.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00292/0.00292, allocations: 186.7 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.568/3.568, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001854/0.001855, allocations: 94.86 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.005328/0.005328, allocations: 8 kB / 327 MB, free: 15.1 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1484/0.1538, allocations: 47.58 MB / 374.5 MB, free: 15.44 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2): time 0.455/0.6089, allocations: 32.01 MB / 406.6 MB, free: 5.379 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.03685/0.6458, allocations: 13.55 MB / 420.1 MB, free: 11.92 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003165/0.6491, allocations: 68 kB / 420.2 MB, free: 11.88 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003427/0.6525, allocations: 0.601 MB / 420.8 MB, free: 11.36 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01021/0.6628, allocations: 2.064 MB / 422.8 MB, free: 9.688 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01377/0.6766, allocations: 2.941 MB / 425.8 MB, free: 7.68 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.006677/0.6833, allocations: 2.631 MB / 428.4 MB, free: 5.977 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002726/0.6861, allocations: 1.043 MB / 429.5 MB, free: 5.309 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004613/0.6908, allocations: 1.344 MB / 430.8 MB, free: 4.582 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003683/0.6945, allocations: 1.17 MB / 432 MB, free: 3.707 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009352/0.6955, allocations: 92 kB / 432.1 MB, free: 3.617 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01339/0.7089, allocations: 2.223 MB / 434.3 MB, free: 1.391 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002459/0.7115, allocations: 0.5142 MB / 434.8 MB, free: 0.875 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001961/0.7135, allocations: 360.8 kB / 435.2 MB, free: 0.5156 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01283/0.7264, allocations: 2.931 MB / 438.1 MB, free: 13.58 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.7265, allocations: 0 / 438.1 MB, free: 13.58 MB / 314.7 MB Notification: Performance of FrontEnd: time 4.258e-06/0.7265, allocations: 4 kB / 438.1 MB, free: 13.57 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001059/0.7266, allocations: 0 / 438.1 MB, free: 13.57 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.01418/0.7408, allocations: 2.1 MB / 440.2 MB, free: 11.42 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.069e-05/0.741, allocations: 12.03 kB / 440.2 MB, free: 11.41 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002378/0.7434, allocations: 201.7 kB / 440.4 MB, free: 11.21 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006639/0.7501, allocations: 1.036 MB / 441.4 MB, free: 10.11 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004123/0.7506, allocations: 102.2 kB / 441.5 MB, free: 10.01 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001105/0.7517, allocations: 123.9 kB / 441.7 MB, free: 9.891 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01232/0.764, allocations: 1.932 MB / 443.6 MB, free: 7.863 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001208/0.7642, allocations: 7.938 kB / 443.6 MB, free: 7.855 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006744/0.7649, allocations: 55.91 kB / 443.7 MB, free: 7.801 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005481/0.7655, allocations: 118.3 kB / 443.8 MB, free: 7.684 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.014/0.7795, allocations: 1.976 MB / 445.7 MB, free: 5.699 MB / 314.7 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.04059/0.8202, allocations: 7.946 MB / 453.7 MB, free: 13.28 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006472/0.8268, allocations: 1.172 MB / 454.9 MB, free: 12.11 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01681/0.8437, allocations: 3.455 MB / 458.3 MB, free: 8.383 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001328/0.8439, allocations: 55.55 kB / 458.4 MB, free: 8.32 MB / 330.7 MB Notification: Performance of pre-optimization done (n=119): time 1.044e-05/0.8439, allocations: 0 / 458.4 MB, free: 8.32 MB / 330.7 MB Notification: Performance of matching and sorting (n=134): time 0.045/0.8889, allocations: 5.428 MB / 463.8 MB, free: 2.762 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001873/0.8892, allocations: 175.5 kB / 464 MB, free: 2.555 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006718/0.8959, allocations: 1.408 MB / 465.4 MB, free: 1.137 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006589/0.8967, allocations: 57.7 kB / 465.4 MB, free: 1.074 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001383/0.8981, allocations: 0.6733 MB / 466.1 MB, free: 404 kB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001509/0.8997, allocations: 473.4 kB / 466.6 MB, free: 15.92 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004191/0.9002, allocations: 36 kB / 466.6 MB, free: 15.89 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0004265/0.9006, allocations: 374.8 kB / 467 MB, free: 15.51 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0044/0.9051, allocations: 0.7613 MB / 467.7 MB, free: 14.75 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005609/0.9107, allocations: 1.179 MB / 468.9 MB, free: 13.39 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005055/0.9159, allocations: 0.8726 MB / 469.8 MB, free: 12.52 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.904e-05/0.916, allocations: 7.938 kB / 469.8 MB, free: 12.52 MB / 346.7 MB Notification: Performance of matching and sorting (n=224) (initialization): time 0.01316/0.9292, allocations: 2.308 MB / 472.1 MB, free: 10.19 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.003125/0.9323, allocations: 4.542 MB / 476.6 MB, free: 5.297 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.216e-05/0.9325, allocations: 12 kB / 476.7 MB, free: 5.285 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02255/0.9551, allocations: 1.138 MB / 477.8 MB, free: 4.133 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007748/0.9629, allocations: 355.4 kB / 478.1 MB, free: 3.785 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007361/0.9703, allocations: 2.889 MB / 481 MB, free: 0.793 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004616/0.975, allocations: 127.8 kB / 481.2 MB, free: 0.668 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008342/0.9759, allocations: 79.97 kB / 481.2 MB, free: 0.5898 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.652e-05/0.976, allocations: 4 kB / 481.2 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01098/0.987, allocations: 2.128 MB / 483.4 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.022e-05/0.9871, allocations: 12 kB / 483.4 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01186/0.999, allocations: 0.8499 MB / 484.2 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003211/1.002, allocations: 363.4 kB / 484.6 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006335/1.009, allocations: 2.623 MB / 487.2 MB, free: 10.49 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003693/1.012, allocations: 120 kB / 487.3 MB, free: 10.37 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008112/1.013, allocations: 83.97 kB / 487.4 MB, free: 10.29 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.tank3.aboveLevel[1],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[2],$PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[3],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.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 (203): * Single equations (assignments): 199 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 2,2 7,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.002901/1.016, allocations: 0.5219 MB / 487.9 MB, free: 9.754 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001157/1.017, allocations: 173.9 kB / 488.1 MB, free: 9.582 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01826/1.036, allocations: 2.352 MB / 490.4 MB, free: 7.203 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.043e-05/1.036, allocations: 16 kB / 490.5 MB, free: 7.188 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.684e-05/1.036, allocations: 4 kB / 490.5 MB, free: 7.184 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.085e-05/1.036, allocations: 7.969 kB / 490.5 MB, free: 7.176 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02277/1.059, allocations: 4.034 MB / 494.5 MB, free: 3.043 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-05/1.059, allocations: 4 kB / 494.5 MB, free: 3.039 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003582/1.063, allocations: 239.6 kB / 494.7 MB, free: 2.805 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01276/1.075, allocations: 0.9402 MB / 495.7 MB, free: 1.852 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005745/1.076, allocations: 39.98 kB / 495.7 MB, free: 1.812 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006873/1.083, allocations: 2.847 MB / 498.6 MB, free: 14.86 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.817e-06/1.083, allocations: 0 / 498.6 MB, free: 14.86 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01659/1.1, allocations: 3.246 MB / 0.4901 GB, free: 11.53 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001391/1.101, allocations: 278.8 kB / 0.4903 GB, free: 11.24 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001256/1.102, allocations: 39.98 kB / 0.4904 GB, free: 11.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003879/1.106, allocations: 103.8 kB / 0.4905 GB, free: 11.1 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001072/1.108, allocations: 153 kB / 0.4906 GB, free: 10.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000537/1.108, allocations: 59.97 kB / 0.4907 GB, free: 10.89 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.004286/1.112, allocations: 0.9668 MB / 0.4916 GB, free: 9.926 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.102e-06/1.113, allocations: 0 / 0.4916 GB, free: 9.926 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.01012/1.123, allocations: 1.273 MB / 0.4928 GB, free: 8.652 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (tank3.level,tank3.medium.T,tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of discrete states: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,2 12,2 12,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.006187/1.129, allocations: 0.8887 MB / 0.4937 GB, free: 7.75 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01769/1.147, allocations: 3.043 MB / 0.4967 GB, free: 4.715 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.721e-05/1.147, allocations: 0 / 0.4967 GB, free: 4.715 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006302/1.153, allocations: 1.081 MB / 0.4977 GB, free: 3.633 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01031/1.163, allocations: 0.7386 MB / 0.4985 GB, free: 2.891 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01815/1.182, allocations: 4.152 MB / 0.5025 GB, free: 14.69 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003177/1.185, allocations: 1.43 MB / 0.5039 GB, free: 13.23 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001905/1.187, allocations: 159.4 kB / 0.5041 GB, free: 13.07 MB / 394.7 MB Notification: Performance of SimCode: time 5.249e-06/1.187, allocations: 0 / 0.5041 GB, free: 13.07 MB / 394.7 MB Notification: Performance of Templates: time 0.5994/1.786, allocations: 59.1 MB / 0.5618 GB, free: 118.6 MB / 410.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe 2>&1)