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.Test37.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.Test37,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test37",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.044/2.044, allocations: 209.2 MB / 224.8 MB, free: 1.473 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006857/0.000686, allocations: 16 kB / 282.6 MB, free: 9.707 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.108, allocations: 48.71 MB / 331.3 MB, free: 8.902 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test37): time 0.002498/0.1106, allocations: 1.267 MB / 332.6 MB, free: 7.625 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001113/0.1117, allocations: 392.8 kB / 332.9 MB, free: 7.238 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.426e-05/0.1119, allocations: 0 / 332.9 MB, free: 7.238 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004066/0.1123, allocations: 59.8 kB / 333 MB, free: 7.18 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002276/0.1126, allocations: 39.89 kB / 333 MB, free: 7.141 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002878/0.1129, allocations: 55.8 kB / 333.1 MB, free: 7.086 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001693/0.113, allocations: 51.92 kB / 333.1 MB, free: 7.035 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.072e-05/0.1131, allocations: 7.984 kB / 333.1 MB, free: 7.027 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.264e-05/0.1132, allocations: 23.92 kB / 333.2 MB, free: 7.004 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001101/0.1133, allocations: 39.83 kB / 333.2 MB, free: 6.965 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.58e-05/0.1134, allocations: 0 / 333.2 MB, free: 6.965 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001222/0.1135, allocations: 23.98 kB / 333.2 MB, free: 6.941 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.826e-05/0.1136, allocations: 11.98 kB / 333.2 MB, free: 6.93 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.976e-05/0.1136, allocations: 37.64 kB / 333.3 MB, free: 6.887 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001956/0.1138, allocations: 68.14 kB / 333.3 MB, free: 6.82 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.445e-06/0.1139, allocations: 0 / 333.3 MB, free: 6.82 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.913e-06/0.1139, allocations: 0 / 333.3 MB, free: 6.82 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.508e-06/0.1139, allocations: 0 / 333.3 MB, free: 6.82 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0005628/0.1145, allocations: 400.7 kB / 333.7 MB, free: 6.375 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.654e-05/0.1145, allocations: 8.031 kB / 333.7 MB, free: 6.367 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.194e-05/0.1146, allocations: 34.56 kB / 333.8 MB, free: 6.324 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.991e-05/0.1146, allocations: 7.906 kB / 333.8 MB, free: 6.316 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002632/0.1149, allocations: 202.8 kB / 334 MB, free: 6.078 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.666e-06/0.1149, allocations: 0 / 334 MB, free: 6.078 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.16e-05/0.1149, allocations: 4 kB / 334 MB, free: 6.074 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001195/0.1151, allocations: 37.69 kB / 334 MB, free: 6.031 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.426e-06/0.1151, allocations: 0 / 334 MB, free: 6.031 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.02e-05/0.1151, allocations: 0 / 334 MB, free: 6.031 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.1151, allocations: 0 / 334 MB, free: 6.031 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.65e-05/0.1152, allocations: 15.98 kB / 334 MB, free: 6.016 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002216/0.1154, allocations: 177.6 kB / 334.2 MB, free: 5.793 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.393e-05/0.1155, allocations: 30.5 kB / 334.2 MB, free: 5.754 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.622e-05/0.1156, allocations: 8 kB / 334.3 MB, free: 5.746 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000164/0.1158, allocations: 51.41 kB / 334.3 MB, free: 5.684 MB / 282.7 MB Notification: Performance of pre-optimization done (n=3): time 1.684e-06/0.1158, allocations: 0 / 334.3 MB, free: 5.684 MB / 282.7 MB Notification: Performance of matching and sorting (n=3): time 0.000238/0.116, allocations: 69.52 kB / 334.4 MB, free: 5.609 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.081e-05/0.1161, allocations: 55.41 kB / 334.4 MB, free: 5.543 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002594/0.1163, allocations: 173.4 kB / 334.6 MB, free: 5.367 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.405e-05/0.1164, allocations: 25.7 kB / 334.6 MB, free: 5.336 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.82e-05/0.1165, allocations: 154.6 kB / 334.8 MB, free: 5.184 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.877e-05/0.1165, allocations: 11.91 kB / 334.8 MB, free: 5.172 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.72e-06/0.1165, allocations: 0 / 334.8 MB, free: 5.172 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.1167, allocations: 318.8 kB / 335.1 MB, free: 4.852 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.158e-05/0.1167, allocations: 12 kB / 335.1 MB, free: 4.84 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.128e-05/0.1168, allocations: 20 kB / 335.1 MB, free: 4.82 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.979e-05/0.1169, allocations: 41.69 kB / 335.2 MB, free: 4.773 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.1169, allocations: 0 / 335.2 MB, free: 4.773 MB / 282.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002132/0.1171, allocations: 111.3 kB / 335.3 MB, free: 4.652 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.757e-05/0.1172, allocations: 29.7 kB / 335.3 MB, free: 4.617 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.1172, allocations: 4 kB / 335.3 MB, free: 4.613 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.1172, allocations: 3.938 kB / 335.3 MB, free: 4.609 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.847e-05/0.1173, allocations: 7.984 kB / 335.3 MB, free: 4.602 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.1173, allocations: 0 / 335.3 MB, free: 4.602 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.587e-05/0.1174, allocations: 7.938 kB / 335.3 MB, free: 4.594 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.071e-05/0.1174, allocations: 4 kB / 335.3 MB, free: 4.59 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 (5): * Single equations (assignments): 4 * 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.0001219/0.1176, allocations: 121.8 kB / 335.4 MB, free: 4.461 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.181e-05/0.1176, allocations: 7.906 kB / 335.5 MB, free: 4.453 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.161e-05/0.1177, allocations: 16.23 kB / 335.5 MB, free: 4.43 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.1177, allocations: 4.125 kB / 335.5 MB, free: 4.426 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.1177, allocations: 128 / 335.5 MB, free: 4.426 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.124e-06/0.1177, allocations: 7.984 kB / 335.5 MB, free: 4.418 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001762/0.1179, allocations: 173.6 kB / 335.7 MB, free: 4.199 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.1179, allocations: 4 kB / 335.7 MB, free: 4.195 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.637e-05/0.1179, allocations: 7.984 kB / 335.7 MB, free: 4.188 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.118, allocations: 0 / 335.7 MB, free: 4.188 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.167e-06/0.118, allocations: 0 / 335.7 MB, free: 4.188 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.118, allocations: 4 kB / 335.7 MB, free: 4.184 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.118, allocations: 0 / 335.7 MB, free: 4.184 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001664/0.1182, allocations: 84.91 kB / 335.8 MB, free: 4.082 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.307e-05/0.1183, allocations: 92.95 kB / 335.8 MB, free: 3.973 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.578e-05/0.1183, allocations: 0 / 335.8 MB, free: 3.973 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.595e-05/0.1183, allocations: 8 kB / 335.9 MB, free: 3.965 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.455e-05/0.1184, allocations: 0 / 335.9 MB, free: 3.965 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.704e-05/0.1184, allocations: 4 kB / 335.9 MB, free: 3.961 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001473/0.1186, allocations: 127.8 kB / 336 MB, free: 3.836 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.1186, allocations: 0 / 336 MB, free: 3.836 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000286/0.1189, allocations: 23.98 kB / 336 MB, free: 3.812 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 (3): * Single equations (assignments): 2 * 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.001271/0.1202, allocations: 0.8434 MB / 336.8 MB, free: 3.02 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002616/0.1205, allocations: 91.38 kB / 336.9 MB, free: 2.918 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.561e-06/0.1205, allocations: 4 kB / 336.9 MB, free: 2.914 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 4.267e-05/0.1205, allocations: 4 kB / 336.9 MB, free: 2.91 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002519/0.1208, allocations: 15.98 kB / 337 MB, free: 2.895 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007795/0.1216, allocations: 433.3 kB / 337.4 MB, free: 2.418 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003125/0.1219, allocations: 0.6926 MB / 338.1 MB, free: 1.699 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.576e-05/0.122, allocations: 27.42 kB / 338.1 MB, free: 1.672 MB / 282.7 MB Notification: Performance of SimCode: time 7.22e-07/0.122, allocations: 0 / 338.1 MB, free: 1.672 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.94/3.062, allocations: 1.863 MB / 340 MB, free: 15.18 MB / 282.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test37_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test37_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test37_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test37_res.mat failed! Error: Could not read variable t_new.tableID.id in file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test37_res.mat. Warning: Get data of variable t_new.tableID.id from file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test37_res.mat failed! " Variables in the reference:time,t_new.nextTimeEvent,t_new.y[1] Variables in the result: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[2,1],t_new.table[2,2],t_new.table[3,1],t_new.table[3,2],t_new.verboseRead,t_new.y[1],time