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.828/1.828, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.076e-05/3.093e-05, allocations: 4 kB / 255.5 MB, free: 3.074 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08963/0.08969, allocations: 44.5 MB / 300 MB, free: 6.516 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4905/0.5802, allocations: 145 MB / 445 MB, free: 15.77 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003469/0.5806, allocations: 97.38 kB / 445.1 MB, free: 15.71 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.752/2.333, allocations: 357.9 MB / 0.7841 GB, free: 50.08 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.803e-06/2.333, allocations: 4 kB / 0.7841 GB, free: 50.08 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001172/2.334, allocations: 255.2 kB / 0.7844 GB, free: 50.04 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.05002/2.384, allocations: 10.52 MB / 0.7946 GB, free: 45.5 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.212e-05/2.384, allocations: 11.28 kB / 0.7947 GB, free: 45.5 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0076/2.392, allocations: 1.554 MB / 0.7962 GB, free: 44.68 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04582/2.438, allocations: 5.409 MB / 0.8015 GB, free: 42.52 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03364/2.471, allocations: 9.443 MB / 0.8107 GB, free: 34.49 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001251/2.473, allocations: 0.8094 MB / 0.8115 GB, free: 33.68 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005537/2.478, allocations: 1.064 MB / 0.8125 GB, free: 32.62 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05974/2.538, allocations: 17.93 MB / 0.83 GB, free: 14.71 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007839/2.539, allocations: 19.81 kB / 0.83 GB, free: 14.7 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005129/2.544, allocations: 467.5 kB / 0.8305 GB, free: 14.24 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001407/2.546, allocations: 0.7449 MB / 0.8312 GB, free: 13.5 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.405/2.951, allocations: 16.55 MB / 0.8474 GB, free: 45.56 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1582/3.109, allocations: 58.1 MB / 0.9041 GB, free: 33.62 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03713/3.146, allocations: 26.03 MB / 0.9295 GB, free: 13.82 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01844/3.164, allocations: 7.06 MB / 0.9364 GB, free: 10.8 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06701/3.232, allocations: 22.49 MB / 0.9584 GB, free: 0 / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01574/3.247, allocations: 5.416 MB / 0.9637 GB, free: 13.67 MB / 442.7 MB Notification: Performance of pre-optimization done (n=696): time 1.436e-05/3.247, allocations: 2.781 kB / 0.9637 GB, free: 13.67 MB / 442.7 MB Notification: Performance of matching and sorting (n=714): time 0.0973/3.345, allocations: 28.94 MB / 0.9919 GB, free: 13.79 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003023/3.345, allocations: 430.9 kB / 0.9923 GB, free: 13.28 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009706/3.355, allocations: 3.458 MB / 0.9957 GB, free: 10.13 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001647/3.356, allocations: 137.8 kB / 0.9959 GB, free: 9.996 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006058/3.363, allocations: 4.08 MB / 0.9998 GB, free: 6.32 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004677/3.367, allocations: 2.382 MB / 1.002 GB, free: 4.168 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001317/3.369, allocations: 136 kB / 1.002 GB, free: 4.035 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0008696/3.37, allocations: 0.6013 MB / 1.003 GB, free: 3.512 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01547/3.385, allocations: 4.563 MB / 1.007 GB, free: 0 / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01521/3.4, allocations: 6.115 MB / 1.013 GB, free: 9.828 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01541/3.416, allocations: 5.455 MB / 1.019 GB, free: 5.109 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.865e-05/3.416, allocations: 16 kB / 1.019 GB, free: 5.094 MB / 474.7 MB Notification: Performance of matching and sorting (n=944) (initialization): time 0.406/3.822, allocations: 13.45 MB / 1.032 GB, free: 90.75 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001246/3.822, allocations: 55.5 kB / 1.032 GB, free: 90.72 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001414/3.822, allocations: 44.31 kB / 1.032 GB, free: 90.72 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01449/3.837, allocations: 3.849 MB / 1.036 GB, free: 90.62 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01088/3.848, allocations: 1.3 MB / 1.037 GB, free: 90.62 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02433/3.872, allocations: 16.63 MB / 1.053 GB, free: 82.86 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008562/3.881, allocations: 376.7 kB / 1.054 GB, free: 82.86 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002082/3.883, allocations: 302.8 kB / 1.054 GB, free: 82.86 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.003003/3.886, allocations: 497.5 kB / 1.054 GB, free: 82.75 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002246/3.888, allocations: 0.5421 MB / 1.055 GB, free: 82.75 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03989/3.928, allocations: 13.31 MB / 1.068 GB, free: 82.14 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002384/3.928, allocations: 155.8 kB / 1.068 GB, free: 82.14 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.103e-05/3.928, allocations: 7.625 kB / 1.068 GB, free: 82.14 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001613/3.929, allocations: 34.88 kB / 1.068 GB, free: 82.14 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0715/4, allocations: 26.76 MB / 1.094 GB, free: 75.79 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.046e-05/4, allocations: 3.469 kB / 1.094 GB, free: 75.79 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008098/4.008, allocations: 0.8696 MB / 1.095 GB, free: 75.76 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01339/4.022, allocations: 3.93 MB / 1.099 GB, free: 74.59 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001663/4.023, allocations: 162.5 kB / 1.099 GB, free: 74.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0286/4.052, allocations: 20.78 MB / 1.119 GB, free: 59.27 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.252e-06/4.052, allocations: 6.062 kB / 1.119 GB, free: 59.27 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04947/4.102, allocations: 19.73 MB / 1.139 GB, free: 50.43 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006353/4.108, allocations: 1.649 MB / 1.14 GB, free: 49.55 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002828/4.111, allocations: 122.4 kB / 1.14 GB, free: 49.46 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007248/4.118, allocations: 301.3 kB / 1.141 GB, free: 49.38 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002774/4.121, allocations: 0.512 MB / 1.141 GB, free: 49.28 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001758/4.123, allocations: 195.2 kB / 1.141 GB, free: 49.23 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.007114/4.13, allocations: 2.629 MB / 1.144 GB, free: 47.82 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.102e-06/4.13, allocations: 5.438 kB / 1.144 GB, free: 47.82 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01162/4.142, allocations: 2.027 MB / 1.146 GB, free: 45.82 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.05492/4.197, allocations: 21.45 MB / 1.167 GB, free: 26.71 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03089/4.228, allocations: 11.69 MB / 1.178 GB, free: 16.07 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.556e-06/4.228, allocations: 0 / 1.178 GB, free: 16.07 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01971/4.247, allocations: 6.603 MB / 1.185 GB, free: 10.06 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01366/4.261, allocations: 1.2 MB / 1.186 GB, free: 9.113 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4606/4.722, allocations: 22.53 MB / 1.208 GB, free: 87.85 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01273/4.735, allocations: 6.976 MB / 1.215 GB, free: 86.98 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009696/4.744, allocations: 4.138 MB / 1.219 GB, free: 86.98 MB / 474.7 MB Notification: Performance of SimCode: time 1.633e-06/4.744, allocations: 3.562 kB / 1.219 GB, free: 86.98 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