Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTable1D.Test4.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.CombiTable1D.Test4,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTable1D_Test4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.98/1.98, allocations: 209.2 MB / 224.8 MB, free: 0.6289 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004403/0.0004403, allocations: 8 kB / 282.6 MB, free: 9.602 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3471/0.3476, allocations: 48.7 MB / 331.3 MB, free: 6.508 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTable1D.Test4): time 0.002428/0.3501, allocations: 1.215 MB / 332.5 MB, free: 5.914 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006534/0.3508, allocations: 259.2 kB / 332.7 MB, free: 5.75 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.707e-05/0.3509, allocations: 0.8438 kB / 332.7 MB, free: 5.75 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003382/0.3512, allocations: 83.25 kB / 332.8 MB, free: 5.738 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001969/0.3515, allocations: 60.12 kB / 332.9 MB, free: 5.719 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001917/0.3517, allocations: 28.39 kB / 332.9 MB, free: 5.707 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001842/0.3519, allocations: 61.38 kB / 333 MB, free: 5.684 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001274/0.352, allocations: 20.88 kB / 333 MB, free: 5.672 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.644e-05/0.3521, allocations: 35.09 kB / 333 MB, free: 5.66 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001341/0.3522, allocations: 42.44 kB / 333.1 MB, free: 5.648 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.927e-05/0.3523, allocations: 1.188 kB / 333.1 MB, free: 5.648 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.885e-05/0.3524, allocations: 17.03 kB / 333.1 MB, free: 5.645 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.638e-05/0.3525, allocations: 21.89 kB / 333.1 MB, free: 5.637 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.579e-05/0.3525, allocations: 37.2 kB / 333.1 MB, free: 5.598 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001817/0.3527, allocations: 68.88 kB / 333.2 MB, free: 5.586 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.726e-06/0.3527, allocations: 0 / 333.2 MB, free: 5.586 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3527, allocations: 0 / 333.2 MB, free: 5.586 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.709e-06/0.3527, allocations: 0 / 333.2 MB, free: 5.586 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005128/0.3533, allocations: 423.6 kB / 333.6 MB, free: 5.16 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.723e-05/0.3533, allocations: 8.625 kB / 333.6 MB, free: 5.16 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.83e-05/0.3534, allocations: 37.39 kB / 333.7 MB, free: 5.117 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.961e-05/0.3534, allocations: 13.5 kB / 333.7 MB, free: 5.109 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001896/0.3536, allocations: 200.2 kB / 333.9 MB, free: 4.891 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.421e-05/0.3536, allocations: 1.375 kB / 333.9 MB, free: 4.891 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.723e-05/0.3537, allocations: 4.734 kB / 333.9 MB, free: 4.891 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002347/0.3539, allocations: 84.33 kB / 334 MB, free: 4.824 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.618e-05/0.3539, allocations: 5.594 kB / 334 MB, free: 4.82 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.312e-05/0.354, allocations: 0 / 334 MB, free: 4.82 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.354, allocations: 1.719 kB / 334 MB, free: 4.82 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001906/0.3542, allocations: 40.86 kB / 334 MB, free: 4.812 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005583/0.3548, allocations: 404.9 kB / 334.4 MB, free: 4.426 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003911/0.3552, allocations: 85.92 kB / 334.5 MB, free: 4.367 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.338e-05/0.3552, allocations: 6.109 kB / 334.5 MB, free: 4.363 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.105e-05/0.3553, allocations: 38.05 kB / 334.5 MB, free: 4.32 MB / 266.7 MB Notification: Performance of pre-optimization done (n=6): time 2.284e-06/0.3553, allocations: 0 / 334.5 MB, free: 4.32 MB / 266.7 MB Notification: Performance of matching and sorting (n=10): time 0.001148/0.3564, allocations: 264.7 kB / 334.8 MB, free: 4.203 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.461e-05/0.3565, allocations: 79.97 kB / 334.9 MB, free: 4.109 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002999/0.3568, allocations: 218.7 kB / 335.1 MB, free: 3.977 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.574e-05/0.3569, allocations: 25.7 kB / 335.1 MB, free: 3.945 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.523e-05/0.3569, allocations: 174.7 kB / 335.3 MB, free: 3.777 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.973e-05/0.357, allocations: 30.23 kB / 335.3 MB, free: 3.754 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.638e-06/0.357, allocations: 4 kB / 335.3 MB, free: 3.75 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.24e-05/0.3571, allocations: 317.5 kB / 335.6 MB, free: 3.434 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001737/0.3572, allocations: 38.03 kB / 335.7 MB, free: 3.426 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001575/0.3574, allocations: 38.48 kB / 335.7 MB, free: 3.418 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000196/0.3576, allocations: 78.22 kB / 335.8 MB, free: 3.367 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3576, allocations: 4 kB / 335.8 MB, free: 3.363 MB / 266.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000496/0.3582, allocations: 156.9 kB / 335.9 MB, free: 3.273 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.777e-05/0.3582, allocations: 31.14 kB / 336 MB, free: 3.242 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.3582, allocations: 128 / 336 MB, free: 3.242 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.368e-05/0.3583, allocations: 1.688 kB / 336 MB, free: 3.242 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001767/0.3584, allocations: 30.36 kB / 336 MB, free: 3.234 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.807e-06/0.3585, allocations: 5.25 kB / 336 MB, free: 3.23 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.848e-05/0.3586, allocations: 11.28 kB / 336 MB, free: 3.227 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.591e-05/0.3586, allocations: 6.844 kB / 336 MB, free: 3.223 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 (11): * Single equations (assignments): 10 * 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.0001412/0.3588, allocations: 128.5 kB / 336.1 MB, free: 3.105 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.497e-05/0.3588, allocations: 12.44 kB / 336.2 MB, free: 3.098 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005537/0.3594, allocations: 159.5 kB / 336.3 MB, free: 3.023 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.674e-06/0.3594, allocations: 5.859 kB / 336.3 MB, free: 3.02 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.245e-06/0.3594, allocations: 5.047 kB / 336.3 MB, free: 3.016 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/0.3594, allocations: 5.688 kB / 336.3 MB, free: 3.012 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009303/0.3604, allocations: 0.5175 MB / 336.8 MB, free: 2.566 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.3604, allocations: 2.016 kB / 336.8 MB, free: 2.566 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001572/0.3606, allocations: 21.89 kB / 336.9 MB, free: 2.566 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.005e-05/0.3606, allocations: 5.234 kB / 336.9 MB, free: 2.562 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.568e-05/0.3606, allocations: 2.062 kB / 336.9 MB, free: 2.562 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.658e-06/0.3607, allocations: 1.344 kB / 336.9 MB, free: 2.562 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.3607, allocations: 5.188 kB / 336.9 MB, free: 2.559 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004656/0.3611, allocations: 305 kB / 337.2 MB, free: 2.316 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.818e-05/0.3612, allocations: 95.2 kB / 337.3 MB, free: 2.211 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.128e-05/0.3612, allocations: 9.047 kB / 337.3 MB, free: 2.203 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001562/0.3614, allocations: 7.422 kB / 337.3 MB, free: 2.203 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.705e-05/0.3615, allocations: 11.38 kB / 337.3 MB, free: 2.199 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.446e-05/0.3615, allocations: 4.375 kB / 337.3 MB, free: 2.199 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002099/0.3617, allocations: 168.2 kB / 337.5 MB, free: 2.102 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.3617, allocations: 0 / 337.5 MB, free: 2.102 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000407/0.3622, allocations: 19.11 kB / 337.5 MB, free: 2.098 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (10): * Single equations (assignments): 10 * 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.001236/0.3634, allocations: 0.9882 MB / 338.5 MB, free: 1.246 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004758/0.3639, allocations: 151.6 kB / 338.6 MB, free: 1.16 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.364, allocations: 4 kB / 338.6 MB, free: 1.156 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001898/0.3642, allocations: 49.7 kB / 338.7 MB, free: 1.145 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003624/0.3645, allocations: 14.8 kB / 338.7 MB, free: 1.137 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001084/0.3656, allocations: 0.5713 MB / 339.3 MB, free: 0.6641 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002523/0.3659, allocations: 0.7162 MB / 340 MB, free: 15.96 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001243/0.3661, allocations: 37.94 kB / 340 MB, free: 15.93 MB / 282.7 MB Notification: Performance of SimCode: time 1.132e-06/0.3661, allocations: 0 / 340 MB, free: 15.93 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.771/3.137, allocations: 2.191 MB / 342.2 MB, free: 14.88 MB / 282.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTable1D.Test4_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTable1D.Test4_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTable1D.Test4_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTable1D.Test4_res.mat failed! Error: Could not read variable t_new.tableID.id in file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTable1D.Test4_res.mat. Warning: Get data of variable t_new.tableID.id from file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTable1D.Test4_res.mat failed! " Variables in the reference:time,t_new.y[1],t_new.y[2],d_t_new.y,clock.y,d_t_new2.y Variables in the result:clock.offset,clock.startTime,clock.y,d_t_new.u,d_t_new.y,d_t_new2.u,d_t_new2.y,der(d_t_new.u),der(d_t_new2.u),der(t_new.u[1]),der(t_new.u[2]),t_new.columns[1],t_new.columns[2],t_new.n,t_new.smoothness,t_new.tableOnFile,t_new.tableOnFileRead,t_new.table[1,1],t_new.table[1,2],t_new.table[1,3],t_new.table[2,1],t_new.table[2,2],t_new.table[2,3],t_new.table[3,1],t_new.table[3,2],t_new.table[3,3],t_new.table[4,1],t_new.table[4,2],t_new.table[4,3],t_new.table[5,1],t_new.table[5,2],t_new.table[5,3],t_new.u[1],t_new.u[2],t_new.verboseRead,t_new.y[1],t_new.y[2],time