Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTable1D.Test6.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.CombiTable1D.Test6,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test6",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.172/2.172, allocations: 234.9 MB / 250.5 MB, free: 9.566 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004101/0.0004102, allocations: 12 kB / 314.4 MB, free: 9.52 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.Tables.CombiTable1D.Test6): time 0.002237/0.3276, allocations: 1.235 MB / 370.5 MB, free: 9.48 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006665/0.3283, allocations: 261.2 kB / 370.8 MB, free: 9.223 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.791e-05/0.3283, allocations: 0 / 370.8 MB, free: 9.223 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002848/0.3286, allocations: 87.73 kB / 370.8 MB, free: 9.137 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001674/0.3288, allocations: 55.86 kB / 370.9 MB, free: 9.082 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000144/0.329, allocations: 31.97 kB / 370.9 MB, free: 9.051 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001608/0.3292, allocations: 67.84 kB / 371 MB, free: 8.984 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.782e-05/0.3293, allocations: 8 kB / 371 MB, free: 8.977 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.555e-05/0.3293, allocations: 31.91 kB / 371 MB, free: 8.945 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001136/0.3295, allocations: 43.88 kB / 371.1 MB, free: 8.902 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.486e-05/0.3295, allocations: 0 / 371.1 MB, free: 8.902 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.673e-05/0.3296, allocations: 19.88 kB / 371.1 MB, free: 8.883 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.431e-05/0.3296, allocations: 23.98 kB / 371.1 MB, free: 8.859 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.166e-05/0.3297, allocations: 37.64 kB / 371.2 MB, free: 8.816 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001543/0.3299, allocations: 71.88 kB / 371.2 MB, free: 8.746 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.3299, allocations: 0 / 371.2 MB, free: 8.746 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.3299, allocations: 0 / 371.2 MB, free: 8.746 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.138e-06/0.3299, allocations: 0 / 371.2 MB, free: 8.746 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.000522/0.3304, allocations: 425.5 kB / 371.6 MB, free: 8.277 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.3305, allocations: 8.031 kB / 371.7 MB, free: 8.27 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.044e-05/0.3305, allocations: 34.56 kB / 371.7 MB, free: 8.227 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.811e-05/0.3306, allocations: 19.86 kB / 371.7 MB, free: 8.207 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002339/0.3308, allocations: 182.9 kB / 371.9 MB, free: 7.988 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.821e-05/0.3309, allocations: 15.94 kB / 371.9 MB, free: 7.973 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.827e-05/0.3309, allocations: 4 kB / 371.9 MB, free: 7.969 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002211/0.3311, allocations: 83.27 kB / 372 MB, free: 7.875 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.3312, allocations: 3.906 kB / 372 MB, free: 7.871 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.326e-05/0.3312, allocations: 3.984 kB / 372 MB, free: 7.867 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/0.3312, allocations: 11.95 kB / 372 MB, free: 7.855 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001856/0.3314, allocations: 39.97 kB / 372 MB, free: 7.816 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005499/0.3319, allocations: 393 kB / 372.4 MB, free: 7.379 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003673/0.3323, allocations: 93.16 kB / 372.5 MB, free: 7.27 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.815e-05/0.3324, allocations: 7.984 kB / 372.5 MB, free: 7.262 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.621e-05/0.3324, allocations: 38.52 kB / 372.6 MB, free: 7.215 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.563e-06/0.3324, allocations: 0 / 372.6 MB, free: 7.215 MB / 298.7 MB Notification: Performance of matching and sorting (n=10): time 0.001071/0.3335, allocations: 256.9 kB / 372.8 MB, free: 6.957 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.4e-05/0.3336, allocations: 81.11 kB / 372.9 MB, free: 6.859 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000281/0.3339, allocations: 223.3 kB / 373.1 MB, free: 6.629 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.946e-05/0.3339, allocations: 25.7 kB / 373.1 MB, free: 6.598 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.9e-05/0.334, allocations: 170.5 kB / 373.3 MB, free: 6.43 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.266e-05/0.3341, allocations: 35.45 kB / 373.3 MB, free: 6.395 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.166e-06/0.3341, allocations: 0 / 373.3 MB, free: 6.395 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001166/0.3342, allocations: 318.8 kB / 373.6 MB, free: 6.074 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001677/0.3344, allocations: 39.97 kB / 373.7 MB, free: 6.035 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001565/0.3345, allocations: 35.98 kB / 373.7 MB, free: 6 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002058/0.3348, allocations: 73.67 kB / 373.8 MB, free: 5.922 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3348, allocations: 3.938 kB / 373.8 MB, free: 5.918 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004334/0.3352, allocations: 155.2 kB / 373.9 MB, free: 5.754 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.851e-05/0.3353, allocations: 41.69 kB / 374 MB, free: 5.707 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.3353, allocations: 0 / 374 MB, free: 5.707 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.217e-05/0.3353, allocations: 0 / 374 MB, free: 5.707 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000158/0.3355, allocations: 23.98 kB / 374 MB, free: 5.684 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.146e-06/0.3355, allocations: 3.984 kB / 374 MB, free: 5.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.588e-05/0.3356, allocations: 4 kB / 374 MB, free: 5.676 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.559e-05/0.3356, allocations: 8 kB / 374 MB, free: 5.668 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 (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.0001344/0.3358, allocations: 129.8 kB / 374.2 MB, free: 5.531 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.708e-05/0.3358, allocations: 19.77 kB / 374.2 MB, free: 5.512 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005141/0.3364, allocations: 158.6 kB / 374.3 MB, free: 5.355 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.3364, allocations: 0 / 374.3 MB, free: 5.355 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.3364, allocations: 3.938 kB / 374.3 MB, free: 5.352 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.64e-06/0.3364, allocations: 7.984 kB / 374.3 MB, free: 5.344 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009109/0.3373, allocations: 0.514 MB / 374.9 MB, free: 4.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.3373, allocations: 320 / 374.9 MB, free: 4.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001522/0.3375, allocations: 27.98 kB / 374.9 MB, free: 4.742 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.032e-06/0.3375, allocations: 7.938 kB / 374.9 MB, free: 4.734 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.645e-05/0.3375, allocations: 4 kB / 374.9 MB, free: 4.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.889e-06/0.3376, allocations: 3.984 kB / 374.9 MB, free: 4.727 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.3376, allocations: 0 / 374.9 MB, free: 4.727 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004734/0.3381, allocations: 312.1 kB / 375.2 MB, free: 4.402 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.155e-05/0.3381, allocations: 96.84 kB / 375.3 MB, free: 4.289 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.418e-05/0.3382, allocations: 0 / 375.3 MB, free: 4.289 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001589/0.3383, allocations: 16 kB / 375.3 MB, free: 4.273 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.216e-05/0.3384, allocations: 7.984 kB / 375.3 MB, free: 4.266 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.234e-05/0.3384, allocations: 4 kB / 375.3 MB, free: 4.262 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001876/0.3386, allocations: 163.9 kB / 375.5 MB, free: 4.102 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.3386, allocations: 0 / 375.5 MB, free: 4.102 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003594/0.339, allocations: 19.98 kB / 375.5 MB, free: 4.082 MB / 298.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.001487/0.3405, allocations: 1.045 MB / 376.5 MB, free: 3.082 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004429/0.341, allocations: 155.3 kB / 376.7 MB, free: 2.918 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.341, allocations: 0 / 376.7 MB, free: 2.918 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001956/0.3412, allocations: 51.91 kB / 376.8 MB, free: 2.867 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000306/0.3415, allocations: 8.219 kB / 376.8 MB, free: 2.859 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001057/0.3426, allocations: 0.5744 MB / 377.3 MB, free: 2.223 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003469/0.3429, allocations: 0.716 MB / 378.1 MB, free: 1.48 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.568e-05/0.343, allocations: 35.42 kB / 378.1 MB, free: 1.445 MB / 298.7 MB Notification: Performance of SimCode: time 7.31e-07/0.343, allocations: 4 kB / 378.1 MB, free: 1.441 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.412/2.755, allocations: 2.191 MB / 380.3 MB, free: 15.25 MB / 314.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTable1D.Test6_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTable1D.Test6_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTable1D.Test6_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTable1D.Test6_res.mat failed! Error: Could not read variable t_new.tableID.id in file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTable1D.Test6_res.mat. Warning: Get data of variable t_new.tableID.id from file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTable1D.Test6_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