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.Test47.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.Test47,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test47",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.301/2.301, allocations: 234.9 MB / 250.5 MB, free: 9.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004209/0.0004209, allocations: 12 kB / 314.4 MB, free: 9.512 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3326/0.333, allocations: 54.86 MB / 369.3 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test47): time 0.002617/0.3357, allocations: 1.349 MB / 370.6 MB, free: 9.359 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001701/0.3375, allocations: 0.7241 MB / 371.3 MB, free: 8.629 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.912e-05/0.3376, allocations: 0 / 371.3 MB, free: 8.629 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003405/0.338, allocations: 27.84 kB / 371.4 MB, free: 8.602 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002341/0.3382, allocations: 43.88 kB / 371.4 MB, free: 8.559 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002687/0.3385, allocations: 55.83 kB / 371.5 MB, free: 8.504 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001964/0.3387, allocations: 75.83 kB / 371.5 MB, free: 8.43 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001048/0.3389, allocations: 4 kB / 371.6 MB, free: 8.426 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001136/0.339, allocations: 43.84 kB / 371.6 MB, free: 8.383 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.737e-05/0.3391, allocations: 27.91 kB / 371.6 MB, free: 8.355 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.365e-05/0.3391, allocations: 4 kB / 371.6 MB, free: 8.352 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001282/0.3393, allocations: 27.92 kB / 371.7 MB, free: 8.324 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.538e-05/0.3393, allocations: 23.92 kB / 371.7 MB, free: 8.301 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.067e-05/0.3394, allocations: 49.58 kB / 371.7 MB, free: 8.246 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002305/0.3397, allocations: 100.8 kB / 371.8 MB, free: 8.148 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.846e-06/0.3397, allocations: 0 / 371.8 MB, free: 8.148 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3397, allocations: 0 / 371.8 MB, free: 8.148 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.3397, allocations: 0 / 371.8 MB, free: 8.148 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.0006514/0.3404, allocations: 470.1 kB / 372.3 MB, free: 7.629 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.013e-05/0.3404, allocations: 8.031 kB / 372.3 MB, free: 7.621 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.035e-05/0.3405, allocations: 46.55 kB / 372.3 MB, free: 7.566 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.624e-05/0.3405, allocations: 15.75 kB / 372.4 MB, free: 7.551 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002891/0.3408, allocations: 210.8 kB / 372.6 MB, free: 7.305 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.25e-05/0.3409, allocations: 4 kB / 372.6 MB, free: 7.301 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.009e-05/0.3409, allocations: 4 kB / 372.6 MB, free: 7.297 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002075/0.3411, allocations: 61.55 kB / 372.6 MB, free: 7.23 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.3412, allocations: 0 / 372.6 MB, free: 7.23 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.691e-05/0.3412, allocations: 7.938 kB / 372.6 MB, free: 7.223 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.71e-06/0.3412, allocations: 0 / 372.6 MB, free: 7.223 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001154/0.3413, allocations: 23.98 kB / 372.7 MB, free: 7.199 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004744/0.3418, allocations: 304.8 kB / 373 MB, free: 6.852 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002681/0.3421, allocations: 62.61 kB / 373 MB, free: 6.781 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.846e-05/0.3422, allocations: 4 kB / 373 MB, free: 6.777 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002335/0.3424, allocations: 67.34 kB / 373.1 MB, free: 6.699 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 2.615e-06/0.3424, allocations: 0 / 373.1 MB, free: 6.699 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0007953/0.3432, allocations: 201 kB / 373.3 MB, free: 6.496 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.407e-05/0.3433, allocations: 51.41 kB / 373.3 MB, free: 6.434 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003618/0.3437, allocations: 254.5 kB / 373.6 MB, free: 6.172 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.237e-05/0.3437, allocations: 25.7 kB / 373.6 MB, free: 6.141 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001083/0.3438, allocations: 174.4 kB / 373.8 MB, free: 5.969 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.748e-05/0.3439, allocations: 27.64 kB / 373.8 MB, free: 5.941 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.218e-06/0.3439, allocations: 0 / 373.8 MB, free: 5.941 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.344, allocations: 318.8 kB / 374.1 MB, free: 5.621 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001182/0.3441, allocations: 27.98 kB / 374.1 MB, free: 5.594 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001396/0.3443, allocations: 48.8 kB / 374.2 MB, free: 5.543 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001585/0.3445, allocations: 69.62 kB / 374.3 MB, free: 5.469 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.3445, allocations: 0 / 374.3 MB, free: 5.469 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004118/0.3449, allocations: 155.2 kB / 374.4 MB, free: 5.305 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.257e-05/0.345, allocations: 37.69 kB / 374.4 MB, free: 5.262 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.345, allocations: 0 / 374.4 MB, free: 5.262 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.702e-05/0.345, allocations: 11.97 kB / 374.5 MB, free: 5.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001506/0.3452, allocations: 12 kB / 374.5 MB, free: 5.238 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.103e-06/0.3452, allocations: 0 / 374.5 MB, free: 5.238 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001047/0.3453, allocations: 7.984 kB / 374.5 MB, free: 5.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.145e-05/0.3454, allocations: 8 kB / 374.5 MB, free: 5.223 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.0001623/0.3455, allocations: 133.8 kB / 374.6 MB, free: 5.082 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.494e-05/0.3456, allocations: 19.77 kB / 374.6 MB, free: 5.062 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.033e-05/0.3457, allocations: 17.41 kB / 374.7 MB, free: 5.051 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.3457, allocations: 7.938 kB / 374.7 MB, free: 5.043 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.3457, allocations: 384 / 374.7 MB, free: 5.043 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.3457, allocations: 3.984 kB / 374.7 MB, free: 5.039 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007455/0.3465, allocations: 407.4 kB / 375.1 MB, free: 4.582 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.3465, allocations: 3.938 kB / 375.1 MB, free: 4.578 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.757e-05/0.3466, allocations: 11.94 kB / 375.1 MB, free: 4.566 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.111e-06/0.3466, allocations: 0 / 375.1 MB, free: 4.566 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.152e-05/0.3466, allocations: 11.98 kB / 375.1 MB, free: 4.555 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.679e-06/0.3466, allocations: 4.031 kB / 375.1 MB, free: 4.551 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.3466, allocations: 0 / 375.1 MB, free: 4.551 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003673/0.347, allocations: 200.2 kB / 375.3 MB, free: 4.336 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.881e-05/0.3471, allocations: 100.9 kB / 375.4 MB, free: 4.219 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.728e-05/0.3472, allocations: 4 kB / 375.4 MB, free: 4.215 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001121/0.3473, allocations: 4 kB / 375.4 MB, free: 4.211 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.117e-05/0.3474, allocations: 11.98 kB / 375.4 MB, free: 4.199 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.35e-05/0.3474, allocations: 4 kB / 375.4 MB, free: 4.195 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002535/0.3477, allocations: 184.5 kB / 375.6 MB, free: 4.016 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.6e-07/0.3477, allocations: 3.938 kB / 375.6 MB, free: 4.012 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003693/0.3481, allocations: 35.98 kB / 375.6 MB, free: 3.977 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.00204/0.3501, allocations: 1.086 MB / 376.7 MB, free: 2.941 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004656/0.3506, allocations: 151.3 kB / 376.9 MB, free: 2.781 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.509e-06/0.3507, allocations: 0 / 376.9 MB, free: 2.781 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001236/0.3508, allocations: 27.94 kB / 376.9 MB, free: 2.754 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003701/0.3512, allocations: 32.02 kB / 376.9 MB, free: 2.723 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001213/0.3524, allocations: 0.58 MB / 377.5 MB, free: 2.086 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003763/0.3528, allocations: 0.716 MB / 378.2 MB, free: 1.344 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000109/0.3529, allocations: 43.42 kB / 378.3 MB, free: 1.301 MB / 298.7 MB Notification: Performance of SimCode: time 1.462e-06/0.353, allocations: 0 / 378.3 MB, free: 1.301 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.581/2.934, allocations: 2.675 MB / 380.9 MB, free: 14.62 MB / 314.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test47_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test47_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test47_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test47_res.mat failed! Error: Could not read variable t_new.DBL_MAX in file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test47_res.mat. Warning: Get data of variable t_new.DBL_MAX from file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test47_res.mat failed! Error: Could not read variable t_new.tableID.id in file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test47_res.mat. Warning: Get data of variable t_new.tableID.id from file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test47_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.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.timeScale,t_new.timeScaled,t_new.verboseRead,t_new.y[1],time