Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test23.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.CombiTimeTable.Test23,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test23",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.907/1.907, allocations: 209.2 MB / 224.8 MB, free: 1.473 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000449/0.0004492, allocations: 12 kB / 282.6 MB, free: 9.711 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1049, allocations: 48.71 MB / 331.3 MB, free: 8.91 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test23): time 0.002473/0.1074, allocations: 1.286 MB / 332.6 MB, free: 7.613 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001105/0.1086, allocations: 424.6 kB / 333 MB, free: 7.195 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.233e-05/0.1087, allocations: 4 kB / 333 MB, free: 7.191 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003137/0.109, allocations: 27.84 kB / 333 MB, free: 7.164 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002036/0.1092, allocations: 31.89 kB / 333.1 MB, free: 7.133 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003022/0.1096, allocations: 59.81 kB / 333.1 MB, free: 7.074 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001714/0.1097, allocations: 47.92 kB / 333.2 MB, free: 7.027 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00011/0.1099, allocations: 15.98 kB / 333.2 MB, free: 7.012 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.276e-05/0.11, allocations: 31.84 kB / 333.2 MB, free: 6.98 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.774e-05/0.1101, allocations: 19.92 kB / 333.2 MB, free: 6.961 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.756e-05/0.1101, allocations: 0 / 333.2 MB, free: 6.961 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001705/0.1103, allocations: 39.91 kB / 333.3 MB, free: 6.922 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.067e-05/0.1103, allocations: 19.92 kB / 333.3 MB, free: 6.902 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.435e-05/0.1104, allocations: 37.64 kB / 333.3 MB, free: 6.859 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002274/0.1106, allocations: 76.12 kB / 333.4 MB, free: 6.785 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.1107, allocations: 0 / 333.4 MB, free: 6.785 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.1107, allocations: 0 / 333.4 MB, free: 6.785 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.749e-06/0.1107, allocations: 0 / 333.4 MB, free: 6.785 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0006219/0.1113, allocations: 424.7 kB / 333.8 MB, free: 6.316 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.015e-05/0.1114, allocations: 8.031 kB / 333.8 MB, free: 6.309 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.001e-05/0.1114, allocations: 30.56 kB / 333.8 MB, free: 6.27 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.62e-05/0.1115, allocations: 11.81 kB / 333.9 MB, free: 6.258 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002799/0.1118, allocations: 191.5 kB / 334 MB, free: 6.031 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.326e-05/0.1118, allocations: 7.984 kB / 334 MB, free: 6.023 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.589e-05/0.1118, allocations: 0 / 334 MB, free: 6.023 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001494/0.112, allocations: 45.62 kB / 334.1 MB, free: 5.973 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.328e-05/0.112, allocations: 0 / 334.1 MB, free: 5.973 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.356e-05/0.1121, allocations: 8 kB / 334.1 MB, free: 5.965 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.561e-06/0.1121, allocations: 4 kB / 334.1 MB, free: 5.961 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.767e-05/0.1121, allocations: 7.984 kB / 334.1 MB, free: 5.953 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004557/0.1126, allocations: 280.8 kB / 334.4 MB, free: 5.629 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002489/0.1129, allocations: 50.44 kB / 334.4 MB, free: 5.57 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.043e-05/0.1129, allocations: 0 / 334.4 MB, free: 5.57 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001967/0.1131, allocations: 63.47 kB / 334.5 MB, free: 5.496 MB / 282.7 MB Notification: Performance of pre-optimization done (n=4): time 2.034e-06/0.1132, allocations: 0 / 334.5 MB, free: 5.496 MB / 282.7 MB Notification: Performance of matching and sorting (n=5): time 0.0005401/0.1137, allocations: 117.3 kB / 334.6 MB, free: 5.375 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.938e-05/0.1138, allocations: 51.41 kB / 334.7 MB, free: 5.312 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002583/0.114, allocations: 189.5 kB / 334.8 MB, free: 5.121 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.737e-05/0.1141, allocations: 25.7 kB / 334.9 MB, free: 5.09 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.002e-05/0.1142, allocations: 162.6 kB / 335 MB, free: 4.93 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.627e-05/0.1142, allocations: 27.72 kB / 335.1 MB, free: 4.902 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.863e-06/0.1143, allocations: 4 kB / 335.1 MB, free: 4.898 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000119/0.1144, allocations: 314.8 kB / 335.4 MB, free: 4.582 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.21e-05/0.1145, allocations: 12 kB / 335.4 MB, free: 4.57 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.148e-05/0.1145, allocations: 23.98 kB / 335.4 MB, free: 4.547 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001032/0.1146, allocations: 49.64 kB / 335.5 MB, free: 4.492 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.1147, allocations: 0 / 335.5 MB, free: 4.492 MB / 282.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002646/0.1149, allocations: 111.3 kB / 335.6 MB, free: 4.371 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.985e-05/0.115, allocations: 37.69 kB / 335.6 MB, free: 4.328 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.493e-06/0.115, allocations: 0 / 335.6 MB, free: 4.328 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.965e-05/0.115, allocations: 4 kB / 335.6 MB, free: 4.324 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.356e-05/0.1151, allocations: 12 kB / 335.6 MB, free: 4.312 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/0.1152, allocations: 7.875 kB / 335.6 MB, free: 4.305 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.654e-05/0.1153, allocations: 4 kB / 335.6 MB, free: 4.301 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.354e-05/0.1153, allocations: 11.94 kB / 335.6 MB, free: 4.289 MB / 282.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: 3 ($whenCondition1,$PRE.t_new.nextTimeEvent,t_new.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * 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.0001373/0.1154, allocations: 117.8 kB / 335.8 MB, free: 4.164 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.154e-05/0.1155, allocations: 7.906 kB / 335.8 MB, free: 4.156 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.41e-05/0.1156, allocations: 16.39 kB / 335.8 MB, free: 4.137 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-06/0.1156, allocations: 3.938 kB / 335.8 MB, free: 4.133 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.1156, allocations: 4 kB / 335.8 MB, free: 4.129 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.1156, allocations: 0 / 335.8 MB, free: 4.129 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005093/0.1161, allocations: 342.6 kB / 336.1 MB, free: 3.738 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.838e-06/0.1161, allocations: 3.938 kB / 336.1 MB, free: 3.734 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.872e-05/0.1162, allocations: 7.984 kB / 336.1 MB, free: 3.727 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.15e-06/0.1162, allocations: 0 / 336.1 MB, free: 3.727 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.428e-05/0.1163, allocations: 4 kB / 336.1 MB, free: 3.723 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.477e-06/0.1163, allocations: 0 / 336.1 MB, free: 3.723 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/0.1163, allocations: 0 / 336.1 MB, free: 3.723 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002263/0.1165, allocations: 171.4 kB / 336.3 MB, free: 3.539 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.979e-05/0.1166, allocations: 81.02 kB / 336.4 MB, free: 3.441 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.161e-05/0.1166, allocations: 7.984 kB / 336.4 MB, free: 3.434 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.601e-05/0.1167, allocations: 0 / 336.4 MB, free: 3.434 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.04e-05/0.1168, allocations: 8 kB / 336.4 MB, free: 3.426 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.887e-05/0.1168, allocations: 0 / 336.4 MB, free: 3.426 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001708/0.117, allocations: 141.6 kB / 336.5 MB, free: 3.289 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.117, allocations: 8 kB / 336.5 MB, free: 3.281 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003505/0.1174, allocations: 24 kB / 336.6 MB, free: 3.258 MB / 282.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: 2 ($whenCondition1,t_new.nextTimeEvent) * Number of discrete states: 1 (t_new.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.001516/0.1189, allocations: 0.9729 MB / 337.5 MB, free: 2.352 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002897/0.1192, allocations: 103.3 kB / 337.6 MB, free: 2.238 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.1193, allocations: 0 / 337.6 MB, free: 2.238 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 6.603e-05/0.1193, allocations: 19.98 kB / 337.7 MB, free: 2.219 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003585/0.1197, allocations: 19.92 kB / 337.7 MB, free: 2.199 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009561/0.1207, allocations: 473 kB / 338.1 MB, free: 1.684 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003099/0.121, allocations: 0.7043 MB / 338.8 MB, free: 0.9531 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.839e-05/0.1211, allocations: 23.44 kB / 338.9 MB, free: 0.9297 MB / 282.7 MB Notification: Performance of SimCode: time 9.32e-07/0.1212, allocations: 4 kB / 338.9 MB, free: 0.9258 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.267/3.389, allocations: 2.115 MB / 341 MB, free: 14.77 MB / 282.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test23_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test23_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test23_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test23_res.mat failed! Error: Could not read variable t_new.tableID.id in file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test23_res.mat. Warning: Get data of variable t_new.tableID.id from file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test23_res.mat failed! " Variables in the reference:time,t_new.nextTimeEvent,t_new.y[1],d_t_new.y Variables in the result:d_t_new.u,d_t_new.y,der(d_t_new.u),t_new.columns[1],t_new.extrapolation,t_new.nextTimeEvent,t_new.nout,t_new.offset[1],t_new.p_offset[1],t_new.smoothness,t_new.startTime,t_new.t_max,t_new.t_min,t_new.tableOnFile,t_new.tableOnFileRead,t_new.table[1,1],t_new.table[1,2],t_new.table[2,1],t_new.table[2,2],t_new.table[3,1],t_new.table[3,2],t_new.table[4,1],t_new.table[4,2],t_new.verboseRead,t_new.y[1],time