Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_trunk_cpp_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.221/2.221, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.679e-05/3.685e-05, allocations: 0 / 292.2 MB, free: 8.742 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.1202, allocations: 50.41 MB / 342.6 MB, free: 6.305 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4419/0.5621, allocations: 81.06 MB / 423.7 MB, free: 13.1 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002787/0.5624, allocations: 72.84 kB / 423.8 MB, free: 13.07 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0256/0.588, allocations: 5.791 MB / 429.6 MB, free: 8.172 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.5881, allocations: 0 / 429.6 MB, free: 8.172 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.439e-05/0.5881, allocations: 4 kB / 429.6 MB, free: 8.168 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: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.00101/0.5891, allocations: 0.498 MB / 430.1 MB, free: 7.637 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.101e-05/0.5892, allocations: 8.031 kB / 430.1 MB, free: 7.629 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.204e-05/0.5893, allocations: 49.8 kB / 430.1 MB, free: 7.582 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000204/0.5895, allocations: 35.61 kB / 430.1 MB, free: 7.547 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005153/0.59, allocations: 263 kB / 430.4 MB, free: 7.266 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.501e-05/0.5901, allocations: 7.938 kB / 430.4 MB, free: 7.262 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.592e-05/0.5902, allocations: 15.94 kB / 430.4 MB, free: 7.25 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004324/0.5906, allocations: 159.7 kB / 430.6 MB, free: 7.133 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.8e-05/0.5906, allocations: 4 kB / 430.6 MB, free: 7.129 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.964e-05/0.5907, allocations: 7.891 kB / 430.6 MB, free: 7.125 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.121e-05/0.5907, allocations: 4 kB / 430.6 MB, free: 7.121 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003599/0.5911, allocations: 117.8 kB / 430.7 MB, free: 7.039 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00135/0.5924, allocations: 0.5718 MB / 431.3 MB, free: 6.512 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000418/0.5929, allocations: 156.5 kB / 431.4 MB, free: 6.395 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002374/0.5931, allocations: 88.02 kB / 431.5 MB, free: 6.336 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.34e-05/0.5932, allocations: 7.953 kB / 431.5 MB, free: 6.328 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003053/0.5935, allocations: 116.4 kB / 431.6 MB, free: 6.227 MB / 346.7 MB Notification: Performance of pre-optimization done (n=20): time 3.226e-06/0.5935, allocations: 3.938 kB / 431.6 MB, free: 6.223 MB / 346.7 MB Notification: Performance of matching and sorting (n=20): time 0.0005506/0.5941, allocations: 179.1 kB / 431.8 MB, free: 6.078 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.855e-05/0.5941, allocations: 55.41 kB / 431.9 MB, free: 6.012 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000394/0.5946, allocations: 229.7 kB / 432.1 MB, free: 5.816 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.895e-05/0.5946, allocations: 28.64 kB / 432.1 MB, free: 5.785 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001394/0.5947, allocations: 200.7 kB / 432.3 MB, free: 5.605 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.835e-05/0.5948, allocations: 72.33 kB / 432.4 MB, free: 5.543 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.482e-05/0.5949, allocations: 7 kB / 432.4 MB, free: 5.539 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.595, allocations: 318.5 kB / 432.7 MB, free: 5.223 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001508/0.5952, allocations: 57.11 kB / 432.8 MB, free: 5.188 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001895/0.5954, allocations: 81.3 kB / 432.8 MB, free: 5.117 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001843/0.5956, allocations: 61.72 kB / 432.9 MB, free: 5.078 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.57e-06/0.5956, allocations: 7.953 kB / 432.9 MB, free: 5.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004976/0.5961, allocations: 191.1 kB / 433.1 MB, free: 4.922 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.218e-05/0.5962, allocations: 4 kB / 433.1 MB, free: 4.918 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.5962, allocations: 0 / 433.1 MB, free: 4.918 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.227e-05/0.5962, allocations: 4 kB / 433.1 MB, free: 4.914 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004087/0.5966, allocations: 47.86 kB / 433.2 MB, free: 4.867 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.259e-05/0.5966, allocations: 3.984 kB / 433.2 MB, free: 4.863 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002343/0.5969, allocations: 27.88 kB / 433.2 MB, free: 4.84 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.249e-05/0.5969, allocations: 4 kB / 433.2 MB, free: 4.836 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.lossTable.nextTimeEvent,lossTable.nextTimeEvent,$PRE.lossTable.nextTimeEventScaled,lossTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0001197/0.5971, allocations: 116.1 kB / 433.3 MB, free: 4.723 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.923e-05/0.5971, allocations: 27.67 kB / 433.3 MB, free: 4.695 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005693/0.5977, allocations: 209.6 kB / 433.5 MB, free: 4.539 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.035e-06/0.5977, allocations: 4 kB / 433.5 MB, free: 4.535 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.5978, allocations: 0 / 433.5 MB, free: 4.535 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.607e-06/0.5978, allocations: 3.984 kB / 433.5 MB, free: 4.531 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005034/0.5983, allocations: 295.4 kB / 433.8 MB, free: 4.238 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.5983, allocations: 4 kB / 433.8 MB, free: 4.234 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003833/0.5987, allocations: 43.88 kB / 433.9 MB, free: 4.191 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.633e-06/0.5987, allocations: 0 / 433.9 MB, free: 4.191 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.962e-05/0.5988, allocations: 11.17 kB / 433.9 MB, free: 4.184 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.448e-06/0.5988, allocations: 4 kB / 433.9 MB, free: 4.18 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.5988, allocations: 0 / 433.9 MB, free: 4.18 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00072/0.5995, allocations: 293 kB / 434.2 MB, free: 3.949 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001238/0.5997, allocations: 100.8 kB / 434.3 MB, free: 3.832 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.577e-05/0.5997, allocations: 15.27 kB / 434.3 MB, free: 3.82 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001822/0.5999, allocations: 11.36 kB / 434.3 MB, free: 3.812 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.876e-05/0.6, allocations: 7.984 kB / 434.3 MB, free: 3.805 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.486e-05/0.6, allocations: 7.75 kB / 434.3 MB, free: 3.801 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002797/0.6003, allocations: 192.3 kB / 434.5 MB, free: 3.645 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6003, allocations: 0 / 434.5 MB, free: 3.645 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004402/0.6008, allocations: 78.97 kB / 434.6 MB, free: 3.574 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (winding.T,core.T) * Number of discrete variables: 3 ($whenCondition1,lossTable.nextTimeEvent,lossTable.nextTimeEventScaled) * Number of discrete states: 2 (lossTable.nextTimeEvent,lossTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * 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.002192/0.603, allocations: 1.137 MB / 435.7 MB, free: 2.602 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004478/0.6035, allocations: 141.4 kB / 435.9 MB, free: 2.504 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.6035, allocations: 0 / 435.9 MB, free: 2.504 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001998/0.6037, allocations: 84.48 kB / 435.9 MB, free: 2.441 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005072/0.6042, allocations: 42.53 kB / 436 MB, free: 2.406 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001549/0.6058, allocations: 0.519 MB / 436.5 MB, free: 1.891 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004356/0.6063, allocations: 0.7597 MB / 437.3 MB, free: 1.105 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001879/0.6065, allocations: 77.84 kB / 437.3 MB, free: 1.074 MB / 346.7 MB Notification: Performance of SimCode: time 1.152e-06/0.6065, allocations: 0 / 437.3 MB, free: 1.074 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_Thermal_HeatTransfer_Examples_MotorCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Thermal_HeatTransfer_Examples_MotorCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Thermal_HeatTransfer_Examples_MotorCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Thermal_HeatTransfer_Examples_MotorFunctions.cpp:204:33: error: no matching function for call to 'ModelicaStandardTables_CombiTimeTable_init2' externalCombiTimeTable__ext = ModelicaStandardTables_CombiTimeTable_init2(fileName_.c_str(), tableName_.c_str(), tmp5.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_Thermal_HeatTransfer_Examples_MotorCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Thermal_HeatTransfer_Examples_MotorFMU.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_Thermal_HeatTransfer_Examples_MotorCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Thermal_HeatTransfer_Examples_MotorCalcHelperMain.o] Error 1