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.SynchronousMachines.SMPM_MTPA.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.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",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.001602/0.001601, allocations: 181.7 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.07/2.07, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.00111/0.00111, allocations: 82.72 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.029e-05/3.041e-05, allocations: 4 kB / 321.6 MB, free: 17.71 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1041, allocations: 47.57 MB / 369.2 MB, free: 2.078 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5055/0.6096, allocations: 135.8 MB / 0.4932 GB, free: 6.051 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003694/0.6101, allocations: 102.7 kB / 0.4933 GB, free: 5.996 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.694/2.304, allocations: 331.3 MB / 0.8168 GB, free: 8.105 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.094e-06/2.304, allocations: 0 / 0.8168 GB, free: 8.105 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000719/2.305, allocations: 215.8 kB / 0.817 GB, free: 7.895 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: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.04916/2.354, allocations: 8.753 MB / 0.8256 GB, free: 15.05 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.236e-05/2.354, allocations: 12.03 kB / 0.8256 GB, free: 15.04 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008292/2.362, allocations: 1.618 MB / 0.8272 GB, free: 13.42 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05196/2.414, allocations: 5.848 MB / 0.8329 GB, free: 7.551 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0312/2.446, allocations: 7.452 MB / 0.8401 GB, free: 44 kB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001576/2.447, allocations: 0.7261 MB / 0.8408 GB, free: 15.31 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005739/2.453, allocations: 0.9373 MB / 0.8418 GB, free: 14.38 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.7616/3.215, allocations: 16.84 MB / 0.8582 GB, free: 41.89 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006528/3.215, allocations: 19.7 kB / 0.8582 GB, free: 41.89 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004868/3.22, allocations: 418 kB / 0.8586 GB, free: 41.89 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001531/3.222, allocations: 0.7114 MB / 0.8593 GB, free: 41.86 MB / 442.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05117/3.273, allocations: 15.67 MB / 0.8746 GB, free: 41.77 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1477/3.421, allocations: 52.81 MB / 0.9262 GB, free: 30.33 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05085/3.472, allocations: 41.38 MB / 0.9666 GB, free: 9.535 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01834/3.49, allocations: 7.012 MB / 0.9735 GB, free: 6.523 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06934/3.56, allocations: 21.74 MB / 0.9947 GB, free: 12.21 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001141/3.56, allocations: 95.8 kB / 0.9948 GB, free: 12.13 MB / 474.8 MB Notification: Performance of pre-optimization done (n=688): time 1.121e-05/3.56, allocations: 0 / 0.9948 GB, free: 12.13 MB / 474.8 MB Notification: Performance of matching and sorting (n=696): time 0.07548/3.635, allocations: 22.74 MB / 1.017 GB, free: 24 kB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001342/3.635, allocations: 119.1 kB / 1.017 GB, free: 15.9 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006713/3.642, allocations: 2.431 MB / 1.019 GB, free: 13.71 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001663/3.644, allocations: 117.7 kB / 1.02 GB, free: 13.59 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003702/3.648, allocations: 3.53 MB / 1.023 GB, free: 10.44 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.004716/3.652, allocations: 2.304 MB / 1.025 GB, free: 8.359 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001914/3.654, allocations: 124 kB / 1.025 GB, free: 8.238 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.001267/3.656, allocations: 0.611 MB / 1.026 GB, free: 7.707 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0144/3.67, allocations: 4.453 MB / 1.03 GB, free: 3.738 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3912/4.061, allocations: 6.35 MB / 1.037 GB, free: 90.94 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01768/4.079, allocations: 5.563 MB / 1.042 GB, free: 90.84 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000116/4.079, allocations: 14.81 kB / 1.042 GB, free: 90.84 MB / 490.8 MB Notification: Performance of matching and sorting (n=941) (initialization): time 0.0447/4.124, allocations: 13.38 MB / 1.055 GB, free: 90.59 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 9.931e-05/4.124, allocations: 32.77 kB / 1.055 GB, free: 90.59 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001701/4.124, allocations: 52.16 kB / 1.055 GB, free: 90.59 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01398/4.138, allocations: 3.973 MB / 1.059 GB, free: 90.51 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01018/4.149, allocations: 1.216 MB / 1.06 GB, free: 90.51 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0202/4.169, allocations: 9.648 MB / 1.07 GB, free: 88.39 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008668/4.177, allocations: 349.8 kB / 1.07 GB, free: 88.39 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002405/4.18, allocations: 314.6 kB / 1.07 GB, free: 88.39 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 243 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (647): * Single equations (assignments): 595 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.004118/4.184, allocations: 479.1 kB / 1.071 GB, free: 88.29 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002947/4.187, allocations: 453 kB / 1.071 GB, free: 88.29 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03935/4.227, allocations: 12.83 MB / 1.084 GB, free: 87.97 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003147/4.227, allocations: 184.2 kB / 1.084 GB, free: 87.97 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.052e-05/4.227, allocations: 1.469 kB / 1.084 GB, free: 87.97 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001475/4.227, allocations: 30.09 kB / 1.084 GB, free: 87.97 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06993/4.297, allocations: 24.69 MB / 1.108 GB, free: 82.16 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.736e-05/4.297, allocations: 6.875 kB / 1.108 GB, free: 82.16 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00754/4.305, allocations: 0.8097 MB / 1.109 GB, free: 82.13 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01321/4.318, allocations: 3.885 MB / 1.113 GB, free: 80.93 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002077/4.32, allocations: 146.9 kB / 1.113 GB, free: 80.84 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01852/4.339, allocations: 9.512 MB / 1.122 GB, free: 75.6 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.08e-05/4.339, allocations: 9.234 kB / 1.122 GB, free: 75.6 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05261/4.391, allocations: 19.39 MB / 1.141 GB, free: 66.77 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006376/4.398, allocations: 1.476 MB / 1.142 GB, free: 65.96 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00294/4.401, allocations: 97.59 kB / 1.143 GB, free: 65.88 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006721/4.408, allocations: 266.5 kB / 1.143 GB, free: 65.81 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002754/4.41, allocations: 0.5157 MB / 1.143 GB, free: 65.7 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001815/4.412, allocations: 195.2 kB / 1.143 GB, free: 65.65 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.004803/4.417, allocations: 1.821 MB / 1.145 GB, free: 64.59 MB / 490.8 MB Notification: Performance of sort global known variables: time 6.81e-07/4.417, allocations: 0 / 1.145 GB, free: 64.59 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.0113/4.428, allocations: 1.728 MB / 1.147 GB, free: 62.88 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 1 (smpmQS.phiMechanical) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (438): * Single equations (assignments): 386 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.05447/4.483, allocations: 21.33 MB / 1.168 GB, free: 43.62 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.03205/4.515, allocations: 11.03 MB / 1.179 GB, free: 33.83 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.146e-05/4.515, allocations: 0 / 1.179 GB, free: 33.83 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01791/4.533, allocations: 5.655 MB / 1.184 GB, free: 28.83 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009091/4.542, allocations: 0.8469 MB / 1.185 GB, free: 28.17 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4422/4.984, allocations: 20.78 MB / 1.205 GB, free: 93.63 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01701/5.002, allocations: 6.347 MB / 1.211 GB, free: 92.76 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009876/5.011, allocations: 3.428 MB / 1.215 GB, free: 92.76 MB / 490.8 MB Notification: Performance of SimCode: time 2.074e-06/5.012, allocations: 0.875 kB / 1.215 GB, free: 92.76 MB / 490.8 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/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_SynchronousMachines_SMPM_MTPACalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPACalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPACalcHelperMain.cpp:28: ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPAFunctions.cpp:476:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp295 = 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_SynchronousMachines_SMPM_MTPAFunctions.cpp:476:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp295 = 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_SynchronousMachines_SMPM_MTPACalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPAFMU.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_SynchronousMachines_SMPM_MTPACalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPACalcHelperMain.o] Error 1