Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.06/2.06, allocations: 225.8 MB / 239.3 MB, free: 11.21 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.227e-05/3.239e-05, allocations: 4 kB / 292.2 MB, free: 8.742 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1083, allocations: 50.41 MB / 342.6 MB, free: 6.312 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5734/0.6818, allocations: 110.3 MB / 452.9 MB, free: 15.9 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002676/0.6821, allocations: 89.44 kB / 453 MB, free: 15.86 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.224/0.9062, allocations: 52.38 MB / 0.4935 GB, free: 15.88 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.9062, allocations: 4 kB / 0.4935 GB, free: 15.88 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002556/0.9065, allocations: 59.94 kB / 0.4936 GB, free: 15.82 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: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.00824/0.9147, allocations: 2.44 MB / 0.496 GB, free: 13.31 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.248e-05/0.9148, allocations: 12.03 kB / 0.496 GB, free: 13.3 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001173/0.916, allocations: 351.1 kB / 0.4963 GB, free: 12.94 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001349/0.9173, allocations: 336.3 kB / 0.4966 GB, free: 12.61 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005916/0.9233, allocations: 1.767 MB / 0.4984 GB, free: 10.79 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001952/0.9235, allocations: 156.1 kB / 0.4985 GB, free: 10.63 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006067/0.9241, allocations: 211.9 kB / 0.4987 GB, free: 10.43 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007107/0.9312, allocations: 2.6 MB / 0.5012 GB, free: 7.703 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.435e-05/0.9314, allocations: 11.84 kB / 0.5013 GB, free: 7.691 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003336/0.9317, allocations: 87.98 kB / 0.5013 GB, free: 7.605 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001553/0.9319, allocations: 99.97 kB / 0.5014 GB, free: 7.504 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006247/0.9381, allocations: 2.038 MB / 0.5034 GB, free: 5.457 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02342/0.9616, allocations: 8.401 MB / 0.5116 GB, free: 12.84 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004567/0.9662, allocations: 1.57 MB / 0.5132 GB, free: 11.21 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003094/0.9694, allocations: 0.9688 MB / 0.5141 GB, free: 10.24 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005601/0.97, allocations: 142 kB / 0.5142 GB, free: 10.08 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.089e-05/0.9701, allocations: 48.12 kB / 0.5143 GB, free: 10.02 MB / 442.7 MB Notification: Performance of pre-optimization done (n=119): time 5.23e-06/0.9701, allocations: 0 / 0.5143 GB, free: 10.02 MB / 442.7 MB Notification: Performance of matching and sorting (n=135): time 0.01647/0.9866, allocations: 5.029 MB / 0.5192 GB, free: 4.922 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.741e-05/0.9867, allocations: 64.72 kB / 0.5193 GB, free: 4.844 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004581/0.9913, allocations: 1.862 MB / 0.5211 GB, free: 2.934 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002945/0.9916, allocations: 49.7 kB / 0.5211 GB, free: 2.879 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001049/0.9926, allocations: 1.024 MB / 0.5221 GB, free: 1.844 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006048/0.9933, allocations: 465.1 kB / 0.5226 GB, free: 1.383 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001438/0.9934, allocations: 32 kB / 0.5226 GB, free: 1.352 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001878/0.9936, allocations: 358.8 kB / 0.5229 GB, free: 0.9922 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001887/0.9955, allocations: 0.7107 MB / 0.5236 GB, free: 288 kB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2966/1.292, allocations: 0.9474 MB / 0.5246 GB, free: 113.3 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002647/1.295, allocations: 0.8457 MB / 0.5254 GB, free: 113.3 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.149e-05/1.295, allocations: 2.156 kB / 0.5254 GB, free: 113.3 MB / 442.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.008532/1.303, allocations: 2.553 MB / 0.5279 GB, free: 113.2 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.858e-05/1.304, allocations: 11.5 kB / 0.5279 GB, free: 113.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.394e-05/1.304, allocations: 10.09 kB / 0.5279 GB, free: 113.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004005/1.308, allocations: 0.8369 MB / 0.5287 GB, free: 113.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00235/1.31, allocations: 275.2 kB / 0.529 GB, free: 113.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02006/1.33, allocations: 9.285 MB / 0.5381 GB, free: 110.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002506/1.333, allocations: 98.33 kB / 0.5381 GB, free: 110.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003161/1.333, allocations: 56.22 kB / 0.5382 GB, free: 110.5 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 119 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(6,88.9%) 39} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004174/1.333, allocations: 182.9 kB / 0.5384 GB, free: 110.4 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006644/1.334, allocations: 201.4 kB / 0.5386 GB, free: 110.4 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007382/1.341, allocations: 2.468 MB / 0.541 GB, free: 110.3 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.927e-05/1.342, allocations: 15.75 kB / 0.541 GB, free: 110.3 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.96e-05/1.342, allocations: 9.375 kB / 0.541 GB, free: 110.3 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-05/1.342, allocations: 7.266 kB / 0.541 GB, free: 110.3 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01432/1.356, allocations: 5.007 MB / 0.5459 GB, free: 109.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.973e-05/1.356, allocations: 3.906 kB / 0.5459 GB, free: 109.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001967/1.358, allocations: 217.8 kB / 0.5461 GB, free: 109.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003212/1.361, allocations: 0.7076 MB / 0.5468 GB, free: 109.7 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002815/1.362, allocations: 35.78 kB / 0.5468 GB, free: 109.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01298/1.375, allocations: 8.456 MB / 0.5551 GB, free: 104.4 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/1.375, allocations: 0 / 0.5551 GB, free: 104.4 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008586/1.383, allocations: 3.599 MB / 0.5586 GB, free: 102.8 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001699/1.385, allocations: 477.3 kB / 0.5591 GB, free: 102.5 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007111/1.386, allocations: 32.03 kB / 0.5591 GB, free: 102.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002332/1.388, allocations: 94.48 kB / 0.5592 GB, free: 102.5 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005539/1.389, allocations: 111.8 kB / 0.5593 GB, free: 102.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001637/1.389, allocations: 44.58 kB / 0.5593 GB, free: 102.5 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00461/1.394, allocations: 1.453 MB / 0.5608 GB, free: 101.9 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.82e-07/1.394, allocations: 0 / 0.5608 GB, free: 101.9 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00459/1.398, allocations: 0.5961 MB / 0.5613 GB, free: 101.8 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.phi,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 12,(1,100.0%) 6,(2,100.0%) 19} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01518/1.413, allocations: 5.142 MB / 0.5664 GB, free: 99.2 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008397/1.422, allocations: 2.326 MB / 0.5686 GB, free: 98.21 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.135e-05/1.422, allocations: 0 / 0.5686 GB, free: 98.21 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0057/1.428, allocations: 1.651 MB / 0.5702 GB, free: 97.32 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00444/1.432, allocations: 413.7 kB / 0.5706 GB, free: 97.19 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01835/1.451, allocations: 5.029 MB / 0.5755 GB, free: 95.27 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002922/1.454, allocations: 1.994 MB / 0.5775 GB, free: 94.34 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002791/1.456, allocations: 0.9636 MB / 0.5784 GB, free: 93.57 MB / 442.7 MB Notification: Performance of SimCode: time 1.853e-06/1.456, allocations: 0 / 0.5784 GB, free: 93.57 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 OMCppModelica_trunk_cpp_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLossesCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLossesCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLossesCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLossesFunctions.cpp:175:31: error: no matching function for call to 'ModelicaStandardTables_CombiTable1D_init2' externalCombiTable1D__ext = ModelicaStandardTables_CombiTable1D_init2(fileName_.c_str(), tableName_.c_str(), tmp26.getData(), table_.getDim(1), table_.getDim(2), ConstArray(columns_).getData(), columns_.getDim(1), smoothness__ext, extrapolation__ext, verboseRead__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources/ModelicaStandardTables.h:269:23: note: candidate function not viable: 6th argument ('const int *') would lose const qualifier MODELICA_EXPORT void* ModelicaStandardTables_CombiTable1D_init2(_In_z_ const char* fileName, ^ In file included from OMCppModelica_trunk_cpp_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLossesCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLossesFunctions.cpp:481:49: error: use of undeclared identifier '_omcQuot_24746D705661723130_'; did you mean '_omcQuot_24746D705661723131_'? _omcQuot_24746D705661723131_ = std::cos(_omcQuot_24746D705661723130_); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ _omcQuot_24746D705661723131_ ./OMCppModelica_trunk_cpp_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLossesFunctions.cpp:458:12: note: '_omcQuot_24746D705661723131_' declared here double _omcQuot_24746D705661723131_; ^ ./OMCppModelica_trunk_cpp_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLossesFunctions.cpp:518:49: error: use of undeclared identifier '_omcQuot_24746D705661723133_'; did you mean '_omcQuot_24746D705661723134_'? _omcQuot_24746D705661723134_ = std::sin(_omcQuot_24746D705661723133_); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ _omcQuot_24746D705661723134_ ./OMCppModelica_trunk_cpp_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLossesFunctions.cpp:495:12: note: '_omcQuot_24746D705661723134_' declared here double _omcQuot_24746D705661723134_; ^ In file included from OMCppModelica_trunk_cpp_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLossesCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLossesFMU.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 3 errors generated. : recipe for target 'OMCppModelica_trunk_cpp_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLossesCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLossesCalcHelperMain.o] Error 1