Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTable2D.Test1.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.Tables.CombiTable2D.Test1,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable2D_Test1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.197/2.197, allocations: 234.9 MB / 250.5 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004223/0.0004224, allocations: 16 kB / 314.4 MB, free: 9.508 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3707/0.3712, allocations: 54.87 MB / 369.3 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTable2D.Test1): time 0.002283/0.3735, allocations: 1.227 MB / 370.5 MB, free: 11.5 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006628/0.3742, allocations: 269.2 kB / 370.8 MB, free: 11.23 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.147e-05/0.3742, allocations: 0 / 370.8 MB, free: 11.23 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006747/0.3749, allocations: 431.2 kB / 371.2 MB, free: 10.81 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004038/0.3753, allocations: 235.5 kB / 371.4 MB, free: 10.58 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001322/0.3755, allocations: 31.91 kB / 371.4 MB, free: 10.55 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002115/0.3757, allocations: 103.8 kB / 371.5 MB, free: 10.45 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.826e-05/0.3758, allocations: 23.97 kB / 371.6 MB, free: 10.43 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001435/0.376, allocations: 99.73 kB / 371.7 MB, free: 10.33 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002723/0.3763, allocations: 143.7 kB / 371.8 MB, free: 10.19 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.462e-05/0.3763, allocations: 0 / 371.8 MB, free: 10.19 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.576e-05/0.3764, allocations: 19.98 kB / 371.8 MB, free: 10.17 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.85e-05/0.3765, allocations: 71.77 kB / 371.9 MB, free: 10.1 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.017e-05/0.3766, allocations: 61.52 kB / 372 MB, free: 10.03 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002717/0.3769, allocations: 175.7 kB / 372.1 MB, free: 9.859 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.565e-06/0.3769, allocations: 0 / 372.1 MB, free: 9.859 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.3769, allocations: 0 / 372.1 MB, free: 9.859 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.3769, allocations: 0 / 372.1 MB, free: 9.859 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0008102/0.3777, allocations: 0.6054 MB / 372.7 MB, free: 9.199 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.3778, allocations: 11.97 kB / 372.7 MB, free: 9.188 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.023e-05/0.3778, allocations: 38.56 kB / 372.8 MB, free: 9.141 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.034e-05/0.3779, allocations: 47.38 kB / 372.8 MB, free: 9.094 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003078/0.3782, allocations: 263.4 kB / 373.1 MB, free: 8.793 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.308e-05/0.3783, allocations: 8 kB / 373.1 MB, free: 8.785 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.421e-05/0.3783, allocations: 4 kB / 373.1 MB, free: 8.781 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001799/0.3785, allocations: 49.69 kB / 373.2 MB, free: 8.727 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.319e-05/0.3785, allocations: 11.86 kB / 373.2 MB, free: 8.715 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.168e-05/0.3785, allocations: 8 kB / 373.2 MB, free: 8.707 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.3785, allocations: 0 / 373.2 MB, free: 8.707 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001501/0.3787, allocations: 27.94 kB / 373.2 MB, free: 8.68 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005478/0.3793, allocations: 388.6 kB / 373.6 MB, free: 8.25 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002511/0.3795, allocations: 50.48 kB / 373.6 MB, free: 8.191 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.533e-05/0.3796, allocations: 4 kB / 373.6 MB, free: 8.188 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.631e-05/0.3796, allocations: 38.52 kB / 373.7 MB, free: 8.141 MB / 298.7 MB Notification: Performance of pre-optimization done (n=3): time 1.443e-06/0.3796, allocations: 0 / 373.7 MB, free: 8.141 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.0008537/0.3805, allocations: 236.2 kB / 373.9 MB, free: 7.902 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.409e-05/0.3805, allocations: 51.41 kB / 373.9 MB, free: 7.84 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001216/0.3818, allocations: 0.8456 MB / 374.8 MB, free: 6.984 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.268e-05/0.3818, allocations: 33.69 kB / 374.8 MB, free: 6.945 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002124/0.382, allocations: 234.5 kB / 375.1 MB, free: 6.715 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.33e-05/0.3821, allocations: 15.75 kB / 375.1 MB, free: 6.699 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.561e-06/0.3821, allocations: 0 / 375.1 MB, free: 6.699 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001171/0.3822, allocations: 310.8 kB / 375.4 MB, free: 6.387 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001304/0.3823, allocations: 31.98 kB / 375.4 MB, free: 6.355 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001246/0.3825, allocations: 23.98 kB / 375.4 MB, free: 6.332 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001484/0.3826, allocations: 53.69 kB / 375.5 MB, free: 6.273 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.3827, allocations: 0 / 375.5 MB, free: 6.273 MB / 298.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000343/0.383, allocations: 127.3 kB / 375.6 MB, free: 6.137 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.692e-05/0.3831, allocations: 33.66 kB / 375.6 MB, free: 6.098 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.3831, allocations: 0 / 375.6 MB, free: 6.098 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/0.3831, allocations: 4 kB / 375.6 MB, free: 6.094 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001151/0.3832, allocations: 11.98 kB / 375.7 MB, free: 6.082 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/0.3832, allocations: 4 kB / 375.7 MB, free: 6.078 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.57e-05/0.3833, allocations: 8 kB / 375.7 MB, free: 6.07 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.889e-06/0.3834, allocations: 0 / 375.7 MB, free: 6.07 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 5 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002638/0.3836, allocations: 213.8 kB / 375.9 MB, free: 5.852 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.218e-05/0.3837, allocations: 43.44 kB / 375.9 MB, free: 5.809 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004398/0.3842, allocations: 148.8 kB / 376.1 MB, free: 5.66 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.3842, allocations: 0 / 376.1 MB, free: 5.66 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.804e-06/0.3842, allocations: 0 / 376.1 MB, free: 5.66 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.3842, allocations: 3.938 kB / 376.1 MB, free: 5.656 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007654/0.385, allocations: 462.8 kB / 376.5 MB, free: 5.148 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.385, allocations: 7.953 kB / 376.5 MB, free: 5.141 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001057/0.3851, allocations: 19.98 kB / 376.5 MB, free: 5.121 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.3852, allocations: 3.938 kB / 376.5 MB, free: 5.117 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.037e-06/0.3852, allocations: 0 / 376.5 MB, free: 5.117 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.953e-06/0.3852, allocations: 0 / 376.5 MB, free: 5.117 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.3852, allocations: 0 / 376.5 MB, free: 5.117 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003782/0.3856, allocations: 219.1 kB / 376.8 MB, free: 4.887 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.579e-05/0.3857, allocations: 120.5 kB / 376.9 MB, free: 4.75 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.562e-05/0.3857, allocations: 0 / 376.9 MB, free: 4.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001278/0.3859, allocations: 4 kB / 376.9 MB, free: 4.746 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.46e-05/0.3859, allocations: 7.984 kB / 376.9 MB, free: 4.738 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.231e-06/0.3859, allocations: 0 / 376.9 MB, free: 4.738 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0009307/0.3869, allocations: 0.6472 MB / 377.5 MB, free: 4.094 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.3869, allocations: 0 / 377.5 MB, free: 4.094 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003477/0.3873, allocations: 16 kB / 377.6 MB, free: 4.078 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 5 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001363/0.3886, allocations: 0.9553 MB / 378.5 MB, free: 3.18 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003719/0.389, allocations: 115.4 kB / 378.6 MB, free: 3.055 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.389, allocations: 0 / 378.6 MB, free: 3.055 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001367/0.3892, allocations: 31.92 kB / 378.7 MB, free: 3.023 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003142/0.3895, allocations: 17.97 kB / 378.7 MB, free: 3.004 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002125/0.3916, allocations: 1.273 MB / 379.9 MB, free: 1.668 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000509/0.3922, allocations: 0.8184 MB / 380.8 MB, free: 0.8203 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001774/0.3924, allocations: 95.41 kB / 380.9 MB, free: 0.7266 MB / 298.7 MB Notification: Performance of SimCode: time 1.012e-06/0.3924, allocations: 4 kB / 380.9 MB, free: 0.7227 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.402/2.794, allocations: 6.258 MB / 387.1 MB, free: 10.46 MB / 314.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTable2D.Test1_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTable2D.Test1_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTable2D.Test1_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTable2D.Test1_res.mat failed! Error: Could not read variable t_new.der(u1) in file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTable2D.Test1_res.mat. Warning: Get data of variable t_new.der(u1) from file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTable2D.Test1_res.mat failed! Error: Could not read variable t_new.tableID.id in file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTable2D.Test1_res.mat. Warning: Get data of variable t_new.tableID.id from file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTable2D.Test1_res.mat failed! " Variables in the reference:time,t_new.y,d_t_new.y,clock.y,const.y Variables in the result:clock.offset,clock.startTime,clock.y,const.k,const.y,d_t_new.u,d_t_new.y,der(clock.y),der(d_t_new.u),t_new.smoothness,t_new.tableOnFile,t_new.tableOnFileRead,t_new.table[1,10],t_new.table[1,1],t_new.table[1,2],t_new.table[1,3],t_new.table[1,4],t_new.table[1,5],t_new.table[1,6],t_new.table[1,7],t_new.table[1,8],t_new.table[1,9],t_new.table[10,10],t_new.table[10,1],t_new.table[10,2],t_new.table[10,3],t_new.table[10,4],t_new.table[10,5],t_new.table[10,6],t_new.table[10,7],t_new.table[10,8],t_new.table[10,9],t_new.table[11,10],t_new.table[11,1],t_new.table[11,2],t_new.table[11,3],t_new.table[11,4],t_new.table[11,5],t_new.table[11,6],t_new.table[11,7],t_new.table[11,8],t_new.table[11,9],t_new.table[12,10],t_new.table[12,1],t_new.table[12,2],t_new.table[12,3],t_new.table[12,4],t_new.table[12,5],t_new.table[12,6],t_new.table[12,7],t_new.table[12,8],t_new.table[12,9],t_new.table[2,10],t_new.table[2,1],t_new.table[2,2],t_new.table[2,3],t_new.table[2,4],t_new.table[2,5],t_new.table[2,6],t_new.table[2,7],t_new.table[2,8],t_new.table[2,9],t_new.table[3,10],t_new.table[3,1],t_new.table[3,2],t_new.table[3,3],t_new.table[3,4],t_new.table[3,5],t_new.table[3,6],t_new.table[3,7],t_new.table[3,8],t_new.table[3,9],t_new.table[4,10],t_new.table[4,1],t_new.table[4,2],t_new.table[4,3],t_new.table[4,4],t_new.table[4,5],t_new.table[4,6],t_new.table[4,7],t_new.table[4,8],t_new.table[4,9],t_new.table[5,10],t_new.table[5,1],t_new.table[5,2],t_new.table[5,3],t_new.table[5,4],t_new.table[5,5],t_new.table[5,6],t_new.table[5,7],t_new.table[5,8],t_new.table[5,9],t_new.table[6,10],t_new.table[6,1],t_new.table[6,2],t_new.table[6,3],t_new.table[6,4],t_new.table[6,5],t_new.table[6,6],t_new.table[6,7],t_new.table[6,8],t_new.table[6,9],t_new.table[7,10],t_new.table[7,1],t_new.table[7,2],t_new.table[7,3],t_new.table[7,4],t_new.table[7,5],t_new.table[7,6],t_new.table[7,7],t_new.table[7,8],t_new.table[7,9],t_new.table[8,10],t_new.table[8,1],t_new.table[8,2],t_new.table[8,3],t_new.table[8,4],t_new.table[8,5],t_new.table[8,6],t_new.table[8,7],t_new.table[8,8],t_new.table[8,9],t_new.table[9,10],t_new.table[9,1],t_new.table[9,2],t_new.table[9,3],t_new.table[9,4],t_new.table[9,5],t_new.table[9,6],t_new.table[9,7],t_new.table[9,8],t_new.table[9,9],t_new.u1,t_new.u2,t_new.verboseRead,t_new.y,time