Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.944/1.944, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.891e-05/3.912e-05, allocations: 7.984 kB / 292.2 MB, free: 8.742 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1136, allocations: 50.41 MB / 342.6 MB, free: 6.316 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4781/0.5917, allocations: 82.01 MB / 424.6 MB, free: 11.82 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002939/0.5921, allocations: 81.2 kB / 424.7 MB, free: 11.78 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04168/0.6338, allocations: 9.037 MB / 433.8 MB, free: 4.266 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.6338, allocations: 0 / 433.8 MB, free: 4.266 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.372e-05/0.6339, allocations: 12 kB / 433.8 MB, free: 4.254 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0009156/0.6348, allocations: 0.5207 MB / 434.3 MB, free: 3.699 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/0.6349, allocations: 8.031 kB / 434.3 MB, free: 3.691 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.52e-05/0.6349, allocations: 53.23 kB / 434.3 MB, free: 3.637 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.663e-05/0.635, allocations: 31.62 kB / 434.4 MB, free: 3.605 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006545/0.6357, allocations: 303.9 kB / 434.7 MB, free: 3.293 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.761e-05/0.6358, allocations: 14.25 kB / 434.7 MB, free: 3.285 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.734e-05/0.6358, allocations: 15.31 kB / 434.7 MB, free: 3.273 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007705/0.6366, allocations: 309.4 kB / 435 MB, free: 3.008 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.377e-05/0.6366, allocations: 3.953 kB / 435 MB, free: 3.004 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.652e-05/0.6367, allocations: 7.312 kB / 435 MB, free: 3 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.712e-06/0.6367, allocations: 4 kB / 435 MB, free: 2.996 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002247/0.6369, allocations: 67.16 kB / 435.1 MB, free: 2.949 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007662/0.6377, allocations: 428.6 kB / 435.5 MB, free: 2.535 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004405/0.6382, allocations: 192.7 kB / 435.7 MB, free: 2.359 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002157/0.6384, allocations: 94.86 kB / 435.8 MB, free: 2.281 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.077e-05/0.6384, allocations: 0 / 435.8 MB, free: 2.281 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001939/0.6386, allocations: 85.45 kB / 435.9 MB, free: 2.199 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 2.465e-06/0.6387, allocations: 0 / 435.9 MB, free: 2.199 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.0005789/0.6392, allocations: 200.3 kB / 436.1 MB, free: 2.031 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001284/0.6394, allocations: 173.3 kB / 436.2 MB, free: 1.832 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005308/0.6399, allocations: 307.9 kB / 436.5 MB, free: 1.586 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.055e-05/0.64, allocations: 33.33 kB / 436.6 MB, free: 1.551 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001159/0.6401, allocations: 182.3 kB / 436.7 MB, free: 1.398 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.792e-05/0.6402, allocations: 34.27 kB / 436.8 MB, free: 1.371 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.244e-05/0.6402, allocations: 4 kB / 436.8 MB, free: 1.367 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.6404, allocations: 325.6 kB / 437.1 MB, free: 1.047 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001166/0.6405, allocations: 39.45 kB / 437.1 MB, free: 1.016 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002763/0.6408, allocations: 189.2 kB / 437.3 MB, free: 0.7891 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001774/0.641, allocations: 69.97 kB / 437.4 MB, free: 0.7344 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.319e-06/0.641, allocations: 0 / 437.4 MB, free: 0.7344 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004833/0.6415, allocations: 205.9 kB / 437.6 MB, free: 0.5625 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.41e-05/0.6415, allocations: 8.031 kB / 437.6 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.103e-05/0.6415, allocations: 8 kB / 437.6 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.319e-05/0.6416, allocations: 4 kB / 437.6 MB, free: 0.543 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002891/0.6419, allocations: 43.91 kB / 437.7 MB, free: 0.5 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.773e-05/0.6419, allocations: 7.938 kB / 437.7 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002052/0.6421, allocations: 15.34 kB / 437.7 MB, free: 492 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.654e-05/0.6422, allocations: 15.62 kB / 437.7 MB, free: 480 kB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sum.y,sum.u[2],sum.u[1],upSample2.u_super,upSample2.b_super,$CLKPRE.upSample2.b_super,upSample2.y,upSample1.u_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample1.y,upSample2.b,$CLKPRE.upSample2.b,upSample2.dummy,upSample2.u,upSample1.b,$CLKPRE.upSample1.b,upSample1.dummy,upSample1.u,sample1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0001518/0.6423, allocations: 133.1 kB / 437.8 MB, free: 352 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003086/0.6426, allocations: 142.4 kB / 438 MB, free: 220 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003581/0.643, allocations: 126.3 kB / 438.1 MB, free: 116 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.002e-06/0.643, allocations: 0 / 438.1 MB, free: 116 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.6431, allocations: 4.188 kB / 438.1 MB, free: 112 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.005e-05/0.6431, allocations: 3.984 kB / 438.1 MB, free: 108 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003599/0.6434, allocations: 281.7 kB / 438.4 MB, free: 15.82 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.6435, allocations: 0 / 438.4 MB, free: 15.82 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002446/0.6437, allocations: 31.92 kB / 438.4 MB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.806e-06/0.6437, allocations: 3.953 kB / 438.4 MB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.448e-05/0.6438, allocations: 11.81 kB / 438.4 MB, free: 15.78 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.6438, allocations: 0 / 438.4 MB, free: 15.78 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.6438, allocations: 4 kB / 438.4 MB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005561/0.6444, allocations: 270.8 kB / 438.7 MB, free: 15.52 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002041/0.6446, allocations: 131.2 kB / 438.8 MB, free: 15.38 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.318e-05/0.6447, allocations: 11.5 kB / 438.8 MB, free: 15.37 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000156/0.6448, allocations: 11.44 kB / 438.8 MB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.529e-05/0.6449, allocations: 7.984 kB / 438.8 MB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.92e-05/0.645, allocations: 15.36 kB / 438.9 MB, free: 15.34 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003874/0.6453, allocations: 241.5 kB / 439.1 MB, free: 15.15 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.6454, allocations: 0 / 439.1 MB, free: 15.15 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005132/0.6459, allocations: 70.3 kB / 439.2 MB, free: 15.09 MB / 362.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: 20 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,sum.u[1],sum.u[2],sum.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * 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.00235/0.6482, allocations: 1.356 MB / 440.5 MB, free: 13.89 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004997/0.6488, allocations: 155.9 kB / 440.7 MB, free: 13.77 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.6488, allocations: 256 / 440.7 MB, free: 13.77 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.52e-05/0.6489, allocations: 32.19 kB / 440.7 MB, free: 13.75 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006817/0.6496, allocations: 112.7 kB / 440.8 MB, free: 13.66 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0013/0.6509, allocations: 473.3 kB / 441.3 MB, free: 13.21 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004371/0.6514, allocations: 0.7791 MB / 442.1 MB, free: 12.41 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001903/0.6516, allocations: 78.03 kB / 442.1 MB, free: 12.38 MB / 362.7 MB Notification: Performance of SimCode: time 1.092e-06/0.6516, allocations: 3.938 kB / 442.1 MB, free: 12.38 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_Clocked_Examples_Elementary_IntegerSignals_UpSampleCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSampleCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSampleCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSampleFunctions.cpp:281:33: error: no matching function for call to 'ModelicaStandardTables_CombiTimeTable_init2' externalCombiTimeTable__ext = ModelicaStandardTables_CombiTimeTable_init2(fileName_.c_str(), tableName_.c_str(), tmp22.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_UpSampleCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSampleFMU.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_UpSampleCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSampleCalcHelperMain.o] Error 1