Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.IntegerTable.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Blocks.IntegerTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integerTable.index|integerTable.nextTime|integerTable.y|integerTable2.index|integerTable2.nextTime|integerTable2.y|integerTable3.index|integerTable3.nextTime|integerTable3.y|integerTable4.index|integerTable4.nextTime|integerTable4.y",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.IntegerTable") Notification: Performance of loadModel(ModelicaTest): time 2.331/2.331, allocations: 234.9 MB / 250.5 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007316/0.0007318, allocations: 12 kB / 314.3 MB, free: 9.602 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2835/0.2842, allocations: 54.86 MB / 369.2 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegerTable): time 0.001835/0.2861, allocations: 1.126 MB / 370.3 MB, free: 9.574 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001074/0.2872, allocations: 0.4885 MB / 370.8 MB, free: 9.086 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.117e-05/0.2873, allocations: 3.938 kB / 370.8 MB, free: 9.082 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001466/0.2875, allocations: 47.92 kB / 370.8 MB, free: 9.035 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001033/0.2876, allocations: 55.91 kB / 370.9 MB, free: 8.98 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001421/0.289, allocations: 375.1 kB / 371.3 MB, free: 8.613 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001333/0.2892, allocations: 71.91 kB / 371.3 MB, free: 8.543 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.823e-05/0.2892, allocations: 4 kB / 371.3 MB, free: 8.539 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.893e-05/0.2893, allocations: 55.86 kB / 371.4 MB, free: 8.484 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001711/0.2895, allocations: 91.77 kB / 371.5 MB, free: 8.395 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.31e-05/0.2896, allocations: 4 kB / 371.5 MB, free: 8.391 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004062/0.29, allocations: 199.8 kB / 371.7 MB, free: 8.195 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.781e-05/0.2901, allocations: 35.89 kB / 371.7 MB, free: 8.16 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.737e-05/0.2901, allocations: 41.64 kB / 371.8 MB, free: 8.113 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003558/0.2905, allocations: 184.4 kB / 371.9 MB, free: 7.934 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.531e-06/0.2905, allocations: 0 / 371.9 MB, free: 7.934 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.018e-06/0.2905, allocations: 4 kB / 371.9 MB, free: 7.93 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.329e-06/0.2906, allocations: 0 / 371.9 MB, free: 7.93 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0008566/0.2914, allocations: 0.5418 MB / 372.5 MB, free: 7.316 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.228e-05/0.2915, allocations: 12.03 kB / 372.5 MB, free: 7.305 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.563e-05/0.2916, allocations: 23.77 kB / 372.5 MB, free: 7.281 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001739/0.2917, allocations: 186.7 kB / 372.7 MB, free: 7.059 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.366e-05/0.2918, allocations: 7.938 kB / 372.7 MB, free: 7.051 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.525e-05/0.2918, allocations: 12 kB / 372.7 MB, free: 7.039 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004234/0.2923, allocations: 169 kB / 372.9 MB, free: 6.855 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/0.2923, allocations: 0 / 372.9 MB, free: 6.855 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.337e-05/0.2923, allocations: 7.984 kB / 372.9 MB, free: 6.848 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.051e-05/0.2924, allocations: 4 kB / 372.9 MB, free: 6.844 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002248/0.2926, allocations: 67.86 kB / 373 MB, free: 6.777 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003363/0.2929, allocations: 252.3 kB / 373.2 MB, free: 6.473 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004477/0.2934, allocations: 186.4 kB / 373.4 MB, free: 6.254 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.098e-05/0.2934, allocations: 7.984 kB / 373.4 MB, free: 6.246 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004918/0.2939, allocations: 211.5 kB / 373.6 MB, free: 6.016 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 2.786e-06/0.294, allocations: 3.938 kB / 373.6 MB, free: 6.012 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.001099/0.2951, allocations: 381.3 kB / 374 MB, free: 5.633 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001084/0.2952, allocations: 148.4 kB / 374.1 MB, free: 5.457 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002276/0.2954, allocations: 186 kB / 374.3 MB, free: 5.266 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.273e-05/0.2955, allocations: 33.7 kB / 374.3 MB, free: 5.227 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001228/0.2956, allocations: 166.6 kB / 374.5 MB, free: 5.062 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.369e-05/0.2957, allocations: 39.53 kB / 374.5 MB, free: 5.023 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.491e-05/0.2957, allocations: 8 kB / 374.5 MB, free: 5.016 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001696/0.2959, allocations: 318.8 kB / 374.9 MB, free: 4.695 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000135/0.2961, allocations: 60.2 kB / 374.9 MB, free: 4.637 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001689/0.2963, allocations: 99.86 kB / 375 MB, free: 4.527 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002327/0.2965, allocations: 182.8 kB / 375.2 MB, free: 4.324 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.2965, allocations: 0 / 375.2 MB, free: 4.324 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006202/0.2971, allocations: 364.2 kB / 375.5 MB, free: 3.938 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001138/0.2973, allocations: 122.8 kB / 375.7 MB, free: 3.793 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.583e-06/0.2973, allocations: 3.938 kB / 375.7 MB, free: 3.789 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.2973, allocations: 4 kB / 375.7 MB, free: 3.785 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.853e-05/0.2974, allocations: 8 kB / 375.7 MB, free: 3.777 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.004e-05/0.2974, allocations: 3.953 kB / 375.7 MB, free: 3.773 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001343/0.2975, allocations: 27.83 kB / 375.7 MB, free: 3.746 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.734e-05/0.2976, allocations: 8 kB / 375.7 MB, free: 3.738 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 28 ($whenCondition4,$PRE.integerTable4.y,integerTable4.y,$PRE.integerTable4.nextTime,integerTable4.nextTime,$PRE.integerTable4.index,integerTable4.index,$whenCondition3,$PRE.integerTable3.y,integerTable3.y,$PRE.integerTable3.nextTime,integerTable3.nextTime,$PRE.integerTable3.index,integerTable3.index,$whenCondition2,$PRE.integerTable2.y,integerTable2.y,$PRE.integerTable2.nextTime,integerTable2.nextTime,$PRE.integerTable2.index,integerTable2.index,$whenCondition1,$PRE.integerTable.y,integerTable.y,$PRE.integerTable.nextTime,integerTable.nextTime,$PRE.integerTable.index,integerTable.index) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001975/0.2978, allocations: 148.4 kB / 375.9 MB, free: 3.582 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.772e-05/0.2978, allocations: 15.81 kB / 375.9 MB, free: 3.566 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.437e-05/0.2979, allocations: 20.98 kB / 375.9 MB, free: 3.547 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.659e-06/0.2979, allocations: 0 / 375.9 MB, free: 3.547 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.827e-06/0.2979, allocations: 4 kB / 375.9 MB, free: 3.543 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.17e-06/0.298, allocations: 7.953 kB / 375.9 MB, free: 3.535 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002863/0.2982, allocations: 225.5 kB / 376.1 MB, free: 3.266 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.312e-06/0.2983, allocations: 0 / 376.1 MB, free: 3.266 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.355e-05/0.2983, allocations: 4 kB / 376.1 MB, free: 3.262 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.661e-06/0.2983, allocations: 0 / 376.1 MB, free: 3.262 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.642e-05/0.2983, allocations: 15.92 kB / 376.2 MB, free: 3.246 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.657e-06/0.2984, allocations: 4 kB / 376.2 MB, free: 3.242 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.607e-06/0.2984, allocations: 0 / 376.2 MB, free: 3.242 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007744/0.2991, allocations: 355 kB / 376.5 MB, free: 2.871 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.278e-05/0.2992, allocations: 92.95 kB / 376.6 MB, free: 2.762 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.447e-05/0.2993, allocations: 12.23 kB / 376.6 MB, free: 2.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001352/0.2995, allocations: 15.98 kB / 376.6 MB, free: 2.734 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.407e-05/0.2995, allocations: 15.92 kB / 376.6 MB, free: 2.719 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.777e-05/0.2996, allocations: 31.95 kB / 376.7 MB, free: 2.688 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001553/0.2998, allocations: 139.2 kB / 376.8 MB, free: 2.551 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.15e-07/0.2998, allocations: 0 / 376.8 MB, free: 2.551 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004956/0.3003, allocations: 83.94 kB / 376.9 MB, free: 2.469 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition4,integerTable4.y,integerTable4.nextTime,integerTable4.index,$whenCondition3,integerTable3.y,integerTable3.nextTime,integerTable3.index,$whenCondition2,integerTable2.y,integerTable2.nextTime,integerTable2.index,$whenCondition1,integerTable.y,integerTable.nextTime,integerTable.index) * Number of discrete states: 8 (integerTable.index,integerTable.nextTime,integerTable2.index,integerTable2.nextTime,integerTable3.index,integerTable3.nextTime,integerTable4.index,integerTable4.nextTime) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 12 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004393/0.3008, allocations: 192.8 kB / 377.1 MB, free: 2.27 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007076/0.3015, allocations: 425.4 kB / 377.5 MB, free: 1.805 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.917e-06/0.3015, allocations: 0 / 377.5 MB, free: 1.805 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002947/0.3018, allocations: 107.8 kB / 377.6 MB, free: 1.699 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001652/0.302, allocations: 8 kB / 377.6 MB, free: 1.691 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008456/0.3028, allocations: 382.4 kB / 378 MB, free: 1.273 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004179/0.3033, allocations: 0.716 MB / 378.7 MB, free: 0.5312 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.826e-05/0.3033, allocations: 15.44 kB / 378.7 MB, free: 0.5156 MB / 298.7 MB Notification: Performance of SimCode: time 1.641e-06/0.3034, allocations: 0 / 378.7 MB, free: 0.5156 MB / 298.7 MB Notification: Performance of Templates: time 0.006204/0.3096, allocations: 2.65 MB / 381.4 MB, free: 13.86 MB / 314.7 MB