Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.006/2.006, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.296e-05/3.302e-05, allocations: 4 kB / 292.2 MB, free: 8.77 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1067, allocations: 50.42 MB / 342.6 MB, free: 6.336 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4375/0.5442, allocations: 80.64 MB / 423.3 MB, free: 13.55 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002455/0.5445, allocations: 70.81 kB / 423.3 MB, free: 13.52 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04254/0.5871, allocations: 9.197 MB / 432.5 MB, free: 5.77 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.765e-06/0.5872, allocations: 0 / 432.5 MB, free: 5.77 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.158e-05/0.5873, allocations: 12 kB / 432.5 MB, free: 5.758 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.001118/0.5884, allocations: 0.5633 MB / 433.1 MB, free: 5.152 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.23e-05/0.5885, allocations: 15.97 kB / 433.1 MB, free: 5.137 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.195e-05/0.5886, allocations: 46.19 kB / 433.2 MB, free: 5.086 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001536/0.5887, allocations: 39.47 kB / 433.2 MB, free: 5.047 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008823/0.5896, allocations: 330.4 kB / 433.5 MB, free: 4.719 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.11e-05/0.5897, allocations: 11.88 kB / 433.5 MB, free: 4.711 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.796e-05/0.5898, allocations: 15.25 kB / 433.5 MB, free: 4.699 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003896/0.5902, allocations: 146.8 kB / 433.7 MB, free: 4.574 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.5902, allocations: 4 kB / 433.7 MB, free: 4.57 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.545e-05/0.5902, allocations: 7.688 kB / 433.7 MB, free: 4.566 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.899e-06/0.5902, allocations: 3.953 kB / 433.7 MB, free: 4.562 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002115/0.5905, allocations: 67.17 kB / 433.8 MB, free: 4.52 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001162/0.5916, allocations: 0.5111 MB / 434.3 MB, free: 4.047 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003624/0.592, allocations: 129.9 kB / 434.4 MB, free: 3.949 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001359/0.5922, allocations: 43.11 kB / 434.5 MB, free: 3.918 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.304e-05/0.5922, allocations: 0 / 434.5 MB, free: 3.918 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002911/0.5925, allocations: 119.2 kB / 434.6 MB, free: 3.809 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 2.655e-06/0.5926, allocations: 0 / 434.6 MB, free: 3.809 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005543/0.5931, allocations: 165.2 kB / 434.7 MB, free: 3.672 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.574e-05/0.5932, allocations: 114.7 kB / 434.8 MB, free: 3.535 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007831/0.594, allocations: 387 kB / 435.2 MB, free: 3.242 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.225e-05/0.5941, allocations: 29.69 kB / 435.2 MB, free: 3.207 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000143/0.5942, allocations: 213.5 kB / 435.5 MB, free: 3.039 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.616e-05/0.5943, allocations: 43.03 kB / 435.5 MB, free: 3.004 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.155e-05/0.5943, allocations: 4 kB / 435.5 MB, free: 3 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.5945, allocations: 318.5 kB / 435.8 MB, free: 2.684 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001263/0.5946, allocations: 45.55 kB / 435.9 MB, free: 2.656 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001961/0.5948, allocations: 95.62 kB / 436 MB, free: 2.562 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001436/0.595, allocations: 50.94 kB / 436 MB, free: 2.527 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.595, allocations: 3.938 kB / 436 MB, free: 2.523 MB / 346.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004397/0.5955, allocations: 153.1 kB / 436.2 MB, free: 2.398 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/0.5955, allocations: 4 kB / 436.2 MB, free: 2.395 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.5955, allocations: 7.984 kB / 436.2 MB, free: 2.387 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.996e-05/0.5955, allocations: 4 kB / 436.2 MB, free: 2.383 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002344/0.5958, allocations: 27.67 kB / 436.2 MB, free: 2.359 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.235e-05/0.5958, allocations: 4 kB / 436.2 MB, free: 2.355 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002474/0.5961, allocations: 23.89 kB / 436.2 MB, free: 2.332 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.501e-05/0.5961, allocations: 11.08 kB / 436.2 MB, free: 2.324 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition2,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEvent,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,And1.u1,And1.u2,And1.y,Or1.u1,$PRE.Pre1.u,Pre1.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.0001368/0.5963, allocations: 118.2 kB / 436.4 MB, free: 2.207 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.161e-05/0.5963, allocations: 27.72 kB / 436.4 MB, free: 2.18 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005423/0.5969, allocations: 190.5 kB / 436.6 MB, free: 2.02 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.265e-05/0.5969, allocations: 4 kB / 436.6 MB, free: 2.016 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.5969, allocations: 0 / 436.6 MB, free: 2.016 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.551e-06/0.597, allocations: 4 kB / 436.6 MB, free: 2.012 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004449/0.5974, allocations: 324.9 kB / 436.9 MB, free: 1.699 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.5974, allocations: 0 / 436.9 MB, free: 1.699 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001092/0.5976, allocations: 15.92 kB / 436.9 MB, free: 1.684 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.967e-06/0.5976, allocations: 0 / 436.9 MB, free: 1.684 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.022e-05/0.5976, allocations: 11.75 kB / 436.9 MB, free: 1.676 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.5976, allocations: 0 / 436.9 MB, free: 1.676 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.5976, allocations: 0 / 436.9 MB, free: 1.676 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005256/0.5982, allocations: 219.1 kB / 437.1 MB, free: 1.48 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001677/0.5984, allocations: 119.2 kB / 437.2 MB, free: 1.352 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.303e-05/0.5984, allocations: 7.484 kB / 437.3 MB, free: 1.348 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001911/0.5987, allocations: 11.88 kB / 437.3 MB, free: 1.34 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.764e-05/0.5988, allocations: 15.97 kB / 437.3 MB, free: 1.324 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.52e-05/0.5988, allocations: 6.875 kB / 437.3 MB, free: 1.32 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005932/0.5994, allocations: 308.9 kB / 437.6 MB, free: 1.09 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.31e-07/0.5994, allocations: 0 / 437.6 MB, free: 1.09 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005138/0.5999, allocations: 62.88 kB / 437.7 MB, free: 1.035 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,And1.u1,And1.u2,And1.y,Or1.u1,Pre1.u) * Number of discrete states: 5 (Pre1.u,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.002045/0.602, allocations: 1.081 MB / 438.7 MB, free: 88 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004886/0.6025, allocations: 121.2 kB / 438.9 MB, free: 0 / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.6026, allocations: 0 / 438.9 MB, free: 0 / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000202/0.6028, allocations: 60.23 kB / 438.9 MB, free: 15.95 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006941/0.6035, allocations: 64.34 kB / 439 MB, free: 15.91 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001465/0.605, allocations: 0.5022 MB / 439.5 MB, free: 15.44 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004141/0.6054, allocations: 0.7889 MB / 440.3 MB, free: 14.63 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002264/0.6057, allocations: 91.78 kB / 440.4 MB, free: 14.6 MB / 362.7 MB Notification: Performance of SimCode: time 1.413e-06/0.6057, allocations: 7.938 kB / 440.4 MB, free: 14.59 MB / 362.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_LogicalNetwork1CalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_LogicalNetwork1CalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_LogicalNetwork1CalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_LogicalNetwork1Functions.cpp:291:33: error: no matching function for call to 'ModelicaStandardTables_CombiTimeTable_init2' externalCombiTimeTable__ext = ModelicaStandardTables_CombiTimeTable_init2(fileName_.c_str(), tableName_.c_str(), tmp26.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_LogicalNetwork1CalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_LogicalNetwork1FMU.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_LogicalNetwork1CalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_LogicalNetwork1CalcHelperMain.o] Error 1