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.Test31.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.Test31,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test31",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.967/1.967, allocations: 209.3 MB / 224.8 MB, free: 288 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006394/0.0006394, allocations: 19.98 kB / 282.6 MB, free: 9.535 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.409/0.4096, allocations: 48.7 MB / 331.3 MB, free: 6.484 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test31): time 0.002345/0.412, allocations: 1.293 MB / 332.6 MB, free: 5.836 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009864/0.4131, allocations: 417.3 kB / 333 MB, free: 5.562 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.74e-05/0.4132, allocations: 1.562 kB / 333 MB, free: 5.562 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000279/0.4135, allocations: 24.5 kB / 333 MB, free: 5.551 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001948/0.4137, allocations: 34.28 kB / 333 MB, free: 5.531 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003234/0.414, allocations: 62.91 kB / 333.1 MB, free: 5.496 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001684/0.4142, allocations: 52.86 kB / 333.2 MB, free: 5.473 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001133/0.4143, allocations: 9.531 kB / 333.2 MB, free: 5.469 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.991e-05/0.4144, allocations: 23.86 kB / 333.2 MB, free: 5.461 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.481e-05/0.4145, allocations: 26.05 kB / 333.2 MB, free: 5.449 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.8e-05/0.4145, allocations: 2.719 kB / 333.2 MB, free: 5.449 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001409/0.4147, allocations: 29.09 kB / 333.2 MB, free: 5.445 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.845e-05/0.4147, allocations: 17.73 kB / 333.3 MB, free: 5.438 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.186e-05/0.4148, allocations: 40.58 kB / 333.3 MB, free: 5.395 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002227/0.415, allocations: 80.06 kB / 333.4 MB, free: 5.375 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.4151, allocations: 0 / 333.4 MB, free: 5.375 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.4151, allocations: 0 / 333.4 MB, free: 5.375 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.588e-06/0.4151, allocations: 1.688 kB / 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.0004896/0.4156, allocations: 400.6 kB / 333.8 MB, free: 4.961 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.913e-05/0.4156, allocations: 18.78 kB / 333.8 MB, free: 4.953 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.62e-05/0.4157, allocations: 31.31 kB / 333.8 MB, free: 4.914 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.83e-05/0.4157, allocations: 8.062 kB / 333.8 MB, free: 4.91 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002119/0.416, allocations: 198.7 kB / 334 MB, free: 4.695 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.829e-06/0.416, allocations: 1.281 kB / 334 MB, free: 4.695 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.634e-05/0.416, allocations: 2.812 kB / 334 MB, free: 4.695 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000134/0.4162, allocations: 48.45 kB / 334.1 MB, free: 4.656 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/0.4162, allocations: 0 / 334.1 MB, free: 4.656 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.188e-05/0.4162, allocations: 4 kB / 334.1 MB, free: 4.652 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.06e-06/0.4162, allocations: 1.5 kB / 334.1 MB, free: 4.652 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.486e-05/0.4163, allocations: 13.64 kB / 334.1 MB, free: 4.648 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003642/0.4167, allocations: 281.9 kB / 334.4 MB, free: 4.359 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002178/0.4169, allocations: 43.88 kB / 334.4 MB, free: 4.328 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.057e-05/0.4169, allocations: 1.312 kB / 334.4 MB, free: 4.328 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001641/0.4171, allocations: 54.2 kB / 334.5 MB, free: 4.277 MB / 266.7 MB Notification: Performance of pre-optimization done (n=4): time 2.004e-06/0.4171, allocations: 0 / 334.5 MB, free: 4.277 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.0004757/0.4176, allocations: 120.1 kB / 334.6 MB, free: 4.207 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.934e-05/0.4177, allocations: 56.73 kB / 334.6 MB, free: 4.141 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000208/0.4179, allocations: 174.9 kB / 334.8 MB, free: 4.02 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.974e-05/0.418, allocations: 31.2 kB / 334.8 MB, free: 3.984 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.982e-05/0.418, allocations: 161.7 kB / 335 MB, free: 3.828 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.799e-05/0.4181, allocations: 15.33 kB / 335 MB, free: 3.816 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.913e-06/0.4181, allocations: 1.406 kB / 335 MB, free: 3.816 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.153e-05/0.4181, allocations: 317.6 kB / 335.3 MB, free: 3.5 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.27e-05/0.4182, allocations: 15.58 kB / 335.3 MB, free: 3.496 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.053e-05/0.4183, allocations: 25.05 kB / 335.4 MB, free: 3.484 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.314e-05/0.4184, allocations: 46.42 kB / 335.4 MB, free: 3.445 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.4184, allocations: 0 / 335.4 MB, free: 3.445 MB / 266.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002214/0.4186, allocations: 112.9 kB / 335.5 MB, free: 3.363 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.914e-05/0.4187, allocations: 37.83 kB / 335.6 MB, free: 3.328 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.4187, allocations: 0 / 335.6 MB, free: 3.328 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.707e-05/0.4187, allocations: 1.406 kB / 335.6 MB, free: 3.328 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.842e-05/0.4188, allocations: 14.22 kB / 335.6 MB, free: 3.324 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.186e-06/0.4188, allocations: 0 / 335.6 MB, free: 3.324 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.873e-05/0.4189, allocations: 11.56 kB / 335.6 MB, free: 3.316 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.448e-05/0.4189, allocations: 10.41 kB / 335.6 MB, free: 3.309 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.0001034/0.419, allocations: 124.5 kB / 335.7 MB, free: 3.188 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.247e-05/0.4191, allocations: 7.812 kB / 335.7 MB, free: 3.184 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.818e-05/0.4191, allocations: 14.09 kB / 335.7 MB, free: 3.172 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.4192, allocations: 1.75 kB / 335.7 MB, free: 3.172 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.4192, allocations: 0 / 335.7 MB, free: 3.172 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.4192, allocations: 1.734 kB / 335.7 MB, free: 3.172 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003935/0.4196, allocations: 335.4 kB / 336.1 MB, free: 2.848 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.4196, allocations: 4 kB / 336.1 MB, free: 2.844 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.346e-05/0.4197, allocations: 10.02 kB / 336.1 MB, free: 2.84 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.349e-06/0.4197, allocations: 2.328 kB / 336.1 MB, free: 2.84 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.202e-05/0.4197, allocations: 4.609 kB / 336.1 MB, free: 2.836 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.4197, allocations: 1.375 kB / 336.1 MB, free: 2.836 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.4197, allocations: 3.953 kB / 336.1 MB, free: 2.832 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001824/0.4199, allocations: 164.5 kB / 336.3 MB, free: 2.688 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.493e-05/0.42, allocations: 84.36 kB / 336.3 MB, free: 2.59 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.924e-05/0.42, allocations: 5.812 kB / 336.3 MB, free: 2.586 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.628e-05/0.4201, allocations: 2.984 kB / 336.3 MB, free: 2.586 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.761e-05/0.4201, allocations: 4.438 kB / 336.4 MB, free: 2.586 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.938e-05/0.4202, allocations: 5.328 kB / 336.4 MB, free: 2.582 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001297/0.4203, allocations: 131.8 kB / 336.5 MB, free: 2.492 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.4203, allocations: 0 / 336.5 MB, free: 2.492 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003499/0.4207, allocations: 29.38 kB / 336.5 MB, free: 2.484 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.001286/0.422, allocations: 0.974 MB / 337.5 MB, free: 1.672 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002427/0.4223, allocations: 103 kB / 337.6 MB, free: 1.594 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.808e-06/0.4223, allocations: 0 / 337.6 MB, free: 1.594 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.194e-05/0.4223, allocations: 24.12 kB / 337.6 MB, free: 1.582 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003162/0.4227, allocations: 19.38 kB / 337.6 MB, free: 1.574 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007875/0.4235, allocations: 455.9 kB / 338.1 MB, free: 1.164 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000172/0.4237, allocations: 0.6989 MB / 338.8 MB, free: 480 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.153e-05/0.4237, allocations: 23.67 kB / 338.8 MB, free: 464 kB / 266.7 MB Notification: Performance of SimCode: time 2.204e-06/0.4238, allocations: 1.094 kB / 338.8 MB, free: 464 kB / 266.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.586/3.01, allocations: 2.084 MB / 340.9 MB, free: 15.63 MB / 282.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test31_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test31_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test31_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test31_res.mat failed! Error: Could not read variable t_new.tableID.id in file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test31_res.mat. Warning: Get data of variable t_new.tableID.id from file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test31_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[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