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.Test8.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.Test8,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test8",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.015/2.015, allocations: 209.2 MB / 224.8 MB, free: 1.473 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006137/0.0006139, allocations: 16 kB / 282.6 MB, free: 9.707 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1041, allocations: 48.71 MB / 331.3 MB, free: 8.91 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test8): time 0.002369/0.1065, allocations: 1.294 MB / 332.6 MB, free: 7.605 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001069/0.1077, allocations: 416.7 kB / 333 MB, free: 7.195 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.342e-05/0.1077, allocations: 3.938 kB / 333 MB, free: 7.191 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003576/0.1081, allocations: 87.8 kB / 333.1 MB, free: 7.105 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002147/0.1083, allocations: 63.84 kB / 333.1 MB, free: 7.043 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002413/0.1086, allocations: 55.8 kB / 333.2 MB, free: 6.988 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001865/0.1088, allocations: 79.83 kB / 333.3 MB, free: 6.91 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.476e-05/0.1089, allocations: 19.97 kB / 333.3 MB, free: 6.891 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.988e-05/0.109, allocations: 35.89 kB / 333.3 MB, free: 6.855 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001279/0.1092, allocations: 55.81 kB / 333.4 MB, free: 6.801 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.841e-05/0.1092, allocations: 0 / 333.4 MB, free: 6.801 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001307/0.1093, allocations: 31.94 kB / 333.4 MB, free: 6.77 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.701e-05/0.1094, allocations: 27.91 kB / 333.4 MB, free: 6.742 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.23e-05/0.1095, allocations: 37.64 kB / 333.5 MB, free: 6.699 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002209/0.1097, allocations: 92.09 kB / 333.6 MB, free: 6.609 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.344e-06/0.1097, allocations: 4 kB / 333.6 MB, free: 6.605 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1097, allocations: 0 / 333.6 MB, free: 6.605 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.189e-06/0.1097, allocations: 4 kB / 333.6 MB, free: 6.602 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.000594/0.1104, allocations: 436.5 kB / 334 MB, free: 6.121 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.1104, allocations: 8.031 kB / 334 MB, free: 6.113 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.273e-05/0.1105, allocations: 30.56 kB / 334 MB, free: 6.074 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.315e-05/0.1105, allocations: 11.91 kB / 334 MB, free: 6.062 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002634/0.1108, allocations: 210.8 kB / 334.3 MB, free: 5.816 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.429e-05/0.1108, allocations: 4 kB / 334.3 MB, free: 5.812 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.439e-05/0.1109, allocations: 8 kB / 334.3 MB, free: 5.805 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000152/0.111, allocations: 53.61 kB / 334.3 MB, free: 5.746 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.111, allocations: 3.938 kB / 334.3 MB, free: 5.742 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.079e-05/0.1111, allocations: 0 / 334.3 MB, free: 5.742 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.894e-06/0.1111, allocations: 4 kB / 334.3 MB, free: 5.738 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.149e-05/0.1112, allocations: 15.98 kB / 334.3 MB, free: 5.723 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004751/0.1117, allocations: 300.8 kB / 334.6 MB, free: 5.379 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001378/0.1118, allocations: 46.67 kB / 334.7 MB, free: 5.324 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.751e-05/0.1119, allocations: 7.922 kB / 334.7 MB, free: 5.316 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001862/0.1121, allocations: 59.41 kB / 334.7 MB, free: 5.246 MB / 282.7 MB Notification: Performance of pre-optimization done (n=5): time 1.704e-06/0.1121, allocations: 0 / 334.7 MB, free: 5.246 MB / 282.7 MB Notification: Performance of matching and sorting (n=6): time 0.0005467/0.1126, allocations: 137.2 kB / 334.9 MB, free: 5.105 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.129e-05/0.1127, allocations: 51.41 kB / 334.9 MB, free: 5.043 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003206/0.113, allocations: 242.6 kB / 335.2 MB, free: 4.793 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.36e-05/0.1131, allocations: 25.7 kB / 335.2 MB, free: 4.762 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.506e-05/0.1132, allocations: 170.5 kB / 335.4 MB, free: 4.594 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.376e-05/0.1132, allocations: 19.73 kB / 335.4 MB, free: 4.574 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.418e-06/0.1132, allocations: 4 kB / 335.4 MB, free: 4.57 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.1133, allocations: 314.8 kB / 335.7 MB, free: 4.254 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.564e-05/0.1134, allocations: 23.98 kB / 335.7 MB, free: 4.23 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.156e-05/0.1135, allocations: 23.98 kB / 335.7 MB, free: 4.207 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001053/0.1136, allocations: 57.64 kB / 335.8 MB, free: 4.145 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1136, allocations: 4 kB / 335.8 MB, free: 4.141 MB / 282.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002707/0.1139, allocations: 127.3 kB / 335.9 MB, free: 4.004 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.431e-05/0.114, allocations: 37.69 kB / 336 MB, free: 3.961 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.401e-06/0.114, allocations: 0 / 336 MB, free: 3.961 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/0.114, allocations: 448 / 336 MB, free: 3.961 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001063/0.1141, allocations: 8 kB / 336 MB, free: 3.953 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.1142, allocations: 0 / 336 MB, free: 3.953 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.68e-05/0.1142, allocations: 8 kB / 336 MB, free: 3.945 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.493e-05/0.1143, allocations: 16.03 kB / 336 MB, free: 3.93 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 (8): * Single equations (assignments): 7 * 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.0001394/0.1144, allocations: 137.7 kB / 336.1 MB, free: 3.785 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.941e-05/0.1145, allocations: 15.81 kB / 336.1 MB, free: 3.77 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.441e-05/0.1145, allocations: 13.41 kB / 336.2 MB, free: 3.758 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/0.1146, allocations: 4 kB / 336.2 MB, free: 3.754 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.1146, allocations: 0 / 336.2 MB, free: 3.754 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.1146, allocations: 0 / 336.2 MB, free: 3.754 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004935/0.1151, allocations: 358.5 kB / 336.5 MB, free: 3.348 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.1151, allocations: 4 kB / 336.5 MB, free: 3.344 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.7e-05/0.1152, allocations: 7.938 kB / 336.5 MB, free: 3.336 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.586e-06/0.1152, allocations: 4 kB / 336.5 MB, free: 3.332 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.824e-05/0.1152, allocations: 11.98 kB / 336.5 MB, free: 3.32 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.1152, allocations: 0 / 336.5 MB, free: 3.32 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.1152, allocations: 0 / 336.5 MB, free: 3.32 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002512/0.1155, allocations: 179.3 kB / 336.7 MB, free: 3.129 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.034e-05/0.1156, allocations: 92.98 kB / 336.8 MB, free: 3.02 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.238e-05/0.1156, allocations: 4 kB / 336.8 MB, free: 3.016 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.605e-05/0.1157, allocations: 4 kB / 336.8 MB, free: 3.012 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.062e-05/0.1158, allocations: 4 kB / 336.8 MB, free: 3.008 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.265e-05/0.1158, allocations: 7.984 kB / 336.8 MB, free: 3 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002099/0.116, allocations: 171.2 kB / 337 MB, free: 2.832 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.116, allocations: 0 / 337 MB, free: 2.832 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003409/0.1164, allocations: 31.98 kB / 337 MB, free: 2.801 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 (6): * Single equations (assignments): 5 * 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.00145/0.1178, allocations: 0.9852 MB / 338 MB, free: 1.879 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002643/0.1181, allocations: 111.4 kB / 338.1 MB, free: 1.758 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1181, allocations: 3.938 kB / 338.1 MB, free: 1.754 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 7.276e-05/0.1182, allocations: 19.98 kB / 338.1 MB, free: 1.734 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003086/0.1186, allocations: 16.17 kB / 338.2 MB, free: 1.719 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009966/0.1196, allocations: 0.5295 MB / 338.7 MB, free: 1.133 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003233/0.1199, allocations: 0.7199 MB / 339.4 MB, free: 396 kB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.305e-05/0.12, allocations: 35.42 kB / 339.4 MB, free: 360 kB / 282.7 MB Notification: Performance of SimCode: time 1.222e-06/0.12, allocations: 0 / 339.4 MB, free: 360 kB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.063/3.183, allocations: 2.475 MB / 341.9 MB, free: 14.66 MB / 282.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test8_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test8_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test8_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test8_res.mat failed! Error: Could not read variable t_new.tableID.id in file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test8_res.mat. Warning: Get data of variable t_new.tableID.id from file ModelicaTest_3.2.1_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),t_new.columns[1],t_new.columns[2],t_new.extrapolation,t_new.nextTimeEvent,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_min,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.verboseRead,t_new.y[1],t_new.y[2],time