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.IMS_Start.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.IMS_Start,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.923/1.923, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003514/0.0003512, allocations: 11.94 kB / 264.1 MB, free: 13.44 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09033/0.09071, allocations: 44.51 MB / 308.6 MB, free: 0.8672 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5016/0.5924, allocations: 157 MB / 465.6 MB, free: 14.89 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003664/0.5928, allocations: 111.8 kB / 465.7 MB, free: 14.83 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.076/3.669, allocations: 0.5738 GB / 1.029 GB, free: 12.93 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.956e-06/3.669, allocations: 0 / 1.029 GB, free: 12.93 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.00205/3.671, allocations: 426.3 kB / 1.029 GB, free: 12.89 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5087 * Number of variables: 5087 Notification: Performance of Generate backend data structure: time 0.0912/3.762, allocations: 18.04 MB / 1.047 GB, free: 7.312 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.315e-05/3.762, allocations: 9.938 kB / 1.047 GB, free: 7.312 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01481/3.777, allocations: 3 MB / 1.05 GB, free: 7.102 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06879/3.846, allocations: 8.515 MB / 1.058 GB, free: 6.074 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04797/3.894, allocations: 14.6 MB / 1.072 GB, free: 4.328 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002277/3.896, allocations: 1.339 MB / 1.073 GB, free: 4.289 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009117/3.906, allocations: 1.746 MB / 1.075 GB, free: 4.277 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0993/4.005, allocations: 30.73 MB / 1.105 GB, free: 2.047 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000993/4.006, allocations: 28.16 kB / 1.105 GB, free: 2.035 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007863/4.014, allocations: 0.748 MB / 1.106 GB, free: 2.035 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001842/4.016, allocations: 1.193 MB / 1.107 GB, free: 1.992 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0861/4.102, allocations: 27.81 MB / 1.134 GB, free: 13.92 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6937/4.796, allocations: 99.54 MB / 1.231 GB, free: 19.81 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05778/4.853, allocations: 35.55 MB / 1.266 GB, free: 18.97 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1075/4.961, allocations: 39.43 MB / 1.305 GB, free: 17.51 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001579/4.961, allocations: 151 kB / 1.305 GB, free: 17.46 MB / 490.7 MB Notification: Performance of pre-optimization done (n=1283): time 1.83e-05/4.961, allocations: 0 / 1.305 GB, free: 17.46 MB / 490.7 MB Notification: Performance of matching and sorting (n=1291): time 0.981/5.942, allocations: 106.8 MB / 1.409 GB, free: 68.21 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001315/5.942, allocations: 197.4 kB / 1.409 GB, free: 68.11 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01288/5.955, allocations: 5.014 MB / 1.414 GB, free: 67.72 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.002902/5.958, allocations: 203.3 kB / 1.414 GB, free: 67.69 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.004905/5.963, allocations: 6.273 MB / 1.421 GB, free: 64.37 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.007083/5.97, allocations: 4.238 MB / 1.425 GB, free: 61.61 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003162/5.973, allocations: 217.8 kB / 1.425 GB, free: 61.61 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.00158/5.975, allocations: 0.8098 MB / 1.426 GB, free: 61.27 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02222/5.997, allocations: 8.349 MB / 1.434 GB, free: 61.25 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02496/6.022, allocations: 10.48 MB / 1.444 GB, free: 59.18 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02584/6.048, allocations: 9.947 MB / 1.454 GB, free: 59.02 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001089/6.048, allocations: 17 kB / 1.454 GB, free: 59.02 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1574) (initialization): time 0.07286/6.121, allocations: 24.95 MB / 1.478 GB, free: 52.36 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 8.008e-05/6.121, allocations: 26.84 kB / 1.478 GB, free: 52.36 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001762/6.122, allocations: 59.44 kB / 1.478 GB, free: 52.36 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03093/6.152, allocations: 9.031 MB / 1.487 GB, free: 49.61 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01571/6.168, allocations: 1.891 MB / 1.489 GB, free: 49.55 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06394/6.232, allocations: 30.64 MB / 1.519 GB, free: 29.39 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01778/6.25, allocations: 0.553 MB / 1.519 GB, free: 29.21 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004527/6.255, allocations: 468.3 kB / 1.52 GB, free: 29.12 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 244 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (992): * Single equations (assignments): 928 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 51 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 12 * 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: 7 {(1,100.0%) 1,(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: 5 {6 9,6 9,6 9,6 9,42 268} Notification: Performance of prepare postOptimizeDAE: time 0.02756/6.282, allocations: 6.754 MB / 1.526 GB, free: 25.66 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005204/6.287, allocations: 0.8562 MB / 1.527 GB, free: 24.8 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07685/6.364, allocations: 25.76 MB / 1.552 GB, free: 2.727 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.4743/6.839, allocations: 21.65 MB / 1.574 GB, free: 66.39 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.63e-05/6.839, allocations: 12.55 kB / 1.574 GB, free: 66.39 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003316/6.839, allocations: 53.58 kB / 1.574 GB, free: 66.39 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1355/6.975, allocations: 48.86 MB / 1.621 GB, free: 64.72 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001375/6.975, allocations: 4.719 kB / 1.621 GB, free: 64.72 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01233/6.987, allocations: 1.379 MB / 1.623 GB, free: 64.72 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02943/7.017, allocations: 9.133 MB / 1.632 GB, free: 64.49 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00304/7.02, allocations: 274.3 kB / 1.632 GB, free: 64.49 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05571/7.075, allocations: 36.88 MB / 1.668 GB, free: 41.15 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.802e-06/7.076, allocations: 5.719 kB / 1.668 GB, free: 41.15 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.09522/7.171, allocations: 38.4 MB / 1.705 GB, free: 23.58 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01056/7.181, allocations: 2.831 MB / 1.708 GB, free: 21.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00496/7.186, allocations: 188 kB / 1.708 GB, free: 21.31 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.012/7.198, allocations: 0.5181 MB / 1.709 GB, free: 20.94 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004765/7.203, allocations: 0.9772 MB / 1.71 GB, free: 20.32 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003139/7.206, allocations: 343.7 kB / 1.71 GB, free: 20.02 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.009884/7.216, allocations: 3.83 MB / 1.714 GB, free: 16.85 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.102e-06/7.216, allocations: 0 / 1.714 GB, free: 16.85 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.02073/7.237, allocations: 3.263 MB / 1.717 GB, free: 13.61 MB / 0.4948 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (730): * Single equations (assignments): 664 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 51 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(2,100.0%) 12,(1,100.0%) 1} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,42 268} Notification: Performance of Backend phase and start with SimCode phase: time 0.6526/7.89, allocations: 41.93 MB / 1.758 GB, free: 73.38 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.06283/7.953, allocations: 21.52 MB / 1.779 GB, free: 72.08 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.398e-05/7.953, allocations: 3.281 kB / 1.779 GB, free: 72.08 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.03769/7.99, allocations: 12.43 MB / 1.791 GB, free: 70.71 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01821/8.009, allocations: 1.973 MB / 1.793 GB, free: 70.68 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8128/8.822, allocations: 160.3 MB / 1.95 GB, free: 95.53 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02808/8.85, allocations: 11.57 MB / 1.961 GB, free: 94.48 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01843/8.868, allocations: 6.843 MB / 1.968 GB, free: 94.48 MB / 0.5261 GB Notification: Performance of SimCode: time 1.212e-06/8.868, allocations: 0 / 1.968 GB, free: 94.48 MB / 0.5261 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_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_StartCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_StartCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_StartCalcHelperMain.cpp:28: ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_StartFunctions.cpp:588:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp405 = 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_IMS_StartFunctions.cpp:588:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp405 = 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_IMS_StartCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_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_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_StartCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_StartCalcHelperMain.o] Error 1