Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadModel(Modelica): time 1.615/1.615, allocations: 171.2 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003684/0.0003686, allocations: 12 kB / 233.2 MB, free: 3.07 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06881/0.0692, allocations: 38.77 MB / 271.9 MB, free: 12.22 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.02003/0.08927, allocations: 13.73 MB / 285.7 MB, free: 14.43 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01199/0.1013, allocations: 6.124 MB / 291.8 MB, free: 8.301 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001035/0.1024, allocations: 31.69 kB / 291.8 MB, free: 8.27 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001043/0.1034, allocations: 290.5 kB / 292.1 MB, free: 7.984 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00327/0.1067, allocations: 0.8919 MB / 293 MB, free: 7.09 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005181/0.1119, allocations: 1.372 MB / 294.4 MB, free: 5.715 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00265/0.1146, allocations: 1.332 MB / 295.7 MB, free: 4.383 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009899/0.1156, allocations: 0.49 MB / 296.2 MB, free: 3.875 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001459/0.1171, allocations: 0.6037 MB / 296.8 MB, free: 3.27 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001066/0.1182, allocations: 0.5216 MB / 297.3 MB, free: 2.746 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001689/0.1184, allocations: 40 kB / 297.3 MB, free: 2.707 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002867/0.1213, allocations: 1.088 MB / 298.4 MB, free: 1.617 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004824/0.1218, allocations: 251.3 kB / 298.7 MB, free: 1.371 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003555/0.1222, allocations: 177.3 kB / 298.9 MB, free: 1.191 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1859/0.3081, allocations: 1.276 MB / 300.1 MB, free: 11.14 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.592e-06/0.3081, allocations: 0.5 kB / 300.1 MB, free: 11.14 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.781e-06/0.3081, allocations: 0 / 300.1 MB, free: 11.14 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.94e-05/0.3082, allocations: 4.031 kB / 300.1 MB, free: 11.14 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.003818/0.312, allocations: 1.114 MB / 301.2 MB, free: 10.46 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.36e-05/0.3121, allocations: 13.61 kB / 301.3 MB, free: 10.46 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008217/0.3129, allocations: 97.02 kB / 301.4 MB, free: 10.42 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002047/0.315, allocations: 0.5768 MB / 301.9 MB, free: 10.15 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001417/0.3152, allocations: 108.5 kB / 302 MB, free: 10.09 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001907/0.3154, allocations: 53 kB / 302.1 MB, free: 10.09 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002185/0.3176, allocations: 0.8973 MB / 303 MB, free: 9.992 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.178e-05/0.3177, allocations: 2.234 kB / 303 MB, free: 9.992 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001136/0.3178, allocations: 20.19 kB / 303 MB, free: 9.992 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001106/0.3179, allocations: 59.14 kB / 303.1 MB, free: 9.992 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002175/0.3201, allocations: 0.836 MB / 303.9 MB, free: 9.984 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.007759/0.3279, allocations: 3.5 MB / 307.4 MB, free: 8.609 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001532/0.3294, allocations: 0.656 MB / 308.1 MB, free: 8.578 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003919/0.3334, allocations: 2.07 MB / 310.1 MB, free: 7.402 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.614e-05/0.3335, allocations: 42.16 kB / 310.2 MB, free: 7.359 MB / 250.7 MB Notification: Performance of pre-optimization done (n=56): time 4.665e-06/0.3335, allocations: 0 / 310.2 MB, free: 7.359 MB / 250.7 MB Notification: Performance of matching and sorting (n=66): time 0.009144/0.3427, allocations: 2.858 MB / 313 MB, free: 6.812 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.57e-05/0.3428, allocations: 92.55 kB / 313.1 MB, free: 6.715 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001167/0.3439, allocations: 0.6698 MB / 313.8 MB, free: 6.578 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001797/0.3441, allocations: 39.2 kB / 313.8 MB, free: 6.547 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002191/0.3444, allocations: 361.2 kB / 314.2 MB, free: 6.32 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002341/0.3446, allocations: 228 kB / 314.4 MB, free: 6.176 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.813e-05/0.3447, allocations: 17.62 kB / 314.4 MB, free: 6.176 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.204e-05/0.3448, allocations: 342.5 kB / 314.8 MB, free: 5.863 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008754/0.3457, allocations: 356.4 kB / 315.1 MB, free: 5.863 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009726/0.3467, allocations: 0.5112 MB / 315.6 MB, free: 5.699 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009845/0.3477, allocations: 412.3 kB / 316 MB, free: 5.691 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.675e-06/0.3477, allocations: 5.312 kB / 316 MB, free: 5.688 MB / 250.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002709/0.3504, allocations: 1.105 MB / 317.1 MB, free: 5.617 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001255/0.3506, allocations: 220.5 kB / 317.3 MB, free: 5.375 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.525e-05/0.3506, allocations: 5.375 kB / 317.3 MB, free: 5.375 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001805/0.3525, allocations: 450 kB / 317.8 MB, free: 5.355 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009106/0.3534, allocations: 157.3 kB / 317.9 MB, free: 5.355 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001507/0.3549, allocations: 1.021 MB / 319 MB, free: 4.828 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009794/0.3559, allocations: 38.39 kB / 319 MB, free: 4.828 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001013/0.3561, allocations: 35.17 kB / 319 MB, free: 4.828 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.453e-05/0.3561, allocations: 6.672 kB / 319 MB, free: 4.824 MB / 250.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002107/0.3582, allocations: 0.9356 MB / 320 MB, free: 4.797 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/0.3583, allocations: 7.594 kB / 320 MB, free: 4.793 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007259/0.359, allocations: 250.2 kB / 320.2 MB, free: 4.773 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009204/0.3599, allocations: 161.9 kB / 320.4 MB, free: 4.773 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009384/0.3609, allocations: 0.812 MB / 321.2 MB, free: 4.25 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007122/0.3617, allocations: 43.62 kB / 321.2 MB, free: 4.242 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.896e-05/0.3618, allocations: 32.92 kB / 321.3 MB, free: 4.242 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.0006008/0.3624, allocations: 336.9 kB / 321.6 MB, free: 4.047 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002368/0.3626, allocations: 78.59 kB / 321.7 MB, free: 4.008 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002625/0.3653, allocations: 1.089 MB / 322.8 MB, free: 3.918 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.209e-05/0.3653, allocations: 7.938 kB / 322.8 MB, free: 3.918 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.283e-06/0.3654, allocations: 0 / 322.8 MB, free: 3.918 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.471e-05/0.3654, allocations: 5.891 kB / 322.8 MB, free: 3.918 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004315/0.3697, allocations: 2.012 MB / 324.8 MB, free: 3.266 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.899e-06/0.3698, allocations: 3.344 kB / 324.8 MB, free: 3.266 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007947/0.3706, allocations: 118 kB / 324.9 MB, free: 3.246 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001696/0.3723, allocations: 454.3 kB / 325.4 MB, free: 3.121 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001371/0.3725, allocations: 16.89 kB / 325.4 MB, free: 3.117 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001498/0.374, allocations: 1.023 MB / 326.4 MB, free: 2.5 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.697e-06/0.374, allocations: 0 / 326.4 MB, free: 2.5 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003476/0.3775, allocations: 1.594 MB / 328 MB, free: 2.102 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000654/0.3782, allocations: 252.9 kB / 328.2 MB, free: 1.934 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001717/0.3784, allocations: 13.5 kB / 328.2 MB, free: 1.934 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008767/0.3793, allocations: 49.34 kB / 328.3 MB, free: 1.918 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001688/0.3795, allocations: 59.72 kB / 328.4 MB, free: 1.887 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.466e-05/0.3796, allocations: 28.69 kB / 328.4 MB, free: 1.863 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0006892/0.3803, allocations: 478 kB / 328.8 MB, free: 1.516 MB / 250.7 MB Notification: Performance of sort global known variables: time 7.64e-07/0.3803, allocations: 0 / 328.8 MB, free: 1.516 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.00192/0.3822, allocations: 0.5772 MB / 329.4 MB, free: 0.9805 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * 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 simulation (58): * Single equations (assignments): 57 * 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 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001169/0.3834, allocations: 467.8 kB / 329.9 MB, free: 0.5664 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.003704/0.3872, allocations: 1.365 MB / 331.2 MB, free: 15.43 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.797e-06/0.3872, allocations: 0 / 331.2 MB, free: 15.43 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001461/0.3887, allocations: 467.3 kB / 331.7 MB, free: 14.98 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002193/0.3909, allocations: 355.1 kB / 332 MB, free: 14.64 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004849/0.3958, allocations: 2.067 MB / 334.1 MB, free: 12.56 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008567/0.3967, allocations: 1.003 MB / 335.1 MB, free: 11.53 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004314/0.3972, allocations: 79.41 kB / 335.2 MB, free: 11.45 MB / 266.7 MB Notification: Performance of SimCode: time 1.517e-06/0.3972, allocations: 0 / 335.2 MB, free: 11.45 MB / 266.7 MB Notification: Performance of Templates: time 0.03762/0.4348, allocations: 18.9 MB / 354.1 MB, free: 8.641 MB / 282.7 MB