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.Test6.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.Test6,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test6",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.94/1.94, allocations: 209.2 MB / 224.8 MB, free: 0.5312 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007214/0.0007217, allocations: 12 kB / 282.6 MB, free: 9.578 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3748/0.3756, allocations: 48.7 MB / 331.3 MB, free: 6.496 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test6): time 0.00232/0.378, allocations: 1.294 MB / 332.6 MB, free: 5.844 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001014/0.3791, allocations: 419.9 kB / 333 MB, free: 5.57 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.844e-05/0.3791, allocations: 0 / 333 MB, free: 5.57 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002775/0.3794, allocations: 25.3 kB / 333 MB, free: 5.559 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001923/0.3796, allocations: 42.14 kB / 333.1 MB, free: 5.539 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002646/0.3799, allocations: 58.92 kB / 333.1 MB, free: 5.508 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000159/0.3801, allocations: 55.38 kB / 333.2 MB, free: 5.484 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.414e-05/0.3802, allocations: 12.5 kB / 333.2 MB, free: 5.477 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.432e-05/0.3803, allocations: 36.39 kB / 333.2 MB, free: 5.461 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.352e-05/0.3804, allocations: 25.66 kB / 333.2 MB, free: 5.453 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.852e-05/0.3804, allocations: 5.156 kB / 333.2 MB, free: 5.449 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001441/0.3806, allocations: 33.94 kB / 333.3 MB, free: 5.441 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.648e-05/0.3807, allocations: 24.56 kB / 333.3 MB, free: 5.434 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.13e-05/0.3807, allocations: 43.38 kB / 333.3 MB, free: 5.391 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002314/0.381, allocations: 87.06 kB / 333.4 MB, free: 5.375 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.915e-06/0.381, allocations: 1.094 kB / 333.4 MB, free: 5.375 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.381, allocations: 0 / 333.4 MB, free: 5.375 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.381, allocations: 0 / 333.4 MB, free: 5.375 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0005006/0.3815, allocations: 438.7 kB / 333.9 MB, free: 4.934 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.656e-05/0.3816, allocations: 18.64 kB / 333.9 MB, free: 4.926 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.087e-05/0.3816, allocations: 34.56 kB / 333.9 MB, free: 4.883 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.038e-05/0.3817, allocations: 9.969 kB / 333.9 MB, free: 4.879 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002189/0.3819, allocations: 207.7 kB / 334.1 MB, free: 4.656 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.43e-05/0.3819, allocations: 1.094 kB / 334.1 MB, free: 4.656 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.792e-05/0.382, allocations: 4.078 kB / 334.1 MB, free: 4.656 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001262/0.3821, allocations: 42.19 kB / 334.2 MB, free: 4.621 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.371e-05/0.3821, allocations: 2.094 kB / 334.2 MB, free: 4.621 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.058e-05/0.3821, allocations: 0 / 334.2 MB, free: 4.621 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.3822, allocations: 1.281 kB / 334.2 MB, free: 4.621 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.545e-05/0.3822, allocations: 21.14 kB / 334.2 MB, free: 4.609 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003929/0.3826, allocations: 286.7 kB / 334.5 MB, free: 4.324 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00022/0.3829, allocations: 43.03 kB / 334.5 MB, free: 4.293 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.878e-05/0.3829, allocations: 3.938 kB / 334.5 MB, free: 4.289 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001635/0.3831, allocations: 65.03 kB / 334.6 MB, free: 4.23 MB / 266.7 MB Notification: Performance of pre-optimization done (n=4): time 1.994e-06/0.3831, allocations: 0 / 334.6 MB, free: 4.23 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.0004849/0.3836, allocations: 121.8 kB / 334.7 MB, free: 4.16 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.998e-05/0.3836, allocations: 57.09 kB / 334.8 MB, free: 4.094 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003517/0.384, allocations: 253 kB / 335 MB, free: 3.957 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.676e-05/0.384, allocations: 27.59 kB / 335 MB, free: 3.926 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.73e-05/0.3841, allocations: 173.2 kB / 335.2 MB, free: 3.758 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.622e-05/0.3841, allocations: 15.44 kB / 335.2 MB, free: 3.746 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.555e-06/0.3842, allocations: 1.219 kB / 335.2 MB, free: 3.746 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.343e-05/0.3842, allocations: 321.7 kB / 335.5 MB, free: 3.426 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.423e-05/0.3843, allocations: 19.02 kB / 335.5 MB, free: 3.418 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.594e-05/0.3844, allocations: 15.98 kB / 335.6 MB, free: 3.414 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.354e-05/0.3845, allocations: 51.41 kB / 335.6 MB, free: 3.371 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.3845, allocations: 0 / 335.6 MB, free: 3.371 MB / 266.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002222/0.3847, allocations: 113.3 kB / 335.7 MB, free: 3.289 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.802e-05/0.3848, allocations: 33 kB / 335.8 MB, free: 3.258 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-06/0.3848, allocations: 1.25 kB / 335.8 MB, free: 3.258 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.084e-05/0.3848, allocations: 0.7031 kB / 335.8 MB, free: 3.258 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.657e-05/0.3849, allocations: 9.234 kB / 335.8 MB, free: 3.258 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.568e-06/0.3849, allocations: 9.562 kB / 335.8 MB, free: 3.25 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.134e-05/0.385, allocations: 14 kB / 335.8 MB, free: 3.238 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.472e-05/0.385, allocations: 2.5 kB / 335.8 MB, free: 3.238 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: 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.0001228/0.3852, allocations: 134.4 kB / 335.9 MB, free: 3.117 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.526e-05/0.3852, allocations: 11.02 kB / 335.9 MB, free: 3.113 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.262e-05/0.3853, allocations: 17.45 kB / 336 MB, free: 3.105 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.3853, allocations: 1.219 kB / 336 MB, free: 3.105 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.3853, allocations: 4.688 kB / 336 MB, free: 3.102 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.3853, allocations: 8.625 kB / 336 MB, free: 3.094 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004026/0.3857, allocations: 354 kB / 336.3 MB, free: 2.762 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.3857, allocations: 0 / 336.3 MB, free: 2.762 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.28e-05/0.3858, allocations: 6.703 kB / 336.3 MB, free: 2.762 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.3858, allocations: 1.438 kB / 336.3 MB, free: 2.762 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.145e-05/0.3858, allocations: 0.7031 kB / 336.3 MB, free: 2.762 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.3858, allocations: 1.5 kB / 336.3 MB, free: 2.762 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.3858, allocations: 0.5156 kB / 336.3 MB, free: 2.762 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001894/0.386, allocations: 181.5 kB / 336.5 MB, free: 2.602 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.061e-05/0.3861, allocations: 89.34 kB / 336.6 MB, free: 2.5 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.192e-05/0.3861, allocations: 2.234 kB / 336.6 MB, free: 2.5 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.88e-05/0.3862, allocations: 6.406 kB / 336.6 MB, free: 2.496 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.225e-05/0.3863, allocations: 3 kB / 336.6 MB, free: 2.496 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.815e-05/0.3863, allocations: 4.094 kB / 336.6 MB, free: 2.496 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002348/0.3866, allocations: 194.6 kB / 336.8 MB, free: 2.391 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.3866, allocations: 1.438 kB / 336.8 MB, free: 2.391 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003519/0.3869, allocations: 32.22 kB / 336.8 MB, free: 2.379 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: 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.001298/0.3882, allocations: 0.9761 MB / 337.8 MB, free: 1.562 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000236/0.3885, allocations: 106.3 kB / 337.9 MB, free: 1.48 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.3885, allocations: 4 kB / 337.9 MB, free: 1.477 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.949e-05/0.3886, allocations: 11.08 kB / 337.9 MB, free: 1.477 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003179/0.3889, allocations: 22.69 kB / 337.9 MB, free: 1.469 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009434/0.3899, allocations: 0.543 MB / 338.5 MB, free: 1.023 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001955/0.3901, allocations: 0.7114 MB / 339.2 MB, free: 336 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.089e-05/0.3902, allocations: 36.92 kB / 339.2 MB, free: 308 kB / 266.7 MB Notification: Performance of SimCode: time 8.32e-07/0.3902, allocations: 0 / 339.2 MB, free: 308 kB / 266.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.721/3.112, allocations: 2.474 MB / 341.7 MB, free: 15.26 MB / 282.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test6_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test6_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test6_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test6_res.mat failed! Error: Could not read variable t_new.tableID.id in file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test6_res.mat. Warning: Get data of variable t_new.tableID.id from file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test6_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[10,1],t_new.table[10,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.table[5,1],t_new.table[5,2],t_new.table[6,1],t_new.table[6,2],t_new.table[7,1],t_new.table[7,2],t_new.table[8,1],t_new.table[8,2],t_new.table[9,1],t_new.table[9,2],t_new.verboseRead,t_new.y[1],time