Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.108/2.108, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.293e-05/4.308e-05, allocations: 4 kB / 292.2 MB, free: 8.738 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1133, allocations: 50.42 MB / 342.6 MB, free: 6.297 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4475/0.5609, allocations: 81.39 MB / 424 MB, free: 12.78 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003123/0.5612, allocations: 82.45 kB / 424.1 MB, free: 12.73 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03075/0.592, allocations: 6.649 MB / 430.8 MB, free: 7.164 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.275e-06/0.5921, allocations: 0 / 430.8 MB, free: 7.164 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.527e-05/0.5921, allocations: 8 kB / 430.8 MB, free: 7.156 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.0008511/0.593, allocations: 0.4892 MB / 431.3 MB, free: 6.629 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.335e-05/0.593, allocations: 12.03 kB / 431.3 MB, free: 6.617 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.636e-05/0.5931, allocations: 38 kB / 431.3 MB, free: 6.574 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.295e-05/0.5932, allocations: 23.72 kB / 431.3 MB, free: 6.551 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006562/0.5939, allocations: 290.6 kB / 431.6 MB, free: 6.246 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.65e-05/0.5939, allocations: 7.312 kB / 431.6 MB, free: 6.242 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.968e-05/0.594, allocations: 4 kB / 431.6 MB, free: 6.238 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004155/0.5944, allocations: 152.7 kB / 431.8 MB, free: 6.086 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.5944, allocations: 0 / 431.8 MB, free: 6.086 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.326e-05/0.5944, allocations: 6.828 kB / 431.8 MB, free: 6.082 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.796e-06/0.5945, allocations: 4 kB / 431.8 MB, free: 6.078 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001574/0.5946, allocations: 34.86 kB / 431.8 MB, free: 6.055 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008057/0.5955, allocations: 393.6 kB / 432.2 MB, free: 5.664 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002618/0.5957, allocations: 112.4 kB / 432.3 MB, free: 5.547 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001095/0.5959, allocations: 49.12 kB / 432.4 MB, free: 5.5 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.642e-05/0.5959, allocations: 7.938 kB / 432.4 MB, free: 5.492 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001981/0.5961, allocations: 73.56 kB / 432.4 MB, free: 5.418 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 3.326e-06/0.5961, allocations: 0 / 432.4 MB, free: 5.418 MB / 346.7 MB Notification: Performance of matching and sorting (n=9): time 0.0004201/0.5966, allocations: 124.5 kB / 432.6 MB, free: 5.309 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001098/0.5967, allocations: 164.2 kB / 432.7 MB, free: 5.113 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005535/0.5973, allocations: 302.2 kB / 433 MB, free: 4.867 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.815e-05/0.5973, allocations: 33.64 kB / 433 MB, free: 4.828 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001132/0.5974, allocations: 178 kB / 433.2 MB, free: 4.676 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.241e-05/0.5975, allocations: 19.44 kB / 433.2 MB, free: 4.66 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.406e-06/0.5975, allocations: 3.938 kB / 433.2 MB, free: 4.656 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.5977, allocations: 317.6 kB / 433.6 MB, free: 4.34 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.5e-05/0.5977, allocations: 18.75 kB / 433.6 MB, free: 4.328 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001642/0.5979, allocations: 102.8 kB / 433.7 MB, free: 4.219 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001061/0.598, allocations: 26.11 kB / 433.7 MB, free: 4.199 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.5981, allocations: 8 kB / 433.7 MB, free: 4.191 MB / 346.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002718/0.5983, allocations: 101.2 kB / 433.8 MB, free: 4.105 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.988e-05/0.5984, allocations: 8 kB / 433.8 MB, free: 4.098 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.5984, allocations: 3.938 kB / 433.8 MB, free: 4.094 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.11e-05/0.5984, allocations: 4 kB / 433.8 MB, free: 4.09 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002231/0.5987, allocations: 19.17 kB / 433.8 MB, free: 4.074 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.169e-05/0.5987, allocations: 4 kB / 433.8 MB, free: 4.07 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001623/0.5989, allocations: 7.906 kB / 433.9 MB, free: 4.062 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.711e-05/0.5989, allocations: 8.125 kB / 433.9 MB, free: 4.055 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,subSample1.y,subSample1.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.0001213/0.599, allocations: 112.3 kB / 434 MB, free: 3.941 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001373/0.5992, allocations: 65.39 kB / 434 MB, free: 3.875 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003742/0.5996, allocations: 117.2 kB / 434.1 MB, free: 3.781 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.255e-06/0.5996, allocations: 7.938 kB / 434.2 MB, free: 3.773 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.5996, allocations: 0 / 434.2 MB, free: 3.773 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.5996, allocations: 3.984 kB / 434.2 MB, free: 3.77 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003426/0.6, allocations: 260 kB / 434.4 MB, free: 3.496 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.077e-06/0.6, allocations: 0 / 434.4 MB, free: 3.496 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000152/0.6002, allocations: 11.98 kB / 434.4 MB, free: 3.484 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.198e-05/0.6002, allocations: 7.938 kB / 434.4 MB, free: 3.477 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.894e-05/0.6002, allocations: 7.453 kB / 434.4 MB, free: 3.473 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.903e-06/0.6002, allocations: 4 kB / 434.4 MB, free: 3.469 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.6002, allocations: 0 / 434.4 MB, free: 3.469 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003972/0.6006, allocations: 189 kB / 434.6 MB, free: 3.27 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001792/0.6008, allocations: 119.3 kB / 434.7 MB, free: 3.145 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.324e-05/0.6009, allocations: 4 kB / 434.7 MB, free: 3.141 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001381/0.6011, allocations: 6.688 kB / 434.8 MB, free: 3.137 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.578e-05/0.6011, allocations: 11.17 kB / 434.8 MB, free: 3.129 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.185e-05/0.6012, allocations: 12.05 kB / 434.8 MB, free: 3.117 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004261/0.6016, allocations: 236.2 kB / 435 MB, free: 2.93 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.6016, allocations: 7.938 kB / 435 MB, free: 2.922 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005052/0.6021, allocations: 54.72 kB / 435.1 MB, free: 2.875 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,subSample1.y,sample1.y,subSample1.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.0021/0.6043, allocations: 1.174 MB / 436.2 MB, free: 1.805 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004129/0.6047, allocations: 85.97 kB / 436.3 MB, free: 1.738 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.6047, allocations: 0 / 436.3 MB, free: 1.738 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001043/0.6049, allocations: 34.28 kB / 436.4 MB, free: 1.715 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005784/0.6055, allocations: 54.67 kB / 436.4 MB, free: 1.672 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001183/0.6067, allocations: 386.3 kB / 436.8 MB, free: 1.285 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000395/0.6071, allocations: 0.7472 MB / 437.5 MB, free: 0.5156 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001712/0.6073, allocations: 58.55 kB / 437.6 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of SimCode: time 1.212e-06/0.6073, allocations: 0 / 437.6 MB, free: 0.4922 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_SubSampleCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSampleCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSampleCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSampleFunctions.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_SubSampleCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSampleFMU.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_SubSampleCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSampleCalcHelperMain.o] Error 1