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.Test8.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.Test8,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test8",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.264/2.264, allocations: 234.9 MB / 250.4 MB, free: 9.707 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005306/0.0005306, allocations: 19.98 kB / 314.4 MB, free: 9.648 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3739/0.3744, allocations: 54.86 MB / 369.3 MB, free: 12.78 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test8): time 0.003291/0.3778, allocations: 1.353 MB / 370.6 MB, free: 11.4 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.009845/0.3877, allocations: 0.7202 MB / 371.3 MB, free: 10.68 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.506e-05/0.3878, allocations: 0 / 371.3 MB, free: 10.68 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004674/0.3883, allocations: 91.73 kB / 371.4 MB, free: 10.59 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003076/0.3886, allocations: 67.83 kB / 371.5 MB, free: 10.52 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002931/0.389, allocations: 51.83 kB / 371.6 MB, free: 10.47 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002813/0.3893, allocations: 91.81 kB / 371.6 MB, free: 10.38 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001092/0.3894, allocations: 8 kB / 371.7 MB, free: 10.37 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001538/0.3896, allocations: 51.83 kB / 371.7 MB, free: 10.32 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001824/0.3898, allocations: 59.86 kB / 371.8 MB, free: 10.26 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.535e-05/0.3898, allocations: 0 / 371.8 MB, free: 10.26 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001489/0.39, allocations: 23.94 kB / 371.8 MB, free: 10.24 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.199e-05/0.3901, allocations: 31.84 kB / 371.8 MB, free: 10.21 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.63e-05/0.3902, allocations: 45.64 kB / 371.9 MB, free: 10.16 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002893/0.3905, allocations: 100.8 kB / 372 MB, free: 10.06 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.3905, allocations: 0 / 372 MB, free: 10.06 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3905, allocations: 0 / 372 MB, free: 10.06 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.698e-06/0.3905, allocations: 0 / 372 MB, free: 10.06 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0008239/0.3913, allocations: 478.1 kB / 372.4 MB, free: 9.531 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.957e-05/0.3914, allocations: 8.031 kB / 372.4 MB, free: 9.523 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.563e-05/0.3915, allocations: 42.55 kB / 372.5 MB, free: 9.473 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.18e-05/0.3916, allocations: 11.81 kB / 372.5 MB, free: 9.461 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004706/0.3963, allocations: 210.8 kB / 372.7 MB, free: 9.215 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.693e-05/0.3963, allocations: 4 kB / 372.7 MB, free: 9.211 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.686e-05/0.3964, allocations: 4 kB / 372.7 MB, free: 9.207 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00028/0.3967, allocations: 61.61 kB / 372.8 MB, free: 9.141 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.327e-05/0.3967, allocations: 0 / 372.8 MB, free: 9.141 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.297e-05/0.3967, allocations: 15.89 kB / 372.8 MB, free: 9.125 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.3968, allocations: 0 / 372.8 MB, free: 9.125 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001772/0.397, allocations: 31.97 kB / 372.8 MB, free: 9.094 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006369/0.3976, allocations: 312.8 kB / 373.1 MB, free: 8.738 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003796/0.398, allocations: 78.61 kB / 373.2 MB, free: 8.652 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.129e-05/0.3981, allocations: 4 kB / 373.2 MB, free: 8.648 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003037/0.3984, allocations: 79.23 kB / 373.3 MB, free: 8.559 MB / 298.7 MB Notification: Performance of pre-optimization done (n=7): time 4.449e-06/0.3984, allocations: 7.984 kB / 373.3 MB, free: 8.551 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.001095/0.3995, allocations: 217.1 kB / 373.5 MB, free: 8.332 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.294e-05/0.3996, allocations: 51.41 kB / 373.5 MB, free: 8.27 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004626/0.4001, allocations: 244.1 kB / 373.8 MB, free: 8.023 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.878e-05/0.4001, allocations: 33.7 kB / 373.8 MB, free: 7.984 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001266/0.4003, allocations: 174.4 kB / 374 MB, free: 7.812 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.16e-05/0.4003, allocations: 31.55 kB / 374 MB, free: 7.781 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.29e-05/0.4004, allocations: 0 / 374 MB, free: 7.781 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001674/0.4006, allocations: 318.8 kB / 374.3 MB, free: 7.461 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001839/0.4007, allocations: 31.98 kB / 374.4 MB, free: 7.43 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002094/0.401, allocations: 57.69 kB / 374.4 MB, free: 7.367 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002349/0.4012, allocations: 65.7 kB / 374.5 MB, free: 7.297 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.4012, allocations: 0 / 374.5 MB, free: 7.297 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005893/0.4018, allocations: 171.2 kB / 374.6 MB, free: 7.117 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.84e-05/0.4019, allocations: 38.48 kB / 374.7 MB, free: 7.074 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.402, allocations: 0 / 374.7 MB, free: 7.074 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.589e-05/0.402, allocations: 0 / 374.7 MB, free: 7.074 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002058/0.4022, allocations: 19.98 kB / 374.7 MB, free: 7.055 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.4022, allocations: 3.938 kB / 374.7 MB, free: 7.051 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001286/0.4024, allocations: 4 kB / 374.7 MB, free: 7.047 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.827e-05/0.4024, allocations: 12.03 kB / 374.7 MB, free: 7.035 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 (12): * Single equations (assignments): 11 * 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.0002102/0.4026, allocations: 139.7 kB / 374.9 MB, free: 6.891 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.433e-05/0.4027, allocations: 19.77 kB / 374.9 MB, free: 6.871 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.396e-05/0.4028, allocations: 21.39 kB / 374.9 MB, free: 6.855 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.4028, allocations: 0 / 374.9 MB, free: 6.855 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.4028, allocations: 0 / 374.9 MB, free: 6.855 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.4029, allocations: 0 / 374.9 MB, free: 6.855 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009724/0.4038, allocations: 431.2 kB / 375.3 MB, free: 6.375 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.4116, allocations: 0 / 375.3 MB, free: 6.375 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001042/0.4117, allocations: 12 kB / 375.3 MB, free: 6.363 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.4117, allocations: 192 / 375.3 MB, free: 6.363 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.753e-05/0.4118, allocations: 0 / 375.3 MB, free: 6.363 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.291e-06/0.4118, allocations: 7.938 kB / 375.3 MB, free: 6.355 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.4118, allocations: 0 / 375.3 MB, free: 6.355 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005252/0.4123, allocations: 224.2 kB / 375.6 MB, free: 6.117 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001398/0.4125, allocations: 104.9 kB / 375.7 MB, free: 5.996 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.779e-05/0.4125, allocations: 0 / 375.7 MB, free: 5.996 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001786/0.4127, allocations: 8 kB / 375.7 MB, free: 5.988 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.722e-05/0.4128, allocations: 7.984 kB / 375.7 MB, free: 5.98 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.877e-05/0.4129, allocations: 4 kB / 375.7 MB, free: 5.977 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003175/0.4132, allocations: 180.4 kB / 375.9 MB, free: 5.801 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.4132, allocations: 0 / 375.9 MB, free: 5.801 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006359/0.4138, allocations: 35.98 kB / 375.9 MB, free: 5.766 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 (9): * Single equations (assignments): 7 * 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.002228/0.4161, allocations: 1.101 MB / 377 MB, free: 4.727 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005344/0.4167, allocations: 167.2 kB / 377.2 MB, free: 4.551 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.878e-06/0.4167, allocations: 0 / 377.2 MB, free: 4.551 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001349/0.4168, allocations: 31.98 kB / 377.2 MB, free: 4.52 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003519/0.4172, allocations: 28.08 kB / 377.2 MB, free: 4.492 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001131/0.4183, allocations: 0.5759 MB / 377.8 MB, free: 3.859 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003683/0.4187, allocations: 0.7199 MB / 378.5 MB, free: 3.113 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001101/0.4189, allocations: 43.42 kB / 378.6 MB, free: 3.07 MB / 298.7 MB Notification: Performance of SimCode: time 7.22e-07/0.4189, allocations: 3.938 kB / 378.6 MB, free: 3.066 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.507/2.926, allocations: 2.746 MB / 381.3 MB, free: 328 kB / 298.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test8_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test8_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test8_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test8_res.mat failed! Error: Could not read variable t_new.DBL_MAX in file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test8_res.mat. Warning: Get data of variable t_new.DBL_MAX from file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test8_res.mat failed! Error: Could not read variable t_new.tableID.id in file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test8_res.mat. Warning: Get data of variable t_new.tableID.id from file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test8_res.mat failed! " Variables in the reference:time,t_new.nextTimeEvent,t_new.y[1],t_new.y[2],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.columns[2],t_new.extrapolation,t_new.nextTimeEvent,t_new.nextTimeEventScaled,t_new.nout,t_new.offset[1],t_new.p_offset[1],t_new.p_offset[2],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[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.timeScale,t_new.timeScaled,t_new.verboseRead,t_new.y[1],t_new.y[2],time