Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.101/2.101, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.998e-05/3.008e-05, allocations: 0 / 292.2 MB, free: 8.734 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1127, allocations: 50.4 MB / 342.6 MB, free: 6.301 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4435/0.5563, allocations: 81.62 MB / 424.3 MB, free: 12.53 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002848/0.5567, allocations: 78.58 kB / 424.3 MB, free: 12.49 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02726/0.5839, allocations: 6.184 MB / 430.5 MB, free: 7.289 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.365e-06/0.584, allocations: 0 / 430.5 MB, free: 7.289 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.242e-05/0.584, allocations: 8 kB / 430.5 MB, free: 7.281 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.0008467/0.5849, allocations: 0.4901 MB / 431 MB, free: 6.754 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.022e-05/0.585, allocations: 8.031 kB / 431 MB, free: 6.746 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.412e-05/0.585, allocations: 38 kB / 431.1 MB, free: 6.703 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.348e-05/0.5851, allocations: 31.7 kB / 431.1 MB, free: 6.672 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006352/0.5858, allocations: 290 kB / 431.4 MB, free: 6.371 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.362e-05/0.5858, allocations: 7.875 kB / 431.4 MB, free: 6.367 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.896e-05/0.5858, allocations: 4 kB / 431.4 MB, free: 6.363 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004247/0.5863, allocations: 168.6 kB / 431.5 MB, free: 6.195 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.313e-05/0.5863, allocations: 4 kB / 431.5 MB, free: 6.191 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.122e-05/0.5863, allocations: 3.953 kB / 431.6 MB, free: 6.188 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.118e-05/0.5864, allocations: 4 kB / 431.6 MB, free: 6.184 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001386/0.5865, allocations: 45.67 kB / 431.6 MB, free: 6.152 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007989/0.5873, allocations: 489.2 kB / 432.1 MB, free: 5.664 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000284/0.5876, allocations: 139.3 kB / 432.2 MB, free: 5.516 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001255/0.5878, allocations: 61.45 kB / 432.3 MB, free: 5.453 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.056e-05/0.5878, allocations: 2.75 kB / 432.3 MB, free: 5.453 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002128/0.588, allocations: 98.97 kB / 432.4 MB, free: 5.352 MB / 346.7 MB Notification: Performance of pre-optimization done (n=11): time 2.285e-06/0.5881, allocations: 0 / 432.4 MB, free: 5.352 MB / 346.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004157/0.5885, allocations: 134.2 kB / 432.5 MB, free: 5.234 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001184/0.5886, allocations: 183.9 kB / 432.7 MB, free: 5.012 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005113/0.5891, allocations: 299.5 kB / 433 MB, free: 4.77 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.061e-05/0.5892, allocations: 27.27 kB / 433 MB, free: 4.738 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001174/0.5893, allocations: 182 kB / 433.2 MB, free: 4.578 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.448e-05/0.5894, allocations: 27.08 kB / 433.2 MB, free: 4.555 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.073e-05/0.5894, allocations: 3.25 kB / 433.2 MB, free: 4.555 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.5895, allocations: 314.8 kB / 433.5 MB, free: 4.238 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.862e-05/0.5896, allocations: 21.25 kB / 433.5 MB, free: 4.227 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001689/0.5898, allocations: 103.4 kB / 433.6 MB, free: 4.113 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001038/0.5899, allocations: 34.42 kB / 433.7 MB, free: 4.09 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.59, allocations: 4 kB / 433.7 MB, free: 4.086 MB / 346.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002999/0.5903, allocations: 122.5 kB / 433.8 MB, free: 3.98 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.052e-05/0.5903, allocations: 8 kB / 433.8 MB, free: 3.973 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.5903, allocations: 0 / 433.8 MB, free: 3.973 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.044e-05/0.5903, allocations: 3.984 kB / 433.8 MB, free: 3.969 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002071/0.5906, allocations: 20 kB / 433.8 MB, free: 3.949 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.531e-05/0.5906, allocations: 7.922 kB / 433.8 MB, free: 3.941 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001527/0.5907, allocations: 15.78 kB / 433.9 MB, free: 3.93 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.722e-05/0.5908, allocations: 4 kB / 433.9 MB, free: 3.926 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sample1.u,shiftSample1.y,hold1.u,hold1.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.000112/0.5909, allocations: 112.6 kB / 434 MB, free: 3.812 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001571/0.5911, allocations: 76.73 kB / 434 MB, free: 3.734 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003501/0.5914, allocations: 130.6 kB / 434.2 MB, free: 3.629 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.115e-05/0.5915, allocations: 8.031 kB / 434.2 MB, free: 3.621 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.992e-06/0.5915, allocations: 0 / 434.2 MB, free: 3.621 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.127e-06/0.5915, allocations: 3.984 kB / 434.2 MB, free: 3.617 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003243/0.5918, allocations: 247.6 kB / 434.4 MB, free: 3.359 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.5919, allocations: 8 kB / 434.4 MB, free: 3.352 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00014/0.592, allocations: 19.92 kB / 434.4 MB, free: 3.332 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.648e-06/0.592, allocations: 4.062 kB / 434.5 MB, free: 3.328 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.959e-05/0.592, allocations: 7.953 kB / 434.5 MB, free: 3.32 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.989e-06/0.5921, allocations: 3.984 kB / 434.5 MB, free: 3.316 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.602e-06/0.5921, allocations: 4 kB / 434.5 MB, free: 3.312 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000389/0.5925, allocations: 223.8 kB / 434.7 MB, free: 3.078 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001759/0.5927, allocations: 123.1 kB / 434.8 MB, free: 2.949 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.098e-05/0.5927, allocations: 4 kB / 434.8 MB, free: 2.945 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001273/0.5929, allocations: 11.44 kB / 434.8 MB, free: 2.938 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.946e-05/0.593, allocations: 11.92 kB / 434.8 MB, free: 2.926 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.027e-05/0.593, allocations: 7.984 kB / 434.8 MB, free: 2.918 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003854/0.5934, allocations: 238.5 kB / 435.1 MB, free: 2.73 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.5934, allocations: 4 kB / 435.1 MB, free: 2.727 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000497/0.5939, allocations: 51.62 kB / 435.1 MB, free: 2.684 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,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,sample1.u,hold1.y,hold1.u,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 (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.001945/0.5959, allocations: 1.281 MB / 436.4 MB, free: 1.504 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003503/0.5962, allocations: 96.89 kB / 436.5 MB, free: 1.43 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.5962, allocations: 0 / 436.5 MB, free: 1.43 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001039/0.5964, allocations: 33.12 kB / 436.5 MB, free: 1.406 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005348/0.5969, allocations: 65.67 kB / 436.6 MB, free: 1.359 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001136/0.5981, allocations: 409.3 kB / 437 MB, free: 0.957 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004737/0.5986, allocations: 0.7476 MB / 437.7 MB, free: 192 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001563/0.5987, allocations: 62.47 kB / 437.8 MB, free: 164 kB / 346.7 MB Notification: Performance of SimCode: time 1.583e-06/0.5987, allocations: 0 / 437.8 MB, free: 164 kB / 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_HoldCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_HoldCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_HoldCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_HoldFunctions.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_HoldCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_HoldFMU.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_HoldCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_HoldCalcHelperMain.o] Error 1