Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test16.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.CombiTimeTable.Test16,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test16",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.26/2.26, allocations: 234.9 MB / 250.5 MB, free: 9.547 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004314/0.0004315, allocations: 16 kB / 314.4 MB, free: 9.492 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3795/0.3799, allocations: 54.86 MB / 369.3 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test16): time 0.002559/0.3825, allocations: 1.353 MB / 370.6 MB, free: 11.38 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00167/0.3842, allocations: 0.7164 MB / 371.3 MB, free: 10.66 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.467e-05/0.3843, allocations: 4 kB / 371.3 MB, free: 10.65 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00026/0.3846, allocations: 23.86 kB / 371.4 MB, free: 10.63 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001827/0.3848, allocations: 35.88 kB / 371.4 MB, free: 10.59 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002131/0.385, allocations: 51.83 kB / 371.5 MB, free: 10.54 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001769/0.3852, allocations: 75.84 kB / 371.5 MB, free: 10.47 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.066e-05/0.3853, allocations: 4 kB / 371.5 MB, free: 10.46 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001014/0.3854, allocations: 39.84 kB / 371.6 MB, free: 10.43 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.173e-05/0.3855, allocations: 27.84 kB / 371.6 MB, free: 10.4 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.747e-05/0.3856, allocations: 4 kB / 371.6 MB, free: 10.39 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001046/0.3857, allocations: 24 kB / 371.6 MB, free: 10.37 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.826e-05/0.3857, allocations: 15.91 kB / 371.6 MB, free: 10.36 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.719e-05/0.3858, allocations: 45.62 kB / 371.7 MB, free: 10.3 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001908/0.386, allocations: 76.88 kB / 371.8 MB, free: 10.23 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.425e-06/0.386, allocations: 4 kB / 371.8 MB, free: 10.23 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.386, allocations: 0 / 371.8 MB, free: 10.23 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.188e-06/0.3861, allocations: 0 / 371.8 MB, free: 10.23 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.000597/0.3867, allocations: 450.3 kB / 372.2 MB, free: 9.727 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.3867, allocations: 8.031 kB / 372.2 MB, free: 9.719 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.049e-05/0.3868, allocations: 38.56 kB / 372.3 MB, free: 9.672 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.791e-05/0.3868, allocations: 7.906 kB / 372.3 MB, free: 9.664 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002501/0.3871, allocations: 203.4 kB / 372.5 MB, free: 9.426 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.105e-05/0.3871, allocations: 12 kB / 372.5 MB, free: 9.414 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.642e-05/0.3872, allocations: 4 kB / 372.5 MB, free: 9.41 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001908/0.3874, allocations: 57.61 kB / 372.5 MB, free: 9.348 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.204e-05/0.3874, allocations: 0 / 372.5 MB, free: 9.348 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.585e-05/0.3874, allocations: 3.953 kB / 372.5 MB, free: 9.344 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.3874, allocations: 0 / 372.5 MB, free: 9.344 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001109/0.3875, allocations: 23.92 kB / 372.6 MB, free: 9.32 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004385/0.388, allocations: 300.8 kB / 372.9 MB, free: 8.977 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002587/0.3883, allocations: 58.69 kB / 372.9 MB, free: 8.91 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.235e-05/0.3883, allocations: 0 / 372.9 MB, free: 8.91 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002293/0.3885, allocations: 79.27 kB / 373 MB, free: 8.82 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.804e-06/0.3886, allocations: 0 / 373 MB, free: 8.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0007334/0.3893, allocations: 165.3 kB / 373.1 MB, free: 8.652 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.603e-05/0.3894, allocations: 59.41 kB / 373.2 MB, free: 8.582 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002158/0.3896, allocations: 178.3 kB / 373.4 MB, free: 8.402 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.271e-05/0.3897, allocations: 33.7 kB / 373.4 MB, free: 8.363 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.347e-05/0.3897, allocations: 154.6 kB / 373.6 MB, free: 8.211 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.707e-05/0.3898, allocations: 27.64 kB / 373.6 MB, free: 8.184 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.704e-06/0.3898, allocations: 0 / 373.6 MB, free: 8.184 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.39, allocations: 318.8 kB / 373.9 MB, free: 7.863 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001222/0.3901, allocations: 31.98 kB / 373.9 MB, free: 7.832 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001392/0.3902, allocations: 48.94 kB / 374 MB, free: 7.781 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001514/0.3904, allocations: 65.69 kB / 374 MB, free: 7.711 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-06/0.3904, allocations: 0 / 374 MB, free: 7.711 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003815/0.3908, allocations: 163.3 kB / 374.2 MB, free: 7.539 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.501e-05/0.3909, allocations: 33.69 kB / 374.2 MB, free: 7.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.3909, allocations: 4 kB / 374.2 MB, free: 7.496 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.323e-05/0.3909, allocations: 0 / 374.2 MB, free: 7.496 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001344/0.3911, allocations: 16.03 kB / 374.3 MB, free: 7.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.114e-05/0.3911, allocations: 7.938 kB / 374.3 MB, free: 7.473 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.689e-05/0.3912, allocations: 11.98 kB / 374.3 MB, free: 7.461 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.683e-05/0.3912, allocations: 4 kB / 374.3 MB, free: 7.457 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.t_new.nextTimeEvent,t_new.nextTimeEvent,$PRE.t_new.nextTimeEventScaled,t_new.nextTimeEventScaled) * 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.0001288/0.3913, allocations: 117.8 kB / 374.4 MB, free: 7.332 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.963e-05/0.3914, allocations: 15.77 kB / 374.4 MB, free: 7.316 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.648e-05/0.3914, allocations: 16.7 kB / 374.4 MB, free: 7.301 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.3915, allocations: 3.938 kB / 374.4 MB, free: 7.297 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.3915, allocations: 384 / 374.4 MB, free: 7.297 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.275e-06/0.3915, allocations: 11.98 kB / 374.4 MB, free: 7.285 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006267/0.3921, allocations: 395.3 kB / 374.8 MB, free: 6.84 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.3921, allocations: 96 / 374.8 MB, free: 6.84 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.465e-05/0.3922, allocations: 11.94 kB / 374.8 MB, free: 6.828 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.3922, allocations: 0 / 374.8 MB, free: 6.828 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.486e-05/0.3923, allocations: 4 kB / 374.8 MB, free: 6.824 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.295e-06/0.3923, allocations: 0 / 374.8 MB, free: 6.824 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.3923, allocations: 0 / 374.8 MB, free: 6.824 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003382/0.3926, allocations: 204.3 kB / 375 MB, free: 6.605 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.786e-05/0.3927, allocations: 101 kB / 375.1 MB, free: 6.488 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.531e-05/0.3928, allocations: 7.984 kB / 375.2 MB, free: 6.48 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000105/0.3929, allocations: 4 kB / 375.2 MB, free: 6.477 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.052e-05/0.3929, allocations: 0 / 375.2 MB, free: 6.477 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.134e-05/0.393, allocations: 7.984 kB / 375.2 MB, free: 6.469 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001467/0.3931, allocations: 127.2 kB / 375.3 MB, free: 6.344 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.3931, allocations: 0 / 375.3 MB, free: 6.344 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003504/0.3935, allocations: 35.91 kB / 375.3 MB, free: 6.309 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Number of discrete states: 2 (t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001833/0.3954, allocations: 1.089 MB / 376.4 MB, free: 5.285 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000383/0.3958, allocations: 147.3 kB / 376.6 MB, free: 5.129 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.3958, allocations: 0 / 376.6 MB, free: 5.129 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001141/0.3959, allocations: 27.98 kB / 376.6 MB, free: 5.102 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003406/0.3962, allocations: 20.17 kB / 376.6 MB, free: 5.082 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009314/0.3972, allocations: 483.3 kB / 377.1 MB, free: 4.551 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003308/0.3976, allocations: 0.7043 MB / 377.8 MB, free: 3.82 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.328e-05/0.3976, allocations: 31.42 kB / 377.8 MB, free: 3.789 MB / 298.7 MB Notification: Performance of SimCode: time 7.82e-07/0.3977, allocations: 0 / 377.8 MB, free: 3.789 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.419/2.816, allocations: 2.297 MB / 380.1 MB, free: 1.488 MB / 298.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test16_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test16_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test16_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test16_res.mat failed! Error: Could not read variable t_new.DBL_MAX in file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test16_res.mat. Warning: Get data of variable t_new.DBL_MAX from file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test16_res.mat failed! Error: Could not read variable t_new.tableID.id in file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test16_res.mat. Warning: Get data of variable t_new.tableID.id from file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test16_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),der(t_new.timeScaled),t_new.columns[1],t_new.extrapolation,t_new.nextTimeEvent,t_new.nextTimeEventScaled,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_maxScaled,t_new.t_min,t_new.t_minScaled,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.timeScale,t_new.timeScaled,t_new.verboseRead,t_new.y[1],time