Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTable2D.Test1.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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable2D.Test1,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable2D_Test1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.064/2.064, allocations: 209.2 MB / 224.8 MB, free: 0.6133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004992/0.0004994, allocations: 19.94 kB / 282.6 MB, free: 9.594 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3772/0.3778, allocations: 48.7 MB / 331.3 MB, free: 6.508 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTable2D.Test1): time 0.002305/0.3802, allocations: 1.225 MB / 332.5 MB, free: 5.902 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00116/0.3814, allocations: 251.5 kB / 332.7 MB, free: 5.746 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001029/0.3815, allocations: 13.12 kB / 332.8 MB, free: 5.734 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008854/0.3824, allocations: 429 kB / 333.2 MB, free: 5.723 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005215/0.383, allocations: 228 kB / 333.4 MB, free: 5.711 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002046/0.3832, allocations: 30.53 kB / 333.4 MB, free: 5.695 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003479/0.3836, allocations: 115.7 kB / 333.5 MB, free: 5.672 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001179/0.3837, allocations: 21.17 kB / 333.6 MB, free: 5.66 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001691/0.3839, allocations: 94.47 kB / 333.7 MB, free: 5.656 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002972/0.3842, allocations: 146.3 kB / 333.8 MB, free: 5.641 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.83e-05/0.3842, allocations: 1.438 kB / 333.8 MB, free: 5.641 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001184/0.3844, allocations: 13.31 kB / 333.8 MB, free: 5.641 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001407/0.3845, allocations: 81.73 kB / 333.9 MB, free: 5.613 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.15e-05/0.3846, allocations: 67.61 kB / 334 MB, free: 5.551 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003083/0.3849, allocations: 165.4 kB / 334.1 MB, free: 5.516 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.3849, allocations: 0 / 334.1 MB, free: 5.516 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.3849, allocations: 0 / 334.1 MB, free: 5.516 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.543e-06/0.385, allocations: 0 / 334.1 MB, free: 5.516 MB / 266.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.0007935/0.3858, allocations: 0.6006 MB / 334.7 MB, free: 4.969 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.042e-05/0.3858, allocations: 8.812 kB / 334.7 MB, free: 4.969 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.807e-05/0.3859, allocations: 44.22 kB / 334.8 MB, free: 4.918 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.068e-05/0.386, allocations: 47.28 kB / 334.8 MB, free: 4.891 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003058/0.3863, allocations: 264.9 kB / 335.1 MB, free: 4.637 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.49e-05/0.3863, allocations: 1.406 kB / 335.1 MB, free: 4.637 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.979e-05/0.3863, allocations: 6.125 kB / 335.1 MB, free: 4.633 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001999/0.3866, allocations: 53.94 kB / 335.1 MB, free: 4.594 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.33e-05/0.3866, allocations: 0 / 335.1 MB, free: 4.594 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.235e-05/0.3866, allocations: 5.312 kB / 335.1 MB, free: 4.59 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.3866, allocations: 0 / 335.1 MB, free: 4.59 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001595/0.3868, allocations: 35.55 kB / 335.2 MB, free: 4.578 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008098/0.3876, allocations: 380 kB / 335.6 MB, free: 4.262 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003073/0.3879, allocations: 47.25 kB / 335.6 MB, free: 4.227 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.549e-05/0.388, allocations: 1.125 kB / 335.6 MB, free: 4.227 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.929e-05/0.388, allocations: 43.62 kB / 335.6 MB, free: 4.176 MB / 266.7 MB Notification: Performance of pre-optimization done (n=3): time 2.775e-06/0.388, allocations: 0 / 335.6 MB, free: 4.176 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.000994/0.389, allocations: 238.2 kB / 335.9 MB, free: 4.035 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.829e-05/0.3891, allocations: 51.41 kB / 335.9 MB, free: 3.973 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001284/0.3904, allocations: 0.851 MB / 336.8 MB, free: 3.555 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.53e-05/0.3905, allocations: 25.7 kB / 336.8 MB, free: 3.523 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001654/0.3906, allocations: 242.5 kB / 337 MB, free: 3.293 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.773e-05/0.3907, allocations: 17.91 kB / 337.1 MB, free: 3.277 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.931e-06/0.3907, allocations: 0 / 337.1 MB, free: 3.277 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.409e-05/0.3908, allocations: 320.1 kB / 337.4 MB, free: 2.957 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001546/0.3909, allocations: 22.83 kB / 337.4 MB, free: 2.949 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001215/0.3911, allocations: 27.98 kB / 337.4 MB, free: 2.938 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001471/0.3912, allocations: 50.88 kB / 337.5 MB, free: 2.898 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.3912, allocations: 4 kB / 337.5 MB, free: 2.895 MB / 266.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000351/0.3916, allocations: 113.1 kB / 337.6 MB, free: 2.812 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.902e-05/0.3917, allocations: 31.33 kB / 337.6 MB, free: 2.781 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.3917, allocations: 0 / 337.6 MB, free: 2.781 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.952e-05/0.3917, allocations: 0.8438 kB / 337.6 MB, free: 2.781 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001217/0.3918, allocations: 23.77 kB / 337.6 MB, free: 2.77 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.115e-06/0.3919, allocations: 4 kB / 337.6 MB, free: 2.766 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001633/0.392, allocations: 10.08 kB / 337.6 MB, free: 2.762 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.488e-05/0.3921, allocations: 13.28 kB / 337.7 MB, free: 2.75 MB / 266.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.0003507/0.3924, allocations: 205.5 kB / 337.9 MB, free: 2.605 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.91e-05/0.3925, allocations: 41.34 kB / 337.9 MB, free: 2.582 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004641/0.393, allocations: 145.6 kB / 338 MB, free: 2.5 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.393, allocations: 1.219 kB / 338 MB, free: 2.5 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.393, allocations: 0 / 338 MB, free: 2.5 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.393, allocations: 1.531 kB / 338 MB, free: 2.5 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007764/0.3938, allocations: 468.1 kB / 338.5 MB, free: 2.094 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.3939, allocations: 3.938 kB / 338.5 MB, free: 2.09 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001108/0.394, allocations: 15.52 kB / 338.5 MB, free: 2.086 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.795e-06/0.394, allocations: 4.359 kB / 338.5 MB, free: 2.082 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.252e-05/0.394, allocations: 1.531 kB / 338.5 MB, free: 2.082 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.471e-06/0.394, allocations: 4 kB / 338.5 MB, free: 2.078 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.394, allocations: 0 / 338.5 MB, free: 2.078 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003966/0.3944, allocations: 230.8 kB / 338.8 MB, free: 1.891 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.909e-05/0.3945, allocations: 109.7 kB / 338.9 MB, free: 1.773 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.732e-05/0.3946, allocations: 0 / 338.9 MB, free: 1.773 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001301/0.3947, allocations: 9.234 kB / 338.9 MB, free: 1.77 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.136e-05/0.3948, allocations: 2.156 kB / 338.9 MB, free: 1.77 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.726e-06/0.3948, allocations: 5.688 kB / 338.9 MB, free: 1.766 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0009849/0.3958, allocations: 0.6416 MB / 339.5 MB, free: 1.449 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.61e-07/0.3958, allocations: 1.938 kB / 339.5 MB, free: 1.449 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003891/0.3962, allocations: 25.48 kB / 339.6 MB, free: 1.441 MB / 266.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.001239/0.3975, allocations: 0.8946 MB / 340.4 MB, free: 0.668 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003829/0.3979, allocations: 111.1 kB / 340.6 MB, free: 0.5859 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/0.3979, allocations: 0 / 340.6 MB, free: 0.5859 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001361/0.3981, allocations: 39.42 kB / 340.6 MB, free: 0.5664 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003919/0.3985, allocations: 18.36 kB / 340.6 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002401/0.4009, allocations: 1.276 MB / 341.9 MB, free: 15.66 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006074/0.4016, allocations: 0.8245 MB / 342.7 MB, free: 14.89 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002206/0.4018, allocations: 100.2 kB / 342.8 MB, free: 14.8 MB / 282.7 MB Notification: Performance of SimCode: time 1.032e-06/0.4018, allocations: 0 / 342.8 MB, free: 14.8 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.818/3.22, allocations: 6.23 MB / 349 MB, free: 11.65 MB / 282.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTable2D.Test1_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTable2D.Test1_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTable2D.Test1_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTable2D.Test1_res.mat failed! Error: Could not read variable t_new.der(u1) in file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTable2D.Test1_res.mat. Warning: Get data of variable t_new.der(u1) from file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTable2D.Test1_res.mat failed! Error: Could not read variable t_new.tableID.id in file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTable2D.Test1_res.mat. Warning: Get data of variable t_new.tableID.id from file ModelicaTest_3.2.1_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