Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.934/1.934, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.39e-05/3.395e-05, allocations: 0 / 255.5 MB, free: 3.059 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09608/0.09615, allocations: 44.5 MB / 300 MB, free: 6.496 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.51/0.6062, allocations: 145 MB / 445 MB, free: 15.79 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003303/0.6066, allocations: 105.1 kB / 445.1 MB, free: 15.73 MB / 346.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2346:7-2347:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$dutyCycle.getDerTableValue. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2312:7-2313:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$dutyCycle.getTableValue. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2358:7-2359:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$dutyCycle.getTableTimeTmin. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2369:7-2370:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$dutyCycle.getTableTimeTmax. Notification: Performance of FrontEnd - DAE generated: time 1.71/2.316, allocations: 357.9 MB / 0.7842 GB, free: 50.16 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.064e-06/2.316, allocations: 0 / 0.7842 GB, free: 50.16 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0009324/2.317, allocations: 259.3 kB / 0.7844 GB, free: 50.12 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: 3076 * Number of variables: 3076 Notification: Performance of Generate backend data structure: time 0.04989/2.367, allocations: 10.53 MB / 0.7947 GB, free: 45.59 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.994e-05/2.367, allocations: 6.562 kB / 0.7947 GB, free: 45.59 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00753/2.375, allocations: 1.556 MB / 0.7962 GB, free: 44.76 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04728/2.422, allocations: 5.407 MB / 0.8015 GB, free: 42.48 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03216/2.454, allocations: 9.449 MB / 0.8107 GB, free: 34.46 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001154/2.456, allocations: 0.8027 MB / 0.8115 GB, free: 33.66 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005376/2.461, allocations: 1.062 MB / 0.8125 GB, free: 32.59 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07185/2.533, allocations: 17.79 MB / 0.8299 GB, free: 14.79 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007202/2.534, allocations: 23.8 kB / 0.8299 GB, free: 14.77 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005435/2.539, allocations: 467.5 kB / 0.8304 GB, free: 14.31 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001759/2.541, allocations: 0.7449 MB / 0.8311 GB, free: 13.57 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4129/2.954, allocations: 16.41 MB / 0.8471 GB, free: 45.55 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1447/3.098, allocations: 58.11 MB / 0.9039 GB, free: 33.67 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03534/3.134, allocations: 25.97 MB / 0.9292 GB, free: 13.89 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01647/3.15, allocations: 7.064 MB / 0.9361 GB, free: 10.88 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06189/3.212, allocations: 22.47 MB / 0.9581 GB, free: 0 / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01531/3.228, allocations: 5.381 MB / 0.9633 GB, free: 13.69 MB / 442.7 MB Notification: Performance of pre-optimization done (n=696): time 2.142e-05/3.228, allocations: 1.469 kB / 0.9633 GB, free: 13.69 MB / 442.7 MB Notification: Performance of matching and sorting (n=714): time 0.0937/3.321, allocations: 28.94 MB / 0.9916 GB, free: 14.04 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002896/3.322, allocations: 429.4 kB / 0.992 GB, free: 13.53 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009991/3.332, allocations: 3.462 MB / 0.9954 GB, free: 10.38 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00163/3.333, allocations: 129.7 kB / 0.9955 GB, free: 10.25 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00592/3.339, allocations: 4.08 MB / 0.9995 GB, free: 6.57 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004663/3.344, allocations: 2.388 MB / 1.002 GB, free: 4.418 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00152/3.346, allocations: 136 kB / 1.002 GB, free: 4.285 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0009722/3.347, allocations: 0.6065 MB / 1.003 GB, free: 3.758 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0143/3.361, allocations: 4.457 MB / 1.007 GB, free: 0 / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01582/3.377, allocations: 6.074 MB / 1.013 GB, free: 9.867 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01603/3.393, allocations: 5.462 MB / 1.018 GB, free: 5.141 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.071e-05/3.393, allocations: 12 kB / 1.018 GB, free: 5.129 MB / 474.7 MB Notification: Performance of matching and sorting (n=944) (initialization): time 0.4013/3.794, allocations: 13.32 MB / 1.031 GB, free: 90.71 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001148/3.795, allocations: 57.73 kB / 1.031 GB, free: 90.68 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001332/3.795, allocations: 44.59 kB / 1.031 GB, free: 90.68 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01423/3.809, allocations: 3.845 MB / 1.035 GB, free: 90.58 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01092/3.82, allocations: 1.307 MB / 1.036 GB, free: 90.58 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02416/3.844, allocations: 16.61 MB / 1.053 GB, free: 82.82 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008959/3.853, allocations: 377.6 kB / 1.053 GB, free: 82.82 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002213/3.855, allocations: 299.4 kB / 1.053 GB, free: 82.82 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 202 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.dutyCycle.nextTimeEvent,dutyCycle.nextTimeEvent,$PRE.dutyCycle.nextTimeEventScaled,dutyCycle.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (685): * Single equations (assignments): 643 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 31 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 9 * 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: 4 {(1,100.0%) 4,(1,100.0%) 5,(1,100.0%) 4,(1,100.0%) 13} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,14 74} Notification: Performance of prepare postOptimizeDAE: time 0.002821/3.858, allocations: 494.1 kB / 1.054 GB, free: 82.71 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002136/3.86, allocations: 0.5402 MB / 1.054 GB, free: 82.71 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04039/3.901, allocations: 13.32 MB / 1.067 GB, free: 82.11 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000244/3.901, allocations: 158.5 kB / 1.067 GB, free: 82.11 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.414e-05/3.901, allocations: 7.906 kB / 1.067 GB, free: 82.11 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001655/3.901, allocations: 29.58 kB / 1.067 GB, free: 82.11 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07677/3.978, allocations: 26.76 MB / 1.094 GB, free: 75.75 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.966e-05/3.978, allocations: 3.781 kB / 1.094 GB, free: 75.75 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008352/3.987, allocations: 0.875 MB / 1.094 GB, free: 75.72 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01406/4.001, allocations: 3.928 MB / 1.098 GB, free: 74.55 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001924/4.003, allocations: 163 kB / 1.098 GB, free: 74.46 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02992/4.033, allocations: 20.78 MB / 1.119 GB, free: 59.25 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/4.033, allocations: 3.656 kB / 1.119 GB, free: 59.25 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05301/4.086, allocations: 19.72 MB / 1.138 GB, free: 50.39 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006036/4.092, allocations: 1.642 MB / 1.14 GB, free: 49.52 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002614/4.094, allocations: 126.4 kB / 1.14 GB, free: 49.43 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007358/4.102, allocations: 300.4 kB / 1.14 GB, free: 49.35 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002522/4.104, allocations: 0.5134 MB / 1.14 GB, free: 49.25 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001072/4.105, allocations: 187.9 kB / 1.141 GB, free: 49.2 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.00638/4.112, allocations: 2.641 MB / 1.143 GB, free: 47.81 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.022e-06/4.112, allocations: 2.844 kB / 1.143 GB, free: 47.81 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01186/4.124, allocations: 2.027 MB / 1.145 GB, free: 45.8 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 11 (imcQS.rotorCage.port_p.reference.gamma,massQS.s,massQS.v,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.zeroInductor.i0,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,vfController.x,mass.s,mass.v) * Number of discrete variables: 3 ($whenCondition1,dutyCycle.nextTimeEvent,dutyCycle.nextTimeEventScaled) * Number of discrete states: 2 (dutyCycle.nextTimeEvent,dutyCycle.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (476): * Single equations (assignments): 432 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 31 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 3,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,14 74} Notification: Performance of Backend phase and start with SimCode phase: time 0.05246/4.176, allocations: 21.46 MB / 1.166 GB, free: 26.7 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0313/4.208, allocations: 11.54 MB / 1.177 GB, free: 16.21 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.234e-05/4.208, allocations: 4 kB / 1.177 GB, free: 16.21 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01894/4.227, allocations: 6.539 MB / 1.184 GB, free: 10.29 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01089/4.238, allocations: 1.206 MB / 1.185 GB, free: 9.336 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4245/4.662, allocations: 22.5 MB / 1.207 GB, free: 87.79 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0154/4.678, allocations: 6.972 MB / 1.214 GB, free: 86.91 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01096/4.689, allocations: 4.141 MB / 1.218 GB, free: 86.91 MB / 474.7 MB Notification: Performance of SimCode: time 1.573e-06/4.689, allocations: 0 / 1.218 GB, free: 86.91 MB / 474.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"." -DUSE_LOGGER -c -o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorCalcHelperMain.cpp:28: ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorFunctions.cpp:578:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp236 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorFunctions.cpp:578:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp236 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorCalcHelperMain.cpp:31: ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorInitialize.cpp:2984:43: warning: magnitude of floating-point constant too large for type 'double'; maximum is 1.7976931348623157E+308 [-Wliteral-range] if (_dutyCycle_P_nextTimeEventScaled_ < 1.797693134862316e+308) { ^ ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorInitialize.cpp:2987:14: warning: magnitude of floating-point constant too large for type 'double'; maximum is 1.7976931348623157E+308 [-Wliteral-range] tmp305 = 1.797693134862316e+308; ^ In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorCalcHelperMain.cpp:34: ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor.cpp:534:45: warning: magnitude of floating-point constant too large for type 'double'; maximum is 1.7976931348623157E+308 [-Wliteral-range] if (_dutyCycle_P_nextTimeEventScaled_ < 1.797693134862316e+308) { ^ ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor.cpp:537:14: warning: magnitude of floating-point constant too large for type 'double'; maximum is 1.7976931348623157E+308 [-Wliteral-range] tmp7 = 1.797693134862316e+308; ^ In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorFMU.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) { ^ 5 warnings and 2 errors generated. : recipe for target 'OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorCalcHelperMain.o] Error 1