Running command: "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.547/2.547, allocations: 270 MB / 282.6 MB, free: 1.859 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.485e-05/3.49e-05, allocations: 7.938 kB / 347 MB, free: 3.133 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3987/0.3987, allocations: 61.86 MB / 408.9 MB, free: 10.77 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2054/0.6042, allocations: 90.59 MB / 499.5 MB, free: 52 kB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000333/0.6046, allocations: 68.02 kB / 499.6 MB, free: 15.98 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03619/0.6408, allocations: 6.132 MB / 0.4939 GB, free: 9.844 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.6408, allocations: 0 / 0.4939 GB, free: 9.844 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.21e-05/0.6409, allocations: 8 kB / 0.4939 GB, free: 9.836 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.001314/0.6422, allocations: 0.5907 MB / 0.4944 GB, free: 9.176 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.439e-05/0.6423, allocations: 8.031 kB / 0.4944 GB, free: 9.168 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.711e-05/0.6424, allocations: 46.55 kB / 0.4945 GB, free: 9.113 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001323/0.6425, allocations: 27.72 kB / 0.4945 GB, free: 9.086 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007736/0.6433, allocations: 281.6 kB / 0.4948 GB, free: 8.77 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001594/0.6435, allocations: 101.1 kB / 0.4949 GB, free: 8.652 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.515e-05/0.6436, allocations: 16 kB / 0.4949 GB, free: 8.637 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005191/0.6441, allocations: 146.2 kB / 0.495 GB, free: 8.473 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.397e-05/0.6442, allocations: 0 / 0.495 GB, free: 8.473 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.688e-05/0.6442, allocations: 7.938 kB / 0.495 GB, free: 8.465 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.095e-06/0.6442, allocations: 4 kB / 0.495 GB, free: 8.461 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003731/0.6446, allocations: 83.91 kB / 0.4951 GB, free: 8.379 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001562/0.6462, allocations: 0.6258 MB / 0.4957 GB, free: 7.695 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000515/0.6468, allocations: 164 kB / 0.4959 GB, free: 7.508 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002997/0.6471, allocations: 86.56 kB / 0.496 GB, free: 7.414 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.757e-05/0.6471, allocations: 4 kB / 0.496 GB, free: 7.41 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007461/0.6479, allocations: 425.3 kB / 0.4964 GB, free: 6.918 MB / 426.7 MB Notification: Performance of pre-optimization done (n=23): time 5.591e-06/0.6479, allocations: 3.984 kB / 0.4964 GB, free: 6.914 MB / 426.7 MB Notification: Performance of matching and sorting (n=23): time 0.001222/0.6492, allocations: 342.5 kB / 0.4967 GB, free: 6.555 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002007/0.6494, allocations: 225.5 kB / 0.4969 GB, free: 6.285 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007649/0.6502, allocations: 289 kB / 0.4972 GB, free: 5.992 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.686e-05/0.6502, allocations: 33.7 kB / 0.4972 GB, free: 5.953 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000171/0.6504, allocations: 183.1 kB / 0.4974 GB, free: 5.773 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001109/0.6506, allocations: 51.34 kB / 0.4975 GB, free: 5.723 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.489e-05/0.6506, allocations: 4 kB / 0.4975 GB, free: 5.719 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001789/0.6508, allocations: 326.8 kB / 0.4978 GB, free: 5.391 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002332/0.651, allocations: 48.3 kB / 0.4978 GB, free: 5.344 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003504/0.6514, allocations: 141.6 kB / 0.498 GB, free: 5.172 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003347/0.6518, allocations: 149 kB / 0.4981 GB, free: 5.008 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.06e-06/0.6518, allocations: 0 / 0.4981 GB, free: 5.008 MB / 426.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0009539/0.6527, allocations: 314.4 kB / 0.4984 GB, free: 4.676 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001123/0.6529, allocations: 93.03 kB / 0.4985 GB, free: 4.566 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.602e-05/0.6529, allocations: 4 kB / 0.4985 GB, free: 4.562 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.514e-05/0.6529, allocations: 8.156 kB / 0.4985 GB, free: 4.555 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000244/0.6532, allocations: 27.98 kB / 0.4985 GB, free: 4.527 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.646e-05/0.6532, allocations: 0 / 0.4985 GB, free: 4.527 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003811/0.6536, allocations: 23.92 kB / 0.4986 GB, free: 4.504 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.566e-05/0.6537, allocations: 16 kB / 0.4986 GB, free: 4.488 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 29 ($PRE.onDelay1.u,$PRE.onDelay1.t_next,$PRE.onDelay3.u,$PRE.onDelay3.t_next,$PRE.onDelay2.u,$PRE.onDelay2.t_next,$whenCondition5,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition6,$whenCondition7,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.combiTimeTable.nextTimeEvent,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,$whenCondition4,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next,$whenCondition1,$whenCondition2,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 3 * 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.000342/0.6541, allocations: 237.1 kB / 0.4988 GB, free: 4.234 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001243/0.6542, allocations: 35.66 kB / 0.4988 GB, free: 4.199 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006898/0.6549, allocations: 205.1 kB / 0.499 GB, free: 3.98 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.408e-06/0.6549, allocations: 4 kB / 0.499 GB, free: 3.977 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.655, allocations: 0 / 0.499 GB, free: 3.977 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.655, allocations: 0 / 0.499 GB, free: 3.977 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004999/0.6555, allocations: 309.3 kB / 0.4993 GB, free: 3.625 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.556e-06/0.6555, allocations: 4 kB / 0.4993 GB, free: 3.621 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.09e-05/0.6556, allocations: 4 kB / 0.4993 GB, free: 3.617 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.418e-06/0.6556, allocations: 4 kB / 0.4993 GB, free: 3.613 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.376e-05/0.6556, allocations: 4 kB / 0.4993 GB, free: 3.609 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.065e-06/0.6557, allocations: 4 kB / 0.4993 GB, free: 3.605 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.6557, allocations: 7.938 kB / 0.4993 GB, free: 3.598 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009173/0.6566, allocations: 457.4 kB / 0.4998 GB, free: 3.098 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001386/0.6568, allocations: 116.8 kB / 0.4999 GB, free: 2.965 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.395e-05/0.6569, allocations: 12 kB / 0.4999 GB, free: 2.953 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002343/0.6571, allocations: 23.98 kB / 0.4999 GB, free: 2.93 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001047/0.6572, allocations: 27.92 kB / 0.5 GB, free: 2.902 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.928e-05/0.6573, allocations: 12 kB / 0.5 GB, free: 2.891 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003921/0.6577, allocations: 229.3 kB / 0.5002 GB, free: 2.668 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6577, allocations: 0 / 0.5002 GB, free: 2.668 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0005241/0.6582, allocations: 76 kB / 0.5003 GB, free: 2.594 MB / 426.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: 21 ($whenCondition5,$whenCondition6,$whenCondition7,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,$whenCondition4,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next,$whenCondition1,$whenCondition2,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next) * Number of discrete states: 14 (onDelay3.t_next,onDelay3.delaySignal,$whenCondition2,$whenCondition1,onDelay2.t_next,onDelay2.delaySignal,$whenCondition4,$whenCondition3,onDelay1.t_next,onDelay1.delaySignal,$whenCondition7,$whenCondition6,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 3 * 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.002736/0.661, allocations: 1.434 MB / 0.5017 GB, free: 1.234 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0008701/0.6619, allocations: 386 kB / 0.502 GB, free: 0.8203 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.62e-06/0.6619, allocations: 448 / 0.502 GB, free: 0.8203 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000498/0.6624, allocations: 338.1 kB / 0.5023 GB, free: 464 kB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005098/0.663, allocations: 44.5 kB / 0.5024 GB, free: 420 kB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00147/0.6644, allocations: 475.8 kB / 0.5028 GB, free: 15.89 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004329/0.6649, allocations: 0.76 MB / 0.5036 GB, free: 15.11 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001954/0.6651, allocations: 67.41 kB / 0.5037 GB, free: 15.04 MB / 442.7 MB Notification: Performance of SimCode: time 1.112e-06/0.6651, allocations: 192 / 0.5037 GB, free: 15.04 MB / 442.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 OMCppModelicaTest_trunk_cpp_ModelicaTest_Blocks_OnDelayCalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Blocks_OnDelayCalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Blocks_OnDelayCalcHelperMain.cpp:28: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Blocks_OnDelayFunctions.cpp:248:33: error: no matching function for call to 'ModelicaStandardTables_CombiTimeTable_init2' externalCombiTimeTable__ext = ModelicaStandardTables_CombiTimeTable_init2(fileName_.c_str(), tableName_.c_str(), tmp23.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 OMCppModelicaTest_trunk_cpp_ModelicaTest_Blocks_OnDelayCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Blocks_OnDelayFMU.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 'OMCppModelicaTest_trunk_cpp_ModelicaTest_Blocks_OnDelayCalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest_Blocks_OnDelayCalcHelperMain.o] Error 1