Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001434/0.001434, allocations: 186 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.861/1.861, allocations: 205.4 MB / 222.5 MB, free: 9.141 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001113/0.001113, allocations: 84.44 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003746/0.0003745, allocations: 8 kB / 327.1 MB, free: 88 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3196/0.32, allocations: 47.57 MB / 374.7 MB, free: 45.34 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5087/0.8288, allocations: 153.2 MB / 0.5155 GB, free: 65.79 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003312/0.8291, allocations: 100.6 kB / 0.5156 GB, free: 65.79 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.951/2.78, allocations: 466.4 MB / 0.971 GB, free: 4.457 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.976e-06/2.78, allocations: 4 kB / 0.971 GB, free: 4.453 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001223/2.781, allocations: 335.6 kB / 0.9714 GB, free: 4.125 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: 3951 * Number of variables: 3951 Notification: Performance of Generate backend data structure: time 0.7428/3.524, allocations: 14.41 MB / 0.9854 GB, free: 17.89 MB / 442.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.822e-05/3.524, allocations: 7.312 kB / 0.9854 GB, free: 17.89 MB / 442.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008978/3.533, allocations: 2.029 MB / 0.9874 GB, free: 17.76 MB / 442.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05672/3.59, allocations: 6.747 MB / 0.994 GB, free: 16.98 MB / 442.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03735/3.627, allocations: 11.5 MB / 1.005 GB, free: 15.76 MB / 442.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001862/3.629, allocations: 1.045 MB / 1.006 GB, free: 15.73 MB / 442.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007114/3.636, allocations: 1.361 MB / 1.008 GB, free: 15.72 MB / 442.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07389/3.71, allocations: 24.11 MB / 1.031 GB, free: 14.08 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000744/3.711, allocations: 23.75 kB / 1.031 GB, free: 14.08 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005083/3.716, allocations: 0.5799 MB / 1.032 GB, free: 14.08 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001356/3.718, allocations: 0.9348 MB / 1.033 GB, free: 14.05 MB / 442.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06248/3.78, allocations: 22.06 MB / 1.054 GB, free: 13.6 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1971/3.977, allocations: 77.5 MB / 1.13 GB, free: 324 kB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4673/4.445, allocations: 32.66 MB / 1.162 GB, free: 51.9 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1026/4.547, allocations: 32.66 MB / 1.194 GB, free: 50.71 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001333/4.548, allocations: 129.9 kB / 1.194 GB, free: 50.66 MB / 490.8 MB Notification: Performance of pre-optimization done (n=1021): time 1.486e-05/4.548, allocations: 0 / 1.194 GB, free: 50.66 MB / 490.8 MB Notification: Performance of matching and sorting (n=1029): time 0.5231/5.071, allocations: 94.37 MB / 1.286 GB, free: 33.12 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.874e-05/5.071, allocations: 172.7 kB / 1.286 GB, free: 32.93 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009145/5.08, allocations: 4.327 MB / 1.29 GB, free: 29.28 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.002143/5.082, allocations: 169.7 kB / 1.29 GB, free: 29.11 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003243/5.085, allocations: 4.893 MB / 1.295 GB, free: 24.72 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.004879/5.09, allocations: 3.374 MB / 1.299 GB, free: 21.67 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001534/5.092, allocations: 176 kB / 1.299 GB, free: 21.5 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0008142/5.093, allocations: 0.7086 MB / 1.299 GB, free: 20.9 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01658/5.109, allocations: 6.832 MB / 1.306 GB, free: 15.04 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01856/5.128, allocations: 8.555 MB / 1.314 GB, free: 7.004 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01973/5.148, allocations: 8.131 MB / 1.322 GB, free: 15.86 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.959e-05/5.148, allocations: 12 kB / 1.322 GB, free: 15.85 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.4361/5.584, allocations: 20.97 MB / 1.343 GB, free: 72.98 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 6.438e-05/5.584, allocations: 26 kB / 1.343 GB, free: 72.98 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001179/5.584, allocations: 47.47 kB / 1.343 GB, free: 72.98 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02834/5.612, allocations: 8.516 MB / 1.351 GB, free: 72.78 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0115/5.624, allocations: 1.406 MB / 1.353 GB, free: 72.78 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05149/5.676, allocations: 28.15 MB / 1.38 GB, free: 64.64 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01019/5.686, allocations: 429.9 kB / 1.381 GB, free: 64.64 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002397/5.688, allocations: 374.8 kB / 1.381 GB, free: 64.64 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 197 * Number of states: 0 () * Number of discrete variables: 12 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStepYDQS[1].y,booleanStepYDQS[2].y,booleanStepYDQS[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (735): * Single equations (assignments): 706 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * 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: 5 {(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 1} * Non-linear torn systems: 3 {6 9,6 9,46 263} Notification: Performance of prepare postOptimizeDAE: time 0.01478/5.703, allocations: 5.359 MB / 1.386 GB, free: 64.52 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002863/5.706, allocations: 0.6976 MB / 1.387 GB, free: 64.52 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05803/5.764, allocations: 21.43 MB / 1.408 GB, free: 63.86 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003518/5.764, allocations: 247.2 kB / 1.408 GB, free: 63.86 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.447e-05/5.764, allocations: 9.719 kB / 1.408 GB, free: 63.86 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002063/5.765, allocations: 43.38 kB / 1.408 GB, free: 63.86 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1077/5.872, allocations: 40.44 MB / 1.448 GB, free: 49.04 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001423/5.872, allocations: 3.438 kB / 1.448 GB, free: 49.04 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008854/5.881, allocations: 0.9906 MB / 1.448 GB, free: 49 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.029/5.91, allocations: 8.604 MB / 1.457 GB, free: 46.42 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002451/5.913, allocations: 226.4 kB / 1.457 GB, free: 46.29 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05557/5.968, allocations: 32.51 MB / 1.489 GB, free: 22.85 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.121e-06/5.969, allocations: 7.625 kB / 1.489 GB, free: 22.85 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4961/6.465, allocations: 33.7 MB / 1.522 GB, free: 71.72 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008493/6.473, allocations: 2.367 MB / 1.524 GB, free: 71.62 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002976/6.476, allocations: 162.1 kB / 1.524 GB, free: 71.62 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008835/6.485, allocations: 402 kB / 1.525 GB, free: 71.62 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003544/6.489, allocations: 0.7916 MB / 1.525 GB, free: 71.62 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001393/6.49, allocations: 272.9 kB / 1.526 GB, free: 71.62 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.008003/6.498, allocations: 3.31 MB / 1.529 GB, free: 71.44 MB / 0.4949 GB Notification: Performance of sort global known variables: time 6.02e-07/6.498, allocations: 0.7656 kB / 1.529 GB, free: 71.44 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01434/6.512, allocations: 2.648 MB / 1.531 GB, free: 71.44 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 10 (imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi,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,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 12 (booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStepYDQS[1].y,booleanStepYDQS[2].y,booleanStepYDQS[3].y,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (520): * Single equations (assignments): 490 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 3 {6 9,6 9,46 263} Notification: Performance of Backend phase and start with SimCode phase: time 0.08397/6.596, allocations: 33.73 MB / 1.564 GB, free: 68.68 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.0474/6.644, allocations: 17.8 MB / 1.582 GB, free: 67.65 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 9.678e-06/6.644, allocations: 0 / 1.582 GB, free: 67.65 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.02945/6.673, allocations: 10.34 MB / 1.592 GB, free: 66.59 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0133/6.687, allocations: 1.586 MB / 1.593 GB, free: 66.56 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6557/7.342, allocations: 127.7 MB / 1.718 GB, free: 90.34 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0194/7.362, allocations: 9.239 MB / 1.727 GB, free: 89.38 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01329/7.375, allocations: 5.243 MB / 1.732 GB, free: 89.38 MB / 0.5105 GB Notification: Performance of SimCode: time 1.563e-06/7.375, allocations: 0 / 1.732 GB, free: 89.38 MB / 0.5105 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." -DUSE_LOGGER -c -o OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YDCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YDCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YDCalcHelperMain.cpp:28: ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YDFunctions.cpp:417:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp250 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YDFunctions.cpp:417:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp250 = 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_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YDCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YDFMU.cpp:11: /var/lib/jenkins1/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_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YDCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YDCalcHelperMain.o] Error 1