Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.11/2.11, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.375e-05/3.378e-05, allocations: 0 / 292.2 MB, free: 8.715 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.112, allocations: 50.42 MB / 342.6 MB, free: 6.285 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4495/0.5616, allocations: 81.38 MB / 424 MB, free: 12.77 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000312/0.562, allocations: 78.7 kB / 424.1 MB, free: 12.73 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02772/0.5897, allocations: 6.059 MB / 430.1 MB, free: 7.637 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.5898, allocations: 0 / 430.1 MB, free: 7.637 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.523e-05/0.5898, allocations: 4 kB / 430.2 MB, free: 7.633 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0008077/0.5907, allocations: 0.4928 MB / 430.6 MB, free: 7.102 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.101e-05/0.5907, allocations: 8.031 kB / 430.7 MB, free: 7.094 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.434e-05/0.5908, allocations: 43.86 kB / 430.7 MB, free: 7.047 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.264e-05/0.5909, allocations: 23.72 kB / 430.7 MB, free: 7.023 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006452/0.5916, allocations: 291.1 kB / 431 MB, free: 6.719 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.45e-05/0.5916, allocations: 7.688 kB / 431 MB, free: 6.715 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.6e-05/0.5916, allocations: 4 kB / 431 MB, free: 6.711 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004114/0.5921, allocations: 160.7 kB / 431.2 MB, free: 6.551 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.5921, allocations: 0 / 431.2 MB, free: 6.551 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.189e-05/0.5921, allocations: 3.953 kB / 431.2 MB, free: 6.547 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.007e-06/0.5921, allocations: 4 kB / 431.2 MB, free: 6.543 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001306/0.5923, allocations: 35.73 kB / 431.2 MB, free: 6.52 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007805/0.5931, allocations: 400.3 kB / 431.6 MB, free: 6.121 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002555/0.5933, allocations: 118 kB / 431.7 MB, free: 6 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001009/0.5935, allocations: 38.27 kB / 431.8 MB, free: 5.961 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.65e-05/0.5935, allocations: 10.98 kB / 431.8 MB, free: 5.953 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002009/0.5937, allocations: 77.95 kB / 431.8 MB, free: 5.875 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 3.517e-06/0.5937, allocations: 0 / 431.8 MB, free: 5.875 MB / 346.7 MB Notification: Performance of matching and sorting (n=9): time 0.0004121/0.5942, allocations: 121.6 kB / 432 MB, free: 5.77 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001066/0.5943, allocations: 162.2 kB / 432.1 MB, free: 5.574 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000535/0.5948, allocations: 300.4 kB / 432.4 MB, free: 5.328 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.247e-05/0.5949, allocations: 33.58 kB / 432.4 MB, free: 5.293 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001096/0.595, allocations: 180.6 kB / 432.6 MB, free: 5.137 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.121e-05/0.5951, allocations: 19.69 kB / 432.6 MB, free: 5.121 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.235e-06/0.5951, allocations: 0 / 432.6 MB, free: 5.121 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.5952, allocations: 314.5 kB / 433 MB, free: 4.809 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.046e-05/0.5953, allocations: 22.86 kB / 433 MB, free: 4.793 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001593/0.5955, allocations: 97.67 kB / 433.1 MB, free: 4.688 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.979e-05/0.5956, allocations: 23.73 kB / 433.1 MB, free: 4.672 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.5956, allocations: 4 kB / 433.1 MB, free: 4.668 MB / 346.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000286/0.5959, allocations: 102.9 kB / 433.2 MB, free: 4.578 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.366e-05/0.596, allocations: 8 kB / 433.2 MB, free: 4.57 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.596, allocations: 0 / 433.2 MB, free: 4.57 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.262e-05/0.596, allocations: 4 kB / 433.2 MB, free: 4.566 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000211/0.5962, allocations: 23.61 kB / 433.2 MB, free: 4.547 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.427e-05/0.5963, allocations: 7.984 kB / 433.2 MB, free: 4.539 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001697/0.5964, allocations: 11.89 kB / 433.3 MB, free: 4.527 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.577e-05/0.5965, allocations: 4 kB / 433.3 MB, free: 4.523 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001189/0.5966, allocations: 116.5 kB / 433.4 MB, free: 4.406 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001353/0.5967, allocations: 65.22 kB / 433.4 MB, free: 4.34 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003553/0.5971, allocations: 119.4 kB / 433.5 MB, free: 4.242 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-06/0.5971, allocations: 4 kB / 433.6 MB, free: 4.238 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.5972, allocations: 0 / 433.6 MB, free: 4.238 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.411e-06/0.5972, allocations: 0 / 433.6 MB, free: 4.238 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003192/0.5975, allocations: 257.6 kB / 433.8 MB, free: 3.969 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.697e-06/0.5975, allocations: 4 kB / 433.8 MB, free: 3.965 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001422/0.5977, allocations: 15.88 kB / 433.8 MB, free: 3.949 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.194e-05/0.5977, allocations: 8.062 kB / 433.8 MB, free: 3.941 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.012e-05/0.5977, allocations: 11.31 kB / 433.8 MB, free: 3.934 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.59e-06/0.5977, allocations: 4 kB / 433.8 MB, free: 3.93 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.5978, allocations: 0 / 433.8 MB, free: 3.93 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003692/0.5981, allocations: 185.5 kB / 434 MB, free: 3.734 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001734/0.5983, allocations: 118.6 kB / 434.1 MB, free: 3.609 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.479e-05/0.5984, allocations: 11.92 kB / 434.2 MB, free: 3.602 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000133/0.5985, allocations: 4 kB / 434.2 MB, free: 3.598 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.511e-05/0.5986, allocations: 7.984 kB / 434.2 MB, free: 3.59 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.874e-05/0.5986, allocations: 7.906 kB / 434.2 MB, free: 3.586 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004019/0.5991, allocations: 237.3 kB / 434.4 MB, free: 3.395 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.5991, allocations: 0 / 434.4 MB, free: 3.395 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004792/0.5996, allocations: 54.77 kB / 434.5 MB, free: 3.348 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,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 (10): * Single equations (assignments): 8 * 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.001935/0.6015, allocations: 1.185 MB / 435.6 MB, free: 2.27 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003761/0.6019, allocations: 84.34 kB / 435.7 MB, free: 2.207 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.602, allocations: 256 / 435.7 MB, free: 2.207 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 9.921e-05/0.6021, allocations: 30.88 kB / 435.8 MB, free: 2.184 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005791/0.6027, allocations: 53.55 kB / 435.8 MB, free: 2.145 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001138/0.6038, allocations: 384.2 kB / 436.2 MB, free: 1.758 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003763/0.6042, allocations: 0.7506 MB / 436.9 MB, free: 0.9883 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001615/0.6044, allocations: 59.59 kB / 437 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of SimCode: time 1.573e-06/0.6044, allocations: 0 / 437 MB, free: 0.9609 MB / 346.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_ShiftSampleCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSampleCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSampleCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSampleFunctions.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_ShiftSampleCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSampleFMU.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_ShiftSampleCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSampleCalcHelperMain.o] Error 1