Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.927/1.927, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.301e-05/3.309e-05, allocations: 4 kB / 292.2 MB, free: 8.684 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1079, allocations: 50.41 MB / 342.7 MB, free: 6.254 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5536/0.6616, allocations: 162.9 MB / 0.4937 GB, free: 12.6 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00033/0.662, allocations: 103.5 kB / 0.4938 GB, free: 12.55 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.205/3.867, allocations: 0.5723 GB / 1.066 GB, free: 24.25 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.104e-06/3.867, allocations: 4 kB / 1.066 GB, free: 24.24 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.001961/3.869, allocations: 422.1 kB / 1.067 GB, free: 24.2 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5030 * Number of variables: 5030 Notification: Performance of Generate backend data structure: time 0.09095/3.96, allocations: 16.92 MB / 1.083 GB, free: 19.21 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.975e-05/3.96, allocations: 11.09 kB / 1.083 GB, free: 19.21 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0161/3.976, allocations: 2.926 MB / 1.086 GB, free: 19 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06587/4.042, allocations: 7.831 MB / 1.094 GB, free: 17.98 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05411/4.096, allocations: 14.82 MB / 1.108 GB, free: 16.25 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002026/4.099, allocations: 1.321 MB / 1.109 GB, free: 16.21 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00914/4.108, allocations: 1.723 MB / 1.111 GB, free: 16.2 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09579/4.204, allocations: 28.63 MB / 1.139 GB, free: 14.05 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001107/4.205, allocations: 21.95 kB / 1.139 GB, free: 14.04 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007987/4.213, allocations: 0.7427 MB / 1.14 GB, free: 14.04 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002026/4.215, allocations: 1.273 MB / 1.141 GB, free: 14 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08243/4.297, allocations: 24.66 MB / 1.165 GB, free: 12.75 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7182/5.015, allocations: 94.25 MB / 1.257 GB, free: 51.72 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06151/5.077, allocations: 51.48 MB / 1.307 GB, free: 27.43 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01688/5.094, allocations: 7.024 MB / 1.314 GB, free: 27.34 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05013/5.144, allocations: 16.39 MB / 1.33 GB, free: 26.54 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001129/5.144, allocations: 110.8 kB / 1.33 GB, free: 26.49 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=687): time 9.908e-06/5.144, allocations: 2.312 kB / 1.33 GB, free: 26.49 MB / 0.5417 GB Notification: Performance of matching and sorting (n=695): time 0.07401/5.218, allocations: 25.73 MB / 1.355 GB, free: 21.14 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001182/5.218, allocations: 152.2 kB / 1.356 GB, free: 21.04 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01673/5.235, allocations: 6.116 MB / 1.362 GB, free: 20.51 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.001628/5.237, allocations: 138.6 kB / 1.362 GB, free: 20.48 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.006027/5.243, allocations: 7.367 MB / 1.369 GB, free: 16.43 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.003669/5.247, allocations: 2.342 MB / 1.371 GB, free: 14.96 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00144/5.248, allocations: 191.9 kB / 1.371 GB, free: 14.96 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0008632/5.249, allocations: 0.6915 MB / 1.372 GB, free: 14.62 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01213/5.261, allocations: 4.705 MB / 1.377 GB, free: 14.6 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01528/5.276, allocations: 7.907 MB / 1.384 GB, free: 10.73 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01514/5.292, allocations: 6.419 MB / 1.391 GB, free: 10.6 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001609/5.292, allocations: 29.81 kB / 1.391 GB, free: 10.6 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1213) (initialization): time 0.04232/5.334, allocations: 14.92 MB / 1.405 GB, free: 9.805 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001168/5.334, allocations: 52.34 kB / 1.405 GB, free: 9.805 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002239/5.335, allocations: 108.8 kB / 1.405 GB, free: 9.801 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01075/5.345, allocations: 2.443 MB / 1.408 GB, free: 9.699 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01551/5.361, allocations: 2.038 MB / 1.41 GB, free: 9.695 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05156/5.413, allocations: 28.11 MB / 1.437 GB, free: 11.66 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01315/5.426, allocations: 0.5367 MB / 1.438 GB, free: 11.23 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002879/5.429, allocations: 446.2 kB / 1.438 GB, free: 10.81 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 479 * Number of states: 0 () * Number of discrete variables: 12 (rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1064): * Single equations (assignments): 1051 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 8 * 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: 8 {(1,100.0%) 1,(18,41.0%) 100,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003655/5.432, allocations: 0.6921 MB / 1.439 GB, free: 10.26 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002828/5.435, allocations: 0.7623 MB / 1.44 GB, free: 9.492 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5001/5.935, allocations: 13.08 MB / 1.452 GB, free: 86.52 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02744/5.963, allocations: 8.137 MB / 1.46 GB, free: 86.28 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001406/5.963, allocations: 27 kB / 1.46 GB, free: 86.28 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002006/5.963, allocations: 34.03 kB / 1.46 GB, free: 86.28 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08765/6.051, allocations: 27.95 MB / 1.488 GB, free: 84.61 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.415e-05/6.051, allocations: 1.812 kB / 1.488 GB, free: 84.61 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0101/6.061, allocations: 1.106 MB / 1.489 GB, free: 84.61 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0113/6.072, allocations: 2.526 MB / 1.491 GB, free: 84.52 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001701/6.074, allocations: 148.8 kB / 1.491 GB, free: 84.52 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05369/6.128, allocations: 32.56 MB / 1.523 GB, free: 70.28 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.076e-06/6.128, allocations: 5.25 kB / 1.523 GB, free: 70.28 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04841/6.176, allocations: 19.1 MB / 1.542 GB, free: 68.34 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007198/6.184, allocations: 1.774 MB / 1.544 GB, free: 68.24 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003013/6.187, allocations: 130.6 kB / 1.544 GB, free: 68.24 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009875/6.197, allocations: 420.9 kB / 1.544 GB, free: 68.24 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002741/6.199, allocations: 0.5326 MB / 1.545 GB, free: 68.23 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008907/6.2, allocations: 197 kB / 1.545 GB, free: 68.23 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.01289/6.213, allocations: 4.609 MB / 1.549 GB, free: 67.98 MB / 0.5573 GB Notification: Performance of sort global known variables: time 9.61e-07/6.213, allocations: 0 / 1.549 GB, free: 67.98 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01868/6.232, allocations: 3.094 MB / 1.552 GB, free: 67.98 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 11 (ims.stator.core.Phi.re,ims.stator.core.Phi.im,ims.stator.zeroInductor.i0,ims.rotor.core.Phi.re,ims.rotor.core.Phi.im,ims.rotor.zeroInductor.i0,loadInertia.w,quadraticLoadTorque.phi,imsQS.rotor.resistor.plug_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi) * Number of discrete variables: 12 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (567): * Single equations (assignments): 552 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * 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: 11 {(1,100.0%) 5,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12,(1,100.0%) 1,(18,38.0%) 100} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.05012/6.282, allocations: 21.02 MB / 1.573 GB, free: 59.71 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.03238/6.314, allocations: 12.74 MB / 1.585 GB, free: 54.48 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-05/6.315, allocations: 3.219 kB / 1.585 GB, free: 54.48 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.01882/6.333, allocations: 7.315 MB / 1.592 GB, free: 50.91 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01688/6.35, allocations: 1.969 MB / 1.594 GB, free: 50.41 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1052/6.456, allocations: 31.74 MB / 1.625 GB, free: 26.87 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02541/6.481, allocations: 11.3 MB / 1.636 GB, free: 18.43 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01784/6.499, allocations: 6.737 MB / 1.643 GB, free: 12.14 MB / 0.5573 GB Notification: Performance of SimCode: time 1.873e-06/6.499, allocations: 0 / 1.643 GB, free: 12.14 MB / 0.5573 GB 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_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_StartCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_StartCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_StartCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_StartFunctions.cpp:612:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp242 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ ./OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_StartFunctions.cpp:612:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp242 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ In file included from OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_StartCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_StartFMU.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 2 errors generated. : recipe for target 'OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_StartCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_StartCalcHelperMain.o] Error 1