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.001576/0.001577, allocations: 185.4 kB / 16.4 MB, free: 5.746 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.004/2.004, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001158/0.001158, allocations: 89.55 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003884/0.0003886, allocations: 8 kB / 327.1 MB, free: 68 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3382/0.3387, allocations: 47.57 MB / 374.7 MB, free: 45.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5118/0.8505, allocations: 135.9 MB / 0.4986 GB, free: 63.3 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003655/0.8509, allocations: 107.2 kB / 0.4987 GB, free: 63.3 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.684/2.535, allocations: 331.6 MB / 0.8226 GB, free: 45.84 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.856e-06/2.535, allocations: 0 / 0.8226 GB, free: 45.84 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0007954/2.536, allocations: 219.2 kB / 0.8228 GB, free: 45.83 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: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.04466/2.581, allocations: 9.177 MB / 0.8317 GB, free: 42.87 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.184e-05/2.581, allocations: 7.062 kB / 0.8317 GB, free: 42.87 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008351/2.589, allocations: 1.644 MB / 0.8333 GB, free: 42.74 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05148/2.641, allocations: 5.889 MB / 0.8391 GB, free: 42.19 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02871/2.669, allocations: 7.47 MB / 0.8464 GB, free: 41.29 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001418/2.671, allocations: 0.7231 MB / 0.8471 GB, free: 41.27 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005101/2.676, allocations: 0.9326 MB / 0.848 GB, free: 41.26 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05687/2.733, allocations: 17.02 MB / 0.8646 GB, free: 40.13 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006435/2.734, allocations: 14.56 kB / 0.8646 GB, free: 40.12 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004517/2.738, allocations: 416.9 kB / 0.865 GB, free: 40.12 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001306/2.739, allocations: 0.7227 MB / 0.8657 GB, free: 40.09 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04934/2.789, allocations: 15.9 MB / 0.8813 GB, free: 40 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.139/2.928, allocations: 52.81 MB / 0.9328 GB, free: 15.8 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05855/2.987, allocations: 41.49 MB / 0.9734 GB, free: 7.312 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.437/3.424, allocations: 22.4 MB / 0.9952 GB, free: 73.62 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.296e-05/3.424, allocations: 94.62 kB / 0.9953 GB, free: 73.57 MB / 474.7 MB Notification: Performance of pre-optimization done (n=693): time 1.199e-05/3.424, allocations: 1.219 kB / 0.9953 GB, free: 73.57 MB / 474.7 MB Notification: Performance of matching and sorting (n=701): time 0.1686/3.592, allocations: 41.28 MB / 1.036 GB, free: 66.68 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.109e-05/3.593, allocations: 113.6 kB / 1.036 GB, free: 66.61 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005737/3.598, allocations: 2.459 MB / 1.038 GB, free: 66.36 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00164/3.6, allocations: 122.8 kB / 1.038 GB, free: 66.33 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002613/3.603, allocations: 3.519 MB / 1.042 GB, free: 64.57 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00388/3.607, allocations: 2.315 MB / 1.044 GB, free: 63.07 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001082/3.608, allocations: 131.6 kB / 1.044 GB, free: 63.07 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007507/3.608, allocations: 0.6062 MB / 1.045 GB, free: 62.75 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0125/3.621, allocations: 4.527 MB / 1.049 GB, free: 62.73 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01444/3.635, allocations: 6.319 MB / 1.055 GB, free: 60.74 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0148/3.65, allocations: 5.611 MB / 1.061 GB, free: 59.63 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.747e-05/3.65, allocations: 14.03 kB / 1.061 GB, free: 59.63 MB / 474.7 MB Notification: Performance of matching and sorting (n=944) (initialization): time 0.04161/3.692, allocations: 13.56 MB / 1.074 GB, free: 54.15 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.187e-05/3.692, allocations: 31.72 kB / 1.074 GB, free: 54.14 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001298/3.692, allocations: 52.41 kB / 1.074 GB, free: 54.14 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01341/3.706, allocations: 4.011 MB / 1.078 GB, free: 52.91 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009816/3.716, allocations: 1.233 MB / 1.079 GB, free: 52.88 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0192/3.735, allocations: 9.675 MB / 1.089 GB, free: 47.52 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007862/3.743, allocations: 349.5 kB / 1.089 GB, free: 47.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002121/3.745, allocations: 317.6 kB / 1.089 GB, free: 47.34 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 (650): * Single equations (assignments): 598 * 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.01104/3.756, allocations: 3.613 MB / 1.093 GB, free: 45.65 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002216/3.758, allocations: 454.5 kB / 1.093 GB, free: 45.41 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04121/3.8, allocations: 13 MB / 1.106 GB, free: 39.21 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002752/3.8, allocations: 187.4 kB / 1.106 GB, free: 39.05 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.986e-05/3.8, allocations: 3.438 kB / 1.106 GB, free: 39.05 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001427/3.8, allocations: 28.03 kB / 1.106 GB, free: 39.05 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06784/3.868, allocations: 24.86 MB / 1.13 GB, free: 18.18 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.409e-05/3.868, allocations: 0 / 1.13 GB, free: 18.18 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007518/3.876, allocations: 0.824 MB / 1.131 GB, free: 17.54 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01308/3.889, allocations: 3.915 MB / 1.135 GB, free: 14.31 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001945/3.891, allocations: 152 kB / 1.135 GB, free: 14.18 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01977/3.911, allocations: 9.561 MB / 1.145 GB, free: 5.531 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.828e-06/3.911, allocations: 5.594 kB / 1.145 GB, free: 5.527 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4378/4.348, allocations: 20.47 MB / 1.165 GB, free: 86.12 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005557/4.354, allocations: 1.478 MB / 1.166 GB, free: 86.03 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002748/4.357, allocations: 106.4 kB / 1.166 GB, free: 86.03 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006335/4.363, allocations: 268.4 kB / 1.166 GB, free: 86.03 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002592/4.366, allocations: 0.5087 MB / 1.167 GB, free: 86.02 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00134/4.367, allocations: 194 kB / 1.167 GB, free: 86.02 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004868/4.372, allocations: 1.852 MB / 1.169 GB, free: 85.88 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.31e-07/4.372, allocations: 0 / 1.169 GB, free: 85.88 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01093/4.383, allocations: 1.724 MB / 1.171 GB, free: 85.88 MB / 490.7 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (443): * Single equations (assignments): 391 * 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.05764/4.441, allocations: 21.6 MB / 1.192 GB, free: 83.52 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.03199/4.473, allocations: 11.18 MB / 1.203 GB, free: 83.25 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.111e-05/4.473, allocations: 0 / 1.203 GB, free: 83.25 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01805/4.491, allocations: 5.723 MB / 1.208 GB, free: 83.09 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00861/4.5, allocations: 0.8471 MB / 1.209 GB, free: 83.08 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1629/4.663, allocations: 94.37 MB / 1.301 GB, free: 17.53 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0136/4.676, allocations: 6.348 MB / 1.307 GB, free: 15.14 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01037/4.687, allocations: 3.424 MB / 1.311 GB, free: 11.98 MB / 490.7 MB Notification: Performance of SimCode: time 9.92e-07/4.687, allocations: 4 kB / 1.311 GB, free: 11.97 MB / 490.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/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