Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.02/2.02, allocations: 225.8 MB / 239.3 MB, free: 11.21 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.963e-05/2.973e-05, allocations: 2.5 kB / 292.2 MB, free: 8.812 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1144, allocations: 50.41 MB / 342.6 MB, free: 6.379 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4554/0.5699, allocations: 80.95 MB / 423.6 MB, free: 12.9 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002531/0.5702, allocations: 70.39 kB / 423.6 MB, free: 12.86 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02746/0.5977, allocations: 5.812 MB / 429.4 MB, free: 7.969 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.5977, allocations: 0 / 429.4 MB, free: 7.969 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.813e-05/0.5978, allocations: 4 kB / 429.5 MB, free: 7.965 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0009463/0.5987, allocations: 0.4915 MB / 429.9 MB, free: 7.434 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.973e-05/0.5988, allocations: 8.031 kB / 430 MB, free: 7.426 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.588e-05/0.5989, allocations: 37.56 kB / 430 MB, free: 7.383 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.135e-05/0.599, allocations: 23.14 kB / 430 MB, free: 7.363 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005546/0.5995, allocations: 265.5 kB / 430.3 MB, free: 7.082 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.821e-05/0.5996, allocations: 4 kB / 430.3 MB, free: 7.078 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.971e-05/0.5996, allocations: 7.438 kB / 430.3 MB, free: 7.074 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002654/0.5999, allocations: 107.2 kB / 430.4 MB, free: 6.965 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.5999, allocations: 7.938 kB / 430.4 MB, free: 6.957 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.91e-05/0.6, allocations: 0 / 430.4 MB, free: 6.957 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.297e-06/0.6, allocations: 3.953 kB / 430.4 MB, free: 6.953 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001533/0.6002, allocations: 43.86 kB / 430.4 MB, free: 6.926 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009576/0.6011, allocations: 0.6175 MB / 431.1 MB, free: 6.297 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002817/0.6014, allocations: 123.3 kB / 431.2 MB, free: 6.172 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001164/0.6016, allocations: 46.19 kB / 431.2 MB, free: 6.129 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.276e-05/0.6016, allocations: 4 kB / 431.2 MB, free: 6.125 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002571/0.6019, allocations: 117.6 kB / 431.3 MB, free: 6.004 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 2.415e-06/0.6019, allocations: 0 / 431.3 MB, free: 6.004 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0004646/0.6024, allocations: 138.9 kB / 431.5 MB, free: 5.887 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.897e-05/0.6025, allocations: 128.5 kB / 431.6 MB, free: 5.73 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004806/0.603, allocations: 260.1 kB / 431.9 MB, free: 5.516 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.624e-05/0.603, allocations: 33.14 kB / 431.9 MB, free: 5.48 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001095/0.6032, allocations: 172.6 kB / 432.1 MB, free: 5.328 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.616e-05/0.6032, allocations: 34.33 kB / 432.1 MB, free: 5.301 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.011e-05/0.6032, allocations: 4.031 kB / 432.1 MB, free: 5.297 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.6034, allocations: 318 kB / 432.4 MB, free: 4.98 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.662e-05/0.6035, allocations: 30.23 kB / 432.4 MB, free: 4.961 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000151/0.6037, allocations: 78.11 kB / 432.5 MB, free: 4.875 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001055/0.6038, allocations: 33.66 kB / 432.5 MB, free: 4.852 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.6038, allocations: 0 / 432.5 MB, free: 4.852 MB / 346.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003234/0.6041, allocations: 124 kB / 432.7 MB, free: 4.75 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.767e-05/0.6042, allocations: 15.94 kB / 432.7 MB, free: 4.734 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.6042, allocations: 0 / 432.7 MB, free: 4.734 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.808e-05/0.6042, allocations: 0 / 432.7 MB, free: 4.734 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001605/0.6044, allocations: 15.94 kB / 432.7 MB, free: 4.719 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.394e-05/0.6044, allocations: 4 kB / 432.7 MB, free: 4.715 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002453/0.6047, allocations: 23.83 kB / 432.7 MB, free: 4.695 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.106e-05/0.6047, allocations: 7.984 kB / 432.7 MB, free: 4.688 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: 13 ($whenCondition2,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,$PRE.pulse.pulseStart,pulse.pulseStart,booleanExpression.y,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0001207/0.6048, allocations: 107.7 kB / 432.8 MB, free: 4.578 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.375e-05/0.6049, allocations: 27.7 kB / 432.9 MB, free: 4.551 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003515/0.6053, allocations: 113.7 kB / 433 MB, free: 4.461 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.017e-05/0.6053, allocations: 7.984 kB / 433 MB, free: 4.453 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/0.6053, allocations: 4 kB / 433 MB, free: 4.449 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.875e-06/0.6053, allocations: 3.984 kB / 433 MB, free: 4.445 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000354/0.6057, allocations: 252.6 kB / 433.2 MB, free: 4.18 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.115e-06/0.6057, allocations: 0 / 433.2 MB, free: 4.18 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.438e-05/0.6058, allocations: 8 kB / 433.2 MB, free: 4.172 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.342e-06/0.6058, allocations: 0 / 433.2 MB, free: 4.172 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.067e-05/0.6059, allocations: 7 kB / 433.3 MB, free: 4.168 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.581e-06/0.6059, allocations: 3.953 kB / 433.3 MB, free: 4.164 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.6059, allocations: 0 / 433.3 MB, free: 4.164 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004078/0.6063, allocations: 204.3 kB / 433.5 MB, free: 3.953 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001206/0.6064, allocations: 104.4 kB / 433.6 MB, free: 3.836 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.383e-05/0.6065, allocations: 7.688 kB / 433.6 MB, free: 3.832 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002039/0.6067, allocations: 19.42 kB / 433.6 MB, free: 3.816 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.314e-05/0.6068, allocations: 19.92 kB / 433.6 MB, free: 3.797 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.108e-05/0.6069, allocations: 11.42 kB / 433.6 MB, free: 3.789 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003501/0.6072, allocations: 204.2 kB / 433.8 MB, free: 3.625 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.6072, allocations: 0 / 433.8 MB, free: 3.625 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004306/0.6077, allocations: 46.56 kB / 433.9 MB, free: 3.586 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: 10 ($whenCondition2,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,pulse.pulseStart,booleanExpression.y,sample.y) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.001952/0.6097, allocations: 1.171 MB / 435 MB, free: 2.52 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004169/0.6101, allocations: 97.08 kB / 435.1 MB, free: 2.449 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.6101, allocations: 0 / 435.1 MB, free: 2.449 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001674/0.6103, allocations: 48.44 kB / 435.2 MB, free: 2.414 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005443/0.6109, allocations: 37.28 kB / 435.2 MB, free: 2.387 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001113/0.612, allocations: 373.7 kB / 435.6 MB, free: 2.016 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003991/0.6124, allocations: 0.7356 MB / 436.3 MB, free: 1.258 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001603/0.6126, allocations: 55.8 kB / 436.4 MB, free: 1.234 MB / 346.7 MB Notification: Performance of SimCode: time 1.443e-06/0.6126, allocations: 4 kB / 436.4 MB, free: 1.23 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_Blocks_Examples_ShowLogicalSourcesCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_ShowLogicalSourcesCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_ShowLogicalSourcesCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_ShowLogicalSourcesFunctions.cpp:248:33: error: no matching function for call to 'ModelicaStandardTables_CombiTimeTable_init2' externalCombiTimeTable__ext = ModelicaStandardTables_CombiTimeTable_init2(fileName_.c_str(), tableName_.c_str(), tmp17.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_Blocks_Examples_ShowLogicalSourcesCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_ShowLogicalSourcesFMU.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_Blocks_Examples_ShowLogicalSourcesCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_ShowLogicalSourcesCalcHelperMain.o] Error 1