Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.074/2.074, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.44e-05/3.423e-05, allocations: 5.406 kB / 292.2 MB, free: 8.715 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1103, allocations: 50.41 MB / 342.6 MB, free: 6.289 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4373/0.5476, allocations: 81.57 MB / 424.2 MB, free: 12.23 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003013/0.548, allocations: 86.61 kB / 424.3 MB, free: 12.18 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02788/0.5759, allocations: 6.182 MB / 430.5 MB, free: 6.98 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.5759, allocations: 0 / 430.5 MB, free: 6.98 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.31e-05/0.576, allocations: 4 kB / 430.5 MB, free: 6.977 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0008053/0.5768, allocations: 0.4987 MB / 431 MB, free: 6.441 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.751e-05/0.5769, allocations: 8.031 kB / 431 MB, free: 6.434 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.966e-05/0.5769, allocations: 41.67 kB / 431 MB, free: 6.387 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.631e-05/0.577, allocations: 23.72 kB / 431 MB, free: 6.363 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006263/0.5777, allocations: 297.1 kB / 431.3 MB, free: 6.055 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.595e-05/0.5777, allocations: 7.312 kB / 431.3 MB, free: 6.051 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.679e-05/0.5777, allocations: 7.438 kB / 431.4 MB, free: 6.047 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004299/0.5782, allocations: 167.7 kB / 431.5 MB, free: 5.879 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.41e-05/0.5782, allocations: 4 kB / 431.5 MB, free: 5.875 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.211e-05/0.5782, allocations: 3.953 kB / 431.5 MB, free: 5.871 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.396e-06/0.5783, allocations: 3.984 kB / 431.5 MB, free: 5.867 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001396/0.5784, allocations: 44.8 kB / 431.6 MB, free: 5.836 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008165/0.5792, allocations: 411.1 kB / 432 MB, free: 5.426 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002834/0.5796, allocations: 147.5 kB / 432.1 MB, free: 5.27 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001245/0.5797, allocations: 54.2 kB / 432.2 MB, free: 5.215 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.558e-05/0.5797, allocations: 7.984 kB / 432.2 MB, free: 5.207 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000203/0.58, allocations: 84.95 kB / 432.3 MB, free: 5.125 MB / 346.7 MB Notification: Performance of pre-optimization done (n=11): time 3.016e-06/0.58, allocations: 0 / 432.3 MB, free: 5.125 MB / 346.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004307/0.5804, allocations: 133.2 kB / 432.4 MB, free: 5.008 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001147/0.5805, allocations: 187.1 kB / 432.6 MB, free: 4.785 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005268/0.5811, allocations: 311.8 kB / 432.9 MB, free: 4.531 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.212e-05/0.5811, allocations: 25.7 kB / 432.9 MB, free: 4.5 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001076/0.5813, allocations: 179.6 kB / 433.1 MB, free: 4.344 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.433e-05/0.5813, allocations: 26.8 kB / 433.1 MB, free: 4.32 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.069e-05/0.5813, allocations: 3.438 kB / 433.1 MB, free: 4.32 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001144/0.5815, allocations: 314.8 kB / 433.4 MB, free: 4.004 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.655e-05/0.5815, allocations: 22.62 kB / 433.4 MB, free: 3.992 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001758/0.5817, allocations: 110 kB / 433.5 MB, free: 3.867 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001089/0.5819, allocations: 29.42 kB / 433.6 MB, free: 3.848 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.5819, allocations: 4 kB / 433.6 MB, free: 3.844 MB / 346.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003026/0.5822, allocations: 118.4 kB / 433.7 MB, free: 3.742 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.209e-05/0.5822, allocations: 4 kB / 433.7 MB, free: 3.738 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.357e-06/0.5822, allocations: 4 kB / 433.7 MB, free: 3.734 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.888e-05/0.5823, allocations: 3.984 kB / 433.7 MB, free: 3.73 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002192/0.5825, allocations: 23.94 kB / 433.7 MB, free: 3.707 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.21e-05/0.5825, allocations: 3.984 kB / 433.7 MB, free: 3.703 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000175/0.5827, allocations: 19.34 kB / 433.8 MB, free: 3.688 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.79e-05/0.5827, allocations: 4 kB / 433.8 MB, free: 3.684 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * 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.0001171/0.5829, allocations: 109.6 kB / 433.9 MB, free: 3.574 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001611/0.583, allocations: 82.67 kB / 433.9 MB, free: 3.492 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000358/0.5834, allocations: 130.6 kB / 434.1 MB, free: 3.387 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.091e-05/0.5834, allocations: 7.984 kB / 434.1 MB, free: 3.379 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.5835, allocations: 4.094 kB / 434.1 MB, free: 3.375 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.5835, allocations: 0 / 434.1 MB, free: 3.375 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003138/0.5838, allocations: 250.6 kB / 434.3 MB, free: 3.113 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/0.5838, allocations: 4 kB / 434.3 MB, free: 3.109 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000148/0.584, allocations: 12 kB / 434.3 MB, free: 3.098 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.181e-06/0.584, allocations: 3.938 kB / 434.3 MB, free: 3.094 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.485e-05/0.584, allocations: 16.06 kB / 434.4 MB, free: 3.078 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.584, allocations: 0 / 434.4 MB, free: 3.078 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.142e-06/0.5841, allocations: 4 kB / 434.4 MB, free: 3.074 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003839/0.5844, allocations: 219.5 kB / 434.6 MB, free: 2.844 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001706/0.5846, allocations: 123 kB / 434.7 MB, free: 2.715 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.324e-05/0.5847, allocations: 4 kB / 434.7 MB, free: 2.711 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00014/0.5849, allocations: 18.86 kB / 434.7 MB, free: 2.695 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.583e-05/0.5849, allocations: 6.062 kB / 434.7 MB, free: 2.691 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.014e-05/0.585, allocations: 7.984 kB / 434.7 MB, free: 2.684 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003777/0.5854, allocations: 243.7 kB / 435 MB, free: 2.492 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.5854, allocations: 3.938 kB / 435 MB, free: 2.488 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000468/0.5858, allocations: 59.36 kB / 435 MB, free: 2.438 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * 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.001943/0.5878, allocations: 1.276 MB / 436.3 MB, free: 1.266 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003724/0.5882, allocations: 93.66 kB / 436.4 MB, free: 1.195 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.5882, allocations: 0 / 436.4 MB, free: 1.195 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 9.503e-05/0.5883, allocations: 27.12 kB / 436.4 MB, free: 1.176 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000601/0.5889, allocations: 76.97 kB / 436.5 MB, free: 1.113 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001124/0.5901, allocations: 410.5 kB / 436.9 MB, free: 0.707 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003941/0.5905, allocations: 0.756 MB / 437.7 MB, free: 15.93 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001539/0.5907, allocations: 60.23 kB / 437.7 MB, free: 15.91 MB / 362.7 MB Notification: Performance of SimCode: time 1.472e-06/0.5907, allocations: 0 / 437.7 MB, free: 15.91 MB / 362.7 MB Error: Error building simulator. Build log: clang++ -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -DUSE_LOGGER -c -o OMCppModelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSampleCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSampleCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSampleCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSampleFunctions.cpp:281:33: error: no matching function for call to 'ModelicaStandardTables_CombiTimeTable_init2' externalCombiTimeTable__ext = ModelicaStandardTables_CombiTimeTable_init2(fileName_.c_str(), tableName_.c_str(), tmp20.getData(), table_.getDim(1), table_.getDim(2), startTime__ext, ConstArray(columns_).getData(), columns_.getDim(1), smoothness__ext, extrapolation__ext, shiftTime__ext, timeEvents__ext, verboseRead__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources/ModelicaStandardTables.h:142:23: note: candidate function not viable: 7th argument ('const int *') would lose const qualifier MODELICA_EXPORT void* ModelicaStandardTables_CombiTimeTable_init2(_In_z_ const char* fileName, ^ In file included from OMCppModelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSampleCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSampleFMU.cpp:11: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/FMU2/FMU2Wrapper.cpp:93:11: warning: 6 enumeration values not handled in switch: 'LC_INIT', 'LC_LS', 'LC_SOLVER'... [-Wswitch] switch (cat) { ^ 1 warning and 1 error generated. : recipe for target 'OMCppModelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSampleCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSampleCalcHelperMain.o] Error 1