Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.T|tank.aboveLevel.1.|tank.ports_m_flow_out.1.|timeTable.a|timeTable.b|timeTable.last|timeTable.nextEvent",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") Notification: Performance of loadModel(Modelica): time 1.814/1.814, allocations: 194.9 MB / 211.7 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004654/0.0004655, allocations: 12 kB / 264.6 MB, free: 12.94 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08809/0.08858, allocations: 44.51 MB / 309.1 MB, free: 364 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank): time 0.02275/0.1114, allocations: 14.87 MB / 323.9 MB, free: 1.434 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01205/0.1235, allocations: 5.837 MB / 329.8 MB, free: 11.59 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007655/0.1243, allocations: 31.75 kB / 329.8 MB, free: 11.56 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001169/0.1255, allocations: 334.4 kB / 330.1 MB, free: 11.23 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002775/0.1283, allocations: 0.8179 MB / 331 MB, free: 10.41 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005737/0.134, allocations: 1.438 MB / 332.4 MB, free: 8.969 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002662/0.1367, allocations: 1.218 MB / 333.6 MB, free: 7.746 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008542/0.1376, allocations: 429.2 kB / 334 MB, free: 7.316 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001441/0.1391, allocations: 0.6152 MB / 334.6 MB, free: 6.699 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009852/0.1401, allocations: 486.3 kB / 335.1 MB, free: 6.223 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001466/0.1402, allocations: 36 kB / 335.2 MB, free: 6.188 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0027/0.1429, allocations: 0.983 MB / 336.1 MB, free: 5.203 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000402/0.1434, allocations: 211.4 kB / 336.3 MB, free: 4.996 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003232/0.1437, allocations: 177.3 kB / 336.5 MB, free: 4.816 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002595/0.1463, allocations: 1.193 MB / 337.7 MB, free: 3.621 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.916e-06/0.1463, allocations: 0 / 337.7 MB, free: 3.621 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.744e-06/0.1464, allocations: 0 / 337.7 MB, free: 3.621 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.222e-05/0.1464, allocations: 0 / 337.7 MB, free: 3.621 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.002951/0.1493, allocations: 1.088 MB / 338.8 MB, free: 2.473 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.447e-05/0.1494, allocations: 8.031 kB / 338.8 MB, free: 2.465 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004943/0.1499, allocations: 98.97 kB / 338.9 MB, free: 2.367 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00131/0.1512, allocations: 0.558 MB / 339.5 MB, free: 1.77 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001295/0.1514, allocations: 96.39 kB / 339.6 MB, free: 1.664 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001474/0.1515, allocations: 51.92 kB / 339.6 MB, free: 1.613 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001913/0.1535, allocations: 0.7813 MB / 340.4 MB, free: 0.7852 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.788e-05/0.1535, allocations: 3.938 kB / 340.4 MB, free: 0.7812 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001093/0.1536, allocations: 24 kB / 340.4 MB, free: 0.7578 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001054/0.1537, allocations: 40.97 kB / 340.5 MB, free: 0.7148 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001825/0.1556, allocations: 0.6752 MB / 341.1 MB, free: 40 kB / 282.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.007211/0.1628, allocations: 3.481 MB / 344.6 MB, free: 12.32 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001045/0.1639, allocations: 395.1 kB / 345 MB, free: 11.93 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00243/0.1663, allocations: 1.281 MB / 346.3 MB, free: 10.51 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006629/0.167, allocations: 288.9 kB / 346.6 MB, free: 10.21 MB / 298.7 MB Notification: Performance of pre-optimization done (n=35): time 2.484e-06/0.167, allocations: 0 / 346.6 MB, free: 10.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.005477/0.1725, allocations: 1.721 MB / 348.3 MB, free: 8.379 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.749e-05/0.1726, allocations: 162.5 kB / 348.4 MB, free: 8.184 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001255/0.1739, allocations: 0.6956 MB / 349.1 MB, free: 7.477 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.898e-05/0.174, allocations: 33.7 kB / 349.2 MB, free: 7.438 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004238/0.1744, allocations: 422.5 kB / 349.6 MB, free: 7.016 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001686/0.1746, allocations: 138.1 kB / 349.7 MB, free: 6.879 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.724e-05/0.1747, allocations: 16 kB / 349.7 MB, free: 6.863 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002005/0.1749, allocations: 386.8 kB / 350.1 MB, free: 6.477 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006608/0.1756, allocations: 237.9 kB / 350.3 MB, free: 6.246 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008901/0.1765, allocations: 0.5273 MB / 350.9 MB, free: 5.586 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008237/0.1773, allocations: 343.1 kB / 351.2 MB, free: 5.242 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.601e-06/0.1773, allocations: 0 / 351.2 MB, free: 5.242 MB / 298.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002521/0.1799, allocations: 0.9117 MB / 352.1 MB, free: 4.312 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003123/0.1802, allocations: 395 kB / 352.5 MB, free: 3.793 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.866e-05/0.1802, allocations: 8 kB / 352.5 MB, free: 3.785 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008237/0.1811, allocations: 136.8 kB / 352.6 MB, free: 3.648 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009631/0.182, allocations: 147.8 kB / 352.8 MB, free: 3.504 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008637/0.1829, allocations: 0.681 MB / 353.5 MB, free: 2.797 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009173/0.1839, allocations: 43.98 kB / 353.5 MB, free: 2.754 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.697e-05/0.184, allocations: 39.98 kB / 353.5 MB, free: 2.715 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.083e-05/0.184, allocations: 4 kB / 353.5 MB, free: 2.711 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002504/0.1865, allocations: 0.8443 MB / 354.4 MB, free: 1.859 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.514e-05/0.1865, allocations: 8 kB / 354.4 MB, free: 1.852 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006302/0.1872, allocations: 121.2 kB / 354.5 MB, free: 1.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009316/0.1881, allocations: 147.8 kB / 354.7 MB, free: 1.586 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007682/0.1889, allocations: 0.6615 MB / 355.3 MB, free: 0.8984 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008139/0.1897, allocations: 44.05 kB / 355.4 MB, free: 0.8555 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.145e-05/0.1898, allocations: 32 kB / 355.4 MB, free: 0.8242 MB / 298.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = tank.T_start unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real tank.level:VARIABLE(start = tank.level_start unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0007091/0.1906, allocations: 400.9 kB / 355.8 MB, free: 428 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001567/0.1907, allocations: 75.16 kB / 355.9 MB, free: 352 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001872/0.1926, allocations: 0.6314 MB / 356.5 MB, free: 15.69 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.15e-05/0.1926, allocations: 3.984 kB / 356.5 MB, free: 15.69 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.1927, allocations: 0 / 356.5 MB, free: 15.69 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002386/0.1929, allocations: 144.2 kB / 356.6 MB, free: 15.53 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001835/0.1931, allocations: 15.98 kB / 356.7 MB, free: 15.51 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005825/0.1937, allocations: 27.98 kB / 356.7 MB, free: 15.48 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001302/0.1938, allocations: 43.66 kB / 356.7 MB, free: 15.44 MB / 314.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002087/0.1959, allocations: 0.721 MB / 357.4 MB, free: 14.69 MB / 314.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.002073/0.198, allocations: 0.9381 MB / 358.4 MB, free: 13.73 MB / 314.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005901/0.1986, allocations: 236.8 kB / 358.6 MB, free: 13.5 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000955/0.1996, allocations: 483 kB / 359.1 MB, free: 13.03 MB / 314.7 MB Notification: Performance of Backend: time 5.51e-07/0.1996, allocations: 0 / 359.1 MB, free: 13.03 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00504/0.2047, allocations: 1.433 MB / 360.5 MB, free: 11.57 MB / 314.7 MB Notification: Performance of SimCode: time 0.00473/0.2095, allocations: 2.329 MB / 362.9 MB, free: 9.184 MB / 314.7 MB Notification: Performance of Templates: time 0.2859/0.4954, allocations: 16.25 MB / 379.1 MB, free: 62 MB / 314.7 MB