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.SynchronousMachines.SMPM_Mains.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.SynchronousMachines.SMPM_Mains,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.96/1.96, allocations: 194.8 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003488/0.0003488, allocations: 8 kB / 264.1 MB, free: 13.47 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09428/0.09466, allocations: 44.52 MB / 308.6 MB, free: 0.8867 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5329/0.6276, allocations: 151.9 MB / 460.5 MB, free: 3.785 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000383/0.628, allocations: 110.3 kB / 460.6 MB, free: 3.727 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.781/2.409, allocations: 389.8 MB / 0.8305 GB, free: 3.906 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.098e-06/2.409, allocations: 4 kB / 0.8305 GB, free: 3.902 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0009835/2.41, allocations: 287.6 kB / 0.8307 GB, free: 3.621 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3386 * Number of variables: 3386 Notification: Performance of Generate backend data structure: time 0.0597/2.47, allocations: 11.95 MB / 0.8424 GB, free: 7.555 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.426e-05/2.47, allocations: 12.03 kB / 0.8424 GB, free: 7.543 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01045/2.481, allocations: 1.97 MB / 0.8443 GB, free: 5.559 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04604/2.527, allocations: 5.233 MB / 0.8495 GB, free: 312 kB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4038/2.93, allocations: 9.659 MB / 0.8589 GB, free: 25.14 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001588/2.932, allocations: 0.9001 MB / 0.8598 GB, free: 25.11 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005974/2.938, allocations: 1.174 MB / 0.8609 GB, free: 25.11 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06662/3.005, allocations: 19.58 MB / 0.88 GB, free: 23.66 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007393/3.006, allocations: 16.8 kB / 0.88 GB, free: 23.66 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005047/3.011, allocations: 0.5042 MB / 0.8805 GB, free: 23.66 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001211/3.012, allocations: 0.7713 MB / 0.8813 GB, free: 23.64 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05235/3.064, allocations: 17.4 MB / 0.8983 GB, free: 23.53 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1591/3.223, allocations: 63.22 MB / 0.96 GB, free: 12.74 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04017/3.264, allocations: 22.42 MB / 0.9819 GB, free: 12.8 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07371/3.337, allocations: 23.27 MB / 1.005 GB, free: 0 / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002018/3.338, allocations: 104 kB / 1.005 GB, free: 15.89 MB / 474.7 MB Notification: Performance of pre-optimization done (n=754): time 1.234e-05/3.338, allocations: 3.375 kB / 1.005 GB, free: 15.89 MB / 474.7 MB Notification: Performance of matching and sorting (n=764): time 0.54/3.878, allocations: 41.59 MB / 1.045 GB, free: 66.09 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.559e-05/3.878, allocations: 148.3 kB / 1.046 GB, free: 65.98 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01056/3.888, allocations: 3.906 MB / 1.049 GB, free: 65.68 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001689/3.89, allocations: 131.6 kB / 1.049 GB, free: 65.64 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00377/3.894, allocations: 4.505 MB / 1.054 GB, free: 63.23 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004244/3.898, allocations: 2.541 MB / 1.056 GB, free: 61.59 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001476/3.9, allocations: 147.2 kB / 1.056 GB, free: 61.59 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0008033/3.9, allocations: 0.6399 MB / 1.057 GB, free: 61.26 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01324/3.914, allocations: 4.842 MB / 1.062 GB, free: 61.24 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01517/3.929, allocations: 6.683 MB / 1.068 GB, free: 59.24 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01551/3.944, allocations: 5.983 MB / 1.074 GB, free: 59.14 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.56e-05/3.945, allocations: 13.5 kB / 1.074 GB, free: 59.14 MB / 474.7 MB Notification: Performance of matching and sorting (n=1048) (initialization): time 0.04141/3.986, allocations: 14.23 MB / 1.088 GB, free: 58.54 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.858e-05/3.986, allocations: 26.31 kB / 1.088 GB, free: 58.54 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001565/3.986, allocations: 52.88 kB / 1.088 GB, free: 58.54 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01162/3.998, allocations: 3.37 MB / 1.091 GB, free: 58.44 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01154/4.01, allocations: 1.49 MB / 1.093 GB, free: 58.44 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01899/4.029, allocations: 13.88 MB / 1.106 GB, free: 50.61 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009461/4.038, allocations: 403 kB / 1.107 GB, free: 50.48 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002232/4.04, allocations: 339.1 kB / 1.107 GB, free: 50.41 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 241 * 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 (791): * Single equations (assignments): 726 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 55 * 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: 3 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,4 4,10 69} Notification: Performance of prepare postOptimizeDAE: time 0.01311/4.053, allocations: 4.269 MB / 1.111 GB, free: 48.37 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002667/4.056, allocations: 0.5938 MB / 1.112 GB, free: 48.05 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03749/4.094, allocations: 13.72 MB / 1.125 GB, free: 41.97 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02623/4.12, allocations: 10.43 MB / 1.136 GB, free: 37.43 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.992e-05/4.12, allocations: 5.875 kB / 1.136 GB, free: 37.43 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001592/4.12, allocations: 35.55 kB / 1.136 GB, free: 37.43 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07387/4.194, allocations: 28.19 MB / 1.163 GB, free: 21.59 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.342e-05/4.194, allocations: 4 kB / 1.163 GB, free: 21.59 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008524/4.203, allocations: 0.966 MB / 1.164 GB, free: 20.85 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01172/4.215, allocations: 3.482 MB / 1.167 GB, free: 18.04 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001838/4.216, allocations: 171.1 kB / 1.168 GB, free: 17.89 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02438/4.241, allocations: 18.36 MB / 1.186 GB, free: 60 kB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.641e-06/4.241, allocations: 8 kB / 1.186 GB, free: 52 kB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4387/4.68, allocations: 21.26 MB / 1.206 GB, free: 76.96 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006781/4.686, allocations: 1.744 MB / 1.208 GB, free: 76.87 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00368/4.69, allocations: 118.3 kB / 1.208 GB, free: 76.87 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008369/4.698, allocations: 315.5 kB / 1.208 GB, free: 76.87 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002993/4.702, allocations: 0.5576 MB / 1.209 GB, free: 76.86 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00189/4.703, allocations: 207.7 kB / 1.209 GB, free: 76.86 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.009291/4.713, allocations: 2.942 MB / 1.212 GB, free: 76.68 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.31e-07/4.713, allocations: 0 / 1.212 GB, free: 76.68 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01384/4.727, allocations: 2.155 MB / 1.214 GB, free: 76.68 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 10 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,smpmQS.inertiaRotor.w,smpmQS.permanentMagnet.port_p.reference.gamma,loadInertiaMQS.phi) * 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 (512): * Single equations (assignments): 446 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 55 * 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: 5 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14,(1,100.0%) 1} * Non-linear torn systems: 6 {4 4,6 9,6 9,6 9,6 9,10 69} Notification: Performance of Backend phase and start with SimCode phase: time 0.05908/4.786, allocations: 23.22 MB / 1.237 GB, free: 73.62 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0333/4.819, allocations: 12.22 MB / 1.249 GB, free: 72.89 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.294e-05/4.819, allocations: 0 / 1.249 GB, free: 72.89 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0191/4.838, allocations: 6.7 MB / 1.255 GB, free: 72.18 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01265/4.851, allocations: 1.315 MB / 1.257 GB, free: 72.16 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2498/5.101, allocations: 109.7 MB / 1.364 GB, free: 14.94 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01843/5.119, allocations: 7.539 MB / 1.371 GB, free: 9.684 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01348/5.133, allocations: 4.485 MB / 1.375 GB, free: 5.512 MB / 0.4948 GB Notification: Performance of SimCode: time 1.964e-06/5.133, allocations: 0 / 1.375 GB, free: 5.512 MB / 0.4948 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_SynchronousMachines_SMPM_MainsCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MainsCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MainsCalcHelperMain.cpp:28: ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MainsFunctions.cpp:637:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp341 = 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_SynchronousMachines_SMPM_MainsFunctions.cpp:637:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp341 = 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_SynchronousMachines_SMPM_MainsCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MainsFMU.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_SynchronousMachines_SMPM_MainsCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MainsCalcHelperMain.o] Error 1