Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.IntegerTable,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_IntegerTable",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.194/2.194, allocations: 234.9 MB / 250.4 MB, free: 9.562 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004272/0.0004273, allocations: 12 kB / 314.4 MB, free: 9.516 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3249/0.3253, allocations: 54.86 MB / 369.3 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegerTable): time 0.001989/0.3274, allocations: 1.13 MB / 370.4 MB, free: 9.582 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001242/0.3287, allocations: 496.3 kB / 370.9 MB, free: 9.098 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.814e-05/0.3288, allocations: 3.938 kB / 370.9 MB, free: 9.094 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001596/0.3289, allocations: 47.92 kB / 370.9 MB, free: 9.047 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001129/0.3291, allocations: 51.91 kB / 371 MB, free: 8.996 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001712/0.3308, allocations: 387.1 kB / 371.4 MB, free: 8.617 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001785/0.331, allocations: 71.91 kB / 371.4 MB, free: 8.547 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.523e-05/0.3311, allocations: 4 kB / 371.4 MB, free: 8.543 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.509e-05/0.3312, allocations: 55.86 kB / 371.5 MB, free: 8.488 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001954/0.3314, allocations: 87.77 kB / 371.6 MB, free: 8.402 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.847e-05/0.3314, allocations: 8 kB / 371.6 MB, free: 8.395 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004936/0.3319, allocations: 195.8 kB / 371.8 MB, free: 8.203 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.083e-05/0.332, allocations: 35.89 kB / 371.8 MB, free: 8.168 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.82e-05/0.3321, allocations: 45.64 kB / 371.8 MB, free: 8.117 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000421/0.3325, allocations: 188.7 kB / 372 MB, free: 7.934 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.3325, allocations: 0 / 372 MB, free: 7.934 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3325, allocations: 0 / 372 MB, free: 7.934 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.133e-05/0.3326, allocations: 0 / 372 MB, free: 7.934 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.001002/0.3336, allocations: 0.5444 MB / 372.6 MB, free: 7.316 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.601e-05/0.3336, allocations: 8.031 kB / 372.6 MB, free: 7.309 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.437e-05/0.3337, allocations: 42.55 kB / 372.6 MB, free: 7.258 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.877e-05/0.3338, allocations: 19.8 kB / 372.6 MB, free: 7.238 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001438/0.3339, allocations: 186.7 kB / 372.8 MB, free: 7.016 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.066e-05/0.334, allocations: 11.98 kB / 372.8 MB, free: 7.004 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.239e-05/0.334, allocations: 4 kB / 372.8 MB, free: 7 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000491/0.3345, allocations: 173 kB / 373 MB, free: 6.812 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.828e-06/0.3346, allocations: 3.938 kB / 373 MB, free: 6.809 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.555e-05/0.3346, allocations: 4 kB / 373 MB, free: 6.805 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.436e-06/0.3346, allocations: 3.953 kB / 373 MB, free: 6.801 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000263/0.3349, allocations: 71.89 kB / 373.1 MB, free: 6.73 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003285/0.3352, allocations: 252.2 kB / 373.3 MB, free: 6.426 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005246/0.3358, allocations: 186.4 kB / 373.5 MB, free: 6.207 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.445e-05/0.3358, allocations: 4 kB / 373.5 MB, free: 6.203 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005357/0.3364, allocations: 209 kB / 373.7 MB, free: 5.977 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 3.006e-06/0.3364, allocations: 0 / 373.7 MB, free: 5.977 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.001278/0.3377, allocations: 389.9 kB / 374.1 MB, free: 5.59 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.543e-05/0.3378, allocations: 144.5 kB / 374.3 MB, free: 5.418 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000247/0.338, allocations: 186.1 kB / 374.4 MB, free: 5.227 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.258e-05/0.3381, allocations: 33.7 kB / 374.5 MB, free: 5.188 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.769e-05/0.3382, allocations: 162.6 kB / 374.6 MB, free: 5.027 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.395e-05/0.3383, allocations: 43.53 kB / 374.7 MB, free: 4.984 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.272e-05/0.3383, allocations: 4 kB / 374.7 MB, free: 4.98 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001202/0.3384, allocations: 322.8 kB / 375 MB, free: 4.656 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001471/0.3386, allocations: 52.22 kB / 375 MB, free: 4.605 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001983/0.3388, allocations: 107.8 kB / 375.1 MB, free: 4.488 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002427/0.339, allocations: 182.8 kB / 375.3 MB, free: 4.285 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.875e-06/0.3391, allocations: 0 / 375.3 MB, free: 4.285 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006352/0.3397, allocations: 372.1 kB / 375.7 MB, free: 3.891 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.808e-05/0.3398, allocations: 118.8 kB / 375.8 MB, free: 3.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.3399, allocations: 4 kB / 375.8 MB, free: 3.746 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.749e-05/0.3399, allocations: 0 / 375.8 MB, free: 3.746 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.778e-05/0.3399, allocations: 7.984 kB / 375.8 MB, free: 3.738 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.47e-05/0.34, allocations: 7.891 kB / 375.8 MB, free: 3.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001547/0.3401, allocations: 27.84 kB / 375.8 MB, free: 3.703 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.581e-05/0.3402, allocations: 8 kB / 375.9 MB, free: 3.695 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.0002005/0.3404, allocations: 144.4 kB / 376 MB, free: 3.543 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.906e-05/0.3404, allocations: 19.81 kB / 376 MB, free: 3.523 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.344e-05/0.3405, allocations: 16.25 kB / 376 MB, free: 3.508 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.294e-06/0.3405, allocations: 4 kB / 376 MB, free: 3.504 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.3405, allocations: 0 / 376 MB, free: 3.504 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.266e-05/0.3405, allocations: 7.938 kB / 376 MB, free: 3.496 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000248/0.3408, allocations: 221.5 kB / 376.3 MB, free: 3.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.3408, allocations: 0 / 376.3 MB, free: 3.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.959e-05/0.3408, allocations: 7.938 kB / 376.3 MB, free: 3.223 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.12e-06/0.3409, allocations: 0 / 376.3 MB, free: 3.223 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.839e-05/0.3409, allocations: 11.98 kB / 376.3 MB, free: 3.211 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.462e-06/0.3409, allocations: 4.25 kB / 376.3 MB, free: 3.207 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.3409, allocations: 0 / 376.3 MB, free: 3.207 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009231/0.3418, allocations: 359.2 kB / 376.6 MB, free: 2.828 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.385e-05/0.3419, allocations: 92.95 kB / 376.7 MB, free: 2.719 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.974e-05/0.342, allocations: 8 kB / 376.7 MB, free: 2.711 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001729/0.3422, allocations: 11.98 kB / 376.7 MB, free: 2.699 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.42e-05/0.3423, allocations: 19.92 kB / 376.8 MB, free: 2.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.045e-05/0.3424, allocations: 27.91 kB / 376.8 MB, free: 2.652 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001603/0.3425, allocations: 143.2 kB / 376.9 MB, free: 2.512 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.3426, allocations: 0 / 376.9 MB, free: 2.512 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000519/0.3431, allocations: 87.98 kB / 377 MB, free: 2.426 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.00164/0.3447, allocations: 0.9717 MB / 378 MB, free: 1.414 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007603/0.3455, allocations: 423.3 kB / 378.4 MB, free: 0.9531 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.3456, allocations: 0 / 378.4 MB, free: 0.9531 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003489/0.3459, allocations: 99.88 kB / 378.5 MB, free: 0.8555 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002029/0.3461, allocations: 11.94 kB / 378.5 MB, free: 0.8438 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002526/0.3487, allocations: 1.159 MB / 379.7 MB, free: 15.61 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003324/0.3491, allocations: 0.716 MB / 380.4 MB, free: 14.87 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.433e-05/0.3492, allocations: 35.42 kB / 380.4 MB, free: 14.83 MB / 314.7 MB Notification: Performance of SimCode: time 1.152e-06/0.3492, allocations: 0 / 380.4 MB, free: 14.83 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.411/2.76, allocations: 3.253 MB / 383.7 MB, free: 11.58 MB / 314.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.IntegerTable_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.IntegerTable_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.IntegerTable_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.IntegerTable_res.mat failed! " Variables in the reference: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 Variables in the result:integerTable.index,integerTable.n,integerTable.nextTime,integerTable.table[1,1],integerTable.table[1,2],integerTable.table[2,1],integerTable.table[2,2],integerTable.table[3,1],integerTable.table[3,2],integerTable.table[4,1],integerTable.table[4,2],integerTable.y,integerTable2.index,integerTable2.n,integerTable2.nextTime,integerTable2.table[1,1],integerTable2.table[1,2],integerTable2.y,integerTable3.index,integerTable3.n,integerTable3.nextTime,integerTable3.table[1,1],integerTable3.table[1,2],integerTable3.y,integerTable4.index,integerTable4.n,integerTable4.nextTime,integerTable4.table[1,1],integerTable4.table[1,2],integerTable4.table[2,1],integerTable4.table[2,2],integerTable4.table[3,1],integerTable4.table[3,2],integerTable4.table[4,1],integerTable4.table[4,2],integerTable4.table[5,1],integerTable4.table[5,2],integerTable4.y,time