Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.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.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadModel(Modelica): time 1.694/1.694, allocations: 171.2 MB / 186.7 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003515/0.0003516, allocations: 12 kB / 233.9 MB, free: 300 kB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0838/0.08418, allocations: 38.78 MB / 272.6 MB, free: 9.438 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.2288/0.313, allocations: 13.72 MB / 286.3 MB, free: 8.699 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.01167/0.3247, allocations: 6.137 MB / 292.5 MB, free: 6.512 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001205/0.326, allocations: 28.5 kB / 292.5 MB, free: 6.496 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001202/0.3272, allocations: 289.8 kB / 292.8 MB, free: 6.375 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003829/0.3311, allocations: 0.8891 MB / 293.7 MB, free: 5.895 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005975/0.3371, allocations: 1.383 MB / 295.1 MB, free: 5.246 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.003282/0.3404, allocations: 1.326 MB / 296.4 MB, free: 4.605 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001127/0.3416, allocations: 0.4916 MB / 296.9 MB, free: 4.434 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001627/0.3432, allocations: 0.6058 MB / 297.5 MB, free: 4.195 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00113/0.3444, allocations: 0.518 MB / 298 MB, free: 4.008 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001966/0.3446, allocations: 42.62 kB / 298.1 MB, free: 4.008 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003591/0.3482, allocations: 1.085 MB / 299.1 MB, free: 3.586 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005643/0.3488, allocations: 252.9 kB / 299.4 MB, free: 3.426 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004015/0.3492, allocations: 171 kB / 299.5 MB, free: 3.332 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00325/0.3525, allocations: 1.299 MB / 300.8 MB, free: 2.543 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.3525, allocations: 0 / 300.8 MB, free: 2.543 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.725e-06/0.3525, allocations: 0 / 300.8 MB, free: 2.543 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.351e-05/0.3526, allocations: 1 kB / 300.9 MB, free: 2.543 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.003617/0.3562, allocations: 1.101 MB / 302 MB, free: 1.676 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.836e-05/0.3563, allocations: 9.312 kB / 302 MB, free: 1.676 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004766/0.3567, allocations: 93.75 kB / 302.1 MB, free: 1.633 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001373/0.3581, allocations: 0.5771 MB / 302.6 MB, free: 1.16 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001274/0.3583, allocations: 107.6 kB / 302.7 MB, free: 1.07 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001607/0.3584, allocations: 59.31 kB / 302.8 MB, free: 1.047 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0022/0.3607, allocations: 0.8896 MB / 303.7 MB, free: 0.5 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.163e-05/0.3607, allocations: 3.906 kB / 303.7 MB, free: 0.4961 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001198/0.3608, allocations: 26.02 kB / 303.7 MB, free: 488 kB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001287/0.361, allocations: 48.62 kB / 303.8 MB, free: 476 kB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002206/0.3632, allocations: 0.8454 MB / 304.6 MB, free: 36 kB / 234.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.009793/0.373, allocations: 3.499 MB / 308.1 MB, free: 13.29 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001688/0.3747, allocations: 0.6539 MB / 308.8 MB, free: 12.95 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004982/0.3797, allocations: 2.072 MB / 310.8 MB, free: 11.12 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.3e-05/0.3798, allocations: 42.56 kB / 310.9 MB, free: 11.07 MB / 250.7 MB Notification: Performance of pre-optimization done (n=56): time 3.877e-06/0.3799, allocations: 3.938 kB / 310.9 MB, free: 11.07 MB / 250.7 MB Notification: Performance of matching and sorting (n=66): time 0.0123/0.3922, allocations: 2.865 MB / 313.7 MB, free: 9.129 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.966e-05/0.3923, allocations: 81.67 kB / 313.8 MB, free: 9.031 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001333/0.3936, allocations: 0.6721 MB / 314.5 MB, free: 8.348 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001243/0.3938, allocations: 41.7 kB / 314.5 MB, free: 8.301 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003534/0.3941, allocations: 332.5 kB / 314.9 MB, free: 7.973 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003151/0.3945, allocations: 232.7 kB / 315.1 MB, free: 7.742 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.754e-05/0.3946, allocations: 27.88 kB / 315.1 MB, free: 7.715 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0002316/0.3948, allocations: 390.7 kB / 315.5 MB, free: 7.324 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001055/0.3959, allocations: 353.8 kB / 315.8 MB, free: 6.98 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00119/0.3971, allocations: 0.5113 MB / 316.3 MB, free: 6.41 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001149/0.3982, allocations: 411 kB / 316.7 MB, free: 6.008 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.449e-06/0.3982, allocations: 0 / 316.7 MB, free: 6.008 MB / 250.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003434/0.4017, allocations: 1.153 MB / 317.9 MB, free: 4.844 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001759/0.4019, allocations: 207.7 kB / 318.1 MB, free: 4.582 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.543e-05/0.4019, allocations: 8 kB / 318.1 MB, free: 4.574 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002121/0.4041, allocations: 452.4 kB / 318.6 MB, free: 4.129 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001297/0.4054, allocations: 155.7 kB / 318.7 MB, free: 3.977 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00205/0.4074, allocations: 1.033 MB / 319.7 MB, free: 2.918 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001237/0.4087, allocations: 44.02 kB / 319.8 MB, free: 2.875 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001224/0.4088, allocations: 31.98 kB / 319.8 MB, free: 2.844 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/0.4089, allocations: 4 kB / 319.8 MB, free: 2.84 MB / 250.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002846/0.4117, allocations: 0.9294 MB / 320.7 MB, free: 1.906 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.52e-05/0.4118, allocations: 7.984 kB / 320.8 MB, free: 1.898 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001012/0.4128, allocations: 249.3 kB / 321 MB, free: 1.652 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001282/0.4141, allocations: 167.7 kB / 321.2 MB, free: 1.488 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001237/0.4153, allocations: 0.8099 MB / 322 MB, free: 0.6523 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001016/0.4164, allocations: 43.83 kB / 322 MB, free: 0.6094 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001093/0.4165, allocations: 36.08 kB / 322 MB, free: 0.5742 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 83 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0006601/0.4172, allocations: 336.8 kB / 322.4 MB, free: 240 kB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002164/0.4174, allocations: 79.06 kB / 322.5 MB, free: 160 kB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003326/0.4207, allocations: 1.087 MB / 323.5 MB, free: 15.05 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.553e-05/0.4208, allocations: 5.797 kB / 323.5 MB, free: 15.04 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.4208, allocations: 0 / 323.5 MB, free: 15.04 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000722/0.4215, allocations: 252 kB / 323.8 MB, free: 14.78 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002157/0.4218, allocations: 16 kB / 323.8 MB, free: 14.76 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001048/0.4228, allocations: 51.81 kB / 323.9 MB, free: 14.71 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002126/0.4231, allocations: 60.56 kB / 323.9 MB, free: 14.65 MB / 266.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004006/0.4271, allocations: 1.111 MB / 325 MB, free: 13.53 MB / 266.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.003625/0.4307, allocations: 1.432 MB / 326.5 MB, free: 12.09 MB / 266.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001029/0.4318, allocations: 392.9 kB / 326.8 MB, free: 11.7 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0009442/0.4328, allocations: 471 kB / 327.3 MB, free: 11.25 MB / 266.7 MB Notification: Performance of Backend: time 6.21e-07/0.4328, allocations: 0 / 327.3 MB, free: 11.25 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.005717/0.4385, allocations: 1.467 MB / 328.8 MB, free: 9.773 MB / 266.7 MB Notification: Performance of SimCode: time 0.005672/0.4442, allocations: 2.552 MB / 331.3 MB, free: 7.168 MB / 266.7 MB Notification: Performance of Templates: time 0.05981/0.5041, allocations: 22.56 MB / 353.9 MB, free: 0.6484 MB / 282.7 MB