Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") Notification: Performance of loadModel(Modelica): time 1.649/1.649, allocations: 171.2 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005504/0.0005505, allocations: 8 kB / 233.9 MB, free: 2.383 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08414/0.08473, allocations: 38.77 MB / 272.6 MB, free: 11.53 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank): time 0.02375/0.1085, allocations: 14.85 MB / 287.5 MB, free: 12.62 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01228/0.1209, allocations: 5.818 MB / 293.3 MB, free: 6.801 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009399/0.1219, allocations: 31.75 kB / 293.3 MB, free: 6.77 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001255/0.1231, allocations: 338.5 kB / 293.7 MB, free: 6.438 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003014/0.1262, allocations: 0.8179 MB / 294.5 MB, free: 5.617 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005889/0.1321, allocations: 1.438 MB / 295.9 MB, free: 4.176 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002765/0.1349, allocations: 1.21 MB / 297.1 MB, free: 2.965 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009425/0.1358, allocations: 437.1 kB / 297.6 MB, free: 2.523 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001555/0.1374, allocations: 0.5997 MB / 298.2 MB, free: 1.922 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001006/0.1385, allocations: 482.3 kB / 298.6 MB, free: 1.449 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001792/0.1387, allocations: 32 kB / 298.7 MB, free: 1.418 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002787/0.1415, allocations: 0.9869 MB / 299.6 MB, free: 440 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004685/0.142, allocations: 215.4 kB / 299.9 MB, free: 224 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003217/0.1423, allocations: 165.3 kB / 300 MB, free: 52 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2267/0.369, allocations: 1.195 MB / 301.2 MB, free: 11.48 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.3691, allocations: 0 / 301.2 MB, free: 11.48 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.095e-06/0.3691, allocations: 0 / 301.2 MB, free: 11.48 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.978e-05/0.3692, allocations: 1.375 kB / 301.2 MB, free: 11.48 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.004909/0.3741, allocations: 1.083 MB / 302.3 MB, free: 10.77 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.781e-05/0.3742, allocations: 8.25 kB / 302.3 MB, free: 10.77 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001152/0.3753, allocations: 92.12 kB / 302.4 MB, free: 10.73 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002444/0.3778, allocations: 0.5499 MB / 302.9 MB, free: 10.46 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002083/0.3781, allocations: 94.28 kB / 303 MB, free: 10.4 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000295/0.3784, allocations: 49.81 kB / 303.1 MB, free: 10.4 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002512/0.381, allocations: 0.7802 MB / 303.9 MB, free: 10.25 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.596e-05/0.381, allocations: 5.641 kB / 303.9 MB, free: 10.25 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001225/0.3812, allocations: 21.34 kB / 303.9 MB, free: 10.25 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001271/0.3813, allocations: 45.59 kB / 303.9 MB, free: 10.25 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001939/0.3833, allocations: 0.6653 MB / 304.6 MB, free: 10.25 MB / 250.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.009474/0.3928, allocations: 3.469 MB / 308.1 MB, free: 8.215 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001374/0.3942, allocations: 384.5 kB / 308.4 MB, free: 8.191 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002405/0.3966, allocations: 1.276 MB / 309.7 MB, free: 7.32 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006052/0.3972, allocations: 278.9 kB / 310 MB, free: 7.23 MB / 250.7 MB Notification: Performance of pre-optimization done (n=33): time 3.677e-06/0.3973, allocations: 1.188 kB / 310 MB, free: 7.23 MB / 250.7 MB Notification: Performance of matching and sorting (n=38): time 0.005344/0.4026, allocations: 1.739 MB / 311.7 MB, free: 6.531 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.25e-05/0.4027, allocations: 159.2 kB / 311.9 MB, free: 6.344 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001205/0.4039, allocations: 0.6961 MB / 312.6 MB, free: 6.199 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 7.726e-05/0.404, allocations: 33.23 kB / 312.6 MB, free: 6.168 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003305/0.4044, allocations: 420 kB / 313 MB, free: 5.957 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001455/0.4045, allocations: 135.1 kB / 313.2 MB, free: 5.879 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.21e-05/0.4046, allocations: 13.88 kB / 313.2 MB, free: 5.879 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000143/0.4047, allocations: 391.9 kB / 313.6 MB, free: 5.559 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000611/0.4054, allocations: 231.1 kB / 313.8 MB, free: 5.559 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007479/0.4061, allocations: 0.5215 MB / 314.3 MB, free: 5.199 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007752/0.4069, allocations: 336.1 kB / 314.6 MB, free: 5.148 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.514e-06/0.4069, allocations: 1.375 kB / 314.6 MB, free: 5.148 MB / 250.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002388/0.4093, allocations: 0.9335 MB / 315.6 MB, free: 5.023 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002055/0.4096, allocations: 391.8 kB / 316 MB, free: 4.574 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.843e-05/0.4096, allocations: 10.72 kB / 316 MB, free: 4.574 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000806/0.4104, allocations: 133.6 kB / 316.1 MB, free: 4.562 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009661/0.4114, allocations: 155.3 kB / 316.2 MB, free: 4.559 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007118/0.4121, allocations: 0.672 MB / 316.9 MB, free: 4.035 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009835/0.4131, allocations: 44.88 kB / 317 MB, free: 4.035 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9e-05/0.4132, allocations: 36.19 kB / 317 MB, free: 4.035 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.035e-05/0.4132, allocations: 3.344 kB / 317 MB, free: 4.035 MB / 250.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002467/0.4157, allocations: 0.873 MB / 317.9 MB, free: 3.98 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.739e-05/0.4158, allocations: 13.3 kB / 317.9 MB, free: 3.98 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006312/0.4164, allocations: 119 kB / 318 MB, free: 3.965 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009223/0.4174, allocations: 151.9 kB / 318.2 MB, free: 3.965 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006199/0.418, allocations: 0.6574 MB / 318.8 MB, free: 3.441 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000942/0.419, allocations: 41.02 kB / 318.8 MB, free: 3.438 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.578e-05/0.4191, allocations: 37.66 kB / 318.9 MB, free: 3.438 MB / 250.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: 10 ($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) * 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.0007811/0.4198, allocations: 395.8 kB / 319.3 MB, free: 3.207 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000172/0.42, allocations: 79.67 kB / 319.3 MB, free: 3.164 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001871/0.4219, allocations: 0.6428 MB / 320 MB, free: 3.07 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.569e-05/0.422, allocations: 0 / 320 MB, free: 3.07 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.422, allocations: 0 / 320 MB, free: 3.07 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004581/0.4225, allocations: 153.2 kB / 320.1 MB, free: 2.934 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003173/0.4228, allocations: 18.12 kB / 320.2 MB, free: 2.93 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006492/0.4235, allocations: 27.59 kB / 320.2 MB, free: 2.926 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001253/0.4236, allocations: 43.91 kB / 320.2 MB, free: 2.918 MB / 250.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001956/0.4256, allocations: 0.7315 MB / 321 MB, free: 2.695 MB / 250.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.001902/0.4275, allocations: 0.9595 MB / 321.9 MB, free: 2.398 MB / 250.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004755/0.428, allocations: 213.2 kB / 322.1 MB, free: 2.398 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0008973/0.4289, allocations: 475.5 kB / 322.6 MB, free: 2.305 MB / 250.7 MB Notification: Performance of Backend: time 9.22e-07/0.4289, allocations: 0 / 322.6 MB, free: 2.305 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.004853/0.4338, allocations: 1.38 MB / 324 MB, free: 2.035 MB / 250.7 MB Notification: Performance of SimCode: time 0.004046/0.4379, allocations: 2.293 MB / 326.3 MB, free: 0.6875 MB / 250.7 MB Notification: Performance of Templates: time 0.0535/0.4914, allocations: 16.1 MB / 342.4 MB, free: 2.359 MB / 266.7 MB