Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.795/1.795, allocations: 194.8 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003486/0.0003486, allocations: 12 kB / 264.1 MB, free: 13.46 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08898/0.08937, allocations: 44.5 MB / 308.6 MB, free: 0.8867 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4768/0.5662, allocations: 141.1 MB / 449.6 MB, free: 14.41 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003753/0.5666, allocations: 110 kB / 449.7 MB, free: 14.34 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.641/2.208, allocations: 351.9 MB / 0.7829 GB, free: 50.93 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.955e-06/2.208, allocations: 0 / 0.7829 GB, free: 50.93 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0008943/2.209, allocations: 246 kB / 0.7831 GB, free: 50.89 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: 3009 * Number of variables: 3009 Notification: Performance of Generate backend data structure: time 0.0507/2.26, allocations: 10.95 MB / 0.7938 GB, free: 47.31 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.016e-05/2.26, allocations: 11.22 kB / 0.7938 GB, free: 47.31 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007286/2.267, allocations: 1.544 MB / 0.7953 GB, free: 46.58 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04504/2.312, allocations: 5.417 MB / 0.8006 GB, free: 45.18 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03069/2.343, allocations: 9.403 MB / 0.8098 GB, free: 37.25 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001378/2.344, allocations: 0.798 MB / 0.8106 GB, free: 36.45 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006702/2.351, allocations: 1.035 MB / 0.8116 GB, free: 35.42 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06347/2.415, allocations: 17.93 MB / 0.8291 GB, free: 18.76 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006853/2.415, allocations: 27.73 kB / 0.8291 GB, free: 18.73 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00514/2.42, allocations: 451.9 kB / 0.8296 GB, free: 18.29 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00137/2.422, allocations: 0.7365 MB / 0.8303 GB, free: 17.55 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06841/2.49, allocations: 16.74 MB / 0.8466 GB, free: 0.7852 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4861/2.976, allocations: 58.32 MB / 0.9036 GB, free: 35.6 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04648/3.023, allocations: 23.48 MB / 0.9265 GB, free: 17.63 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07995/3.103, allocations: 21.61 MB / 0.9476 GB, free: 6.75 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001208/3.103, allocations: 96.72 kB / 0.9477 GB, free: 6.668 MB / 426.7 MB Notification: Performance of pre-optimization done (n=672): time 1.54e-05/3.103, allocations: 0 / 0.9477 GB, free: 6.668 MB / 426.7 MB Notification: Performance of matching and sorting (n=697): time 0.1388/3.242, allocations: 39.12 MB / 0.9859 GB, free: 3.094 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001136/3.242, allocations: 141.5 kB / 0.9861 GB, free: 2.992 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009014/3.251, allocations: 3.605 MB / 0.9896 GB, free: 1.625 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001609/3.253, allocations: 127.9 kB / 0.9897 GB, free: 1.516 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004189/3.257, allocations: 3.998 MB / 0.9936 GB, free: 14.4 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004372/3.261, allocations: 2.314 MB / 0.9959 GB, free: 12.6 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00111/3.263, allocations: 134.1 kB / 0.996 GB, free: 12.5 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0007467/3.263, allocations: 0.599 MB / 0.9966 GB, free: 12.06 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01323/3.277, allocations: 4.571 MB / 1.001 GB, free: 8.754 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01539/3.292, allocations: 6.128 MB / 1.007 GB, free: 2.77 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.3662/3.658, allocations: 6.183 MB / 1.013 GB, free: 78.73 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.277e-05/3.658, allocations: 14.09 kB / 1.013 GB, free: 78.73 MB / 458.7 MB Notification: Performance of matching and sorting (n=939) (initialization): time 0.04273/3.701, allocations: 13.77 MB / 1.027 GB, free: 78.45 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.709e-05/3.701, allocations: 25.91 kB / 1.027 GB, free: 78.45 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001171/3.701, allocations: 44.88 kB / 1.027 GB, free: 78.45 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01451/3.716, allocations: 4.029 MB / 1.031 GB, free: 78.36 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0105/3.726, allocations: 1.322 MB / 1.032 GB, free: 78.36 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02737/3.754, allocations: 16.96 MB / 1.048 GB, free: 71.91 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00826/3.762, allocations: 353.4 kB / 1.049 GB, free: 71.91 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001818/3.764, allocations: 298.8 kB / 1.049 GB, free: 71.91 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 197 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (675): * Single equations (assignments): 636 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 31 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(7,59.2%) 28,(1,100.0%) 1} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,12 76} Notification: Performance of prepare postOptimizeDAE: time 0.01125/3.775, allocations: 3.925 MB / 1.053 GB, free: 71.8 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002222/3.777, allocations: 0.5351 MB / 1.053 GB, free: 71.8 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03724/3.815, allocations: 13.41 MB / 1.066 GB, free: 70.96 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002035/3.815, allocations: 150.8 kB / 1.067 GB, free: 70.89 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.944e-05/3.815, allocations: 10.8 kB / 1.067 GB, free: 70.88 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001507/3.815, allocations: 34.62 kB / 1.067 GB, free: 70.88 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06996/3.885, allocations: 26.91 MB / 1.093 GB, free: 58.73 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001089/3.885, allocations: 10.14 kB / 1.093 GB, free: 58.73 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007764/3.893, allocations: 0.8797 MB / 1.094 GB, free: 58.71 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01345/3.907, allocations: 3.927 MB / 1.098 GB, free: 57.52 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00172/3.908, allocations: 153.9 kB / 1.098 GB, free: 57.43 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02881/3.937, allocations: 20.89 MB / 1.118 GB, free: 42.07 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.602e-06/3.937, allocations: 7.781 kB / 1.118 GB, free: 42.07 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.049/3.986, allocations: 20.23 MB / 1.138 GB, free: 28.2 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005665/3.992, allocations: 1.666 MB / 1.14 GB, free: 26.69 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002425/3.994, allocations: 116.8 kB / 1.14 GB, free: 26.58 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007241/4.002, allocations: 309.2 kB / 1.14 GB, free: 26.36 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002591/4.004, allocations: 0.5086 MB / 1.14 GB, free: 26.04 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009459/4.005, allocations: 193.7 kB / 1.141 GB, free: 25.87 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.006594/4.012, allocations: 2.73 MB / 1.143 GB, free: 23.58 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.72e-07/4.012, allocations: 0 / 1.143 GB, free: 23.58 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01133/4.023, allocations: 1.981 MB / 1.145 GB, free: 21.61 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 10 (imcQS.inertiaRotor.phi,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.w,imc.inertiaRotor.phi,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.strayReluctance.Phi.re,imc.stator.strayReluctance.Phi.im,imc.stator.zeroInductor.i0,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (455): * Single equations (assignments): 413 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 31 * 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: 6 {(1,100.0%) 1,(2,100.0%) 12,(1,100.0%) 1,(1,100.0%) 12,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,12 76} Notification: Performance of Backend phase and start with SimCode phase: time 0.05192/4.075, allocations: 22.02 MB / 1.167 GB, free: 1.832 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.04489/4.12, allocations: 12.49 MB / 1.179 GB, free: 9.223 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.032e-05/4.12, allocations: 448 / 1.179 GB, free: 9.223 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.3633/4.483, allocations: 6.96 MB / 1.186 GB, free: 92.8 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01076/4.494, allocations: 1.178 MB / 1.187 GB, free: 92.78 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1857/4.68, allocations: 96.85 MB / 1.281 GB, free: 41.08 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01337/4.693, allocations: 6.906 MB / 1.288 GB, free: 40.1 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01029/4.704, allocations: 4.076 MB / 1.292 GB, free: 38.72 MB / 474.7 MB Notification: Performance of SimCode: time 1.132e-06/4.704, allocations: 0 / 1.292 GB, free: 38.72 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_InitializeCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_InitializeCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_InitializeCalcHelperMain.cpp:28: ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_InitializeFunctions.cpp:418:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp234 = 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_InitializeFunctions.cpp:418:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp234 = 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_InitializeCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_InitializeFMU.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_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_InitializeCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_InitializeCalcHelperMain.o] Error 1