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_CurrentSource.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_CurrentSource,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",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.0003434/0.0003434, allocations: 8 kB / 264.1 MB, free: 13.44 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09192/0.09229, allocations: 44.5 MB / 308.6 MB, free: 0.8711 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5187/0.611, allocations: 156.3 MB / 464.9 MB, free: 15.74 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004009/0.6115, allocations: 110.7 kB / 465 MB, free: 15.68 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.821/2.433, allocations: 397.2 MB / 0.842 GB, free: 4.676 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.966e-06/2.433, allocations: 0 / 0.842 GB, free: 4.676 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001149/2.434, allocations: 299.6 kB / 0.8423 GB, free: 4.383 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3594 * Number of variables: 3594 Notification: Performance of Generate backend data structure: time 0.7384/3.173, allocations: 11.99 MB / 0.854 GB, free: 22.41 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.243e-05/3.173, allocations: 9.938 kB / 0.854 GB, free: 22.41 MB / 426.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01006/3.183, allocations: 1.848 MB / 0.8558 GB, free: 22.28 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05646/3.239, allocations: 6.451 MB / 0.8621 GB, free: 21.59 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03535/3.275, allocations: 9.692 MB / 0.8716 GB, free: 20.47 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001578/3.276, allocations: 0.9456 MB / 0.8725 GB, free: 20.45 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006597/3.283, allocations: 1.235 MB / 0.8737 GB, free: 20.44 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07022/3.353, allocations: 20.9 MB / 0.8941 GB, free: 18.91 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008228/3.354, allocations: 21 kB / 0.8941 GB, free: 18.9 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005675/3.36, allocations: 0.5289 MB / 0.8946 GB, free: 18.9 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001345/3.361, allocations: 0.8512 MB / 0.8955 GB, free: 18.88 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05845/3.42, allocations: 18.93 MB / 0.914 GB, free: 18.77 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1768/3.596, allocations: 65.85 MB / 0.9783 GB, free: 3.285 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4667/4.063, allocations: 46.13 MB / 1.023 GB, free: 36.76 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07128/4.135, allocations: 23.95 MB / 1.047 GB, free: 35.76 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001071/4.135, allocations: 103.2 kB / 1.047 GB, free: 35.71 MB / 474.8 MB Notification: Performance of pre-optimization done (n=782): time 1.165e-05/4.135, allocations: 0 / 1.047 GB, free: 35.71 MB / 474.8 MB Notification: Performance of matching and sorting (n=824): time 0.2026/4.337, allocations: 46.83 MB / 1.093 GB, free: 27.27 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.965e-05/4.337, allocations: 125 kB / 1.093 GB, free: 27.2 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01011/4.348, allocations: 3.809 MB / 1.096 GB, free: 26.82 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001877/4.349, allocations: 138.5 kB / 1.097 GB, free: 26.79 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003861/4.353, allocations: 4.835 MB / 1.101 GB, free: 23.96 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.004606/4.358, allocations: 2.735 MB / 1.104 GB, free: 21.84 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001954/4.36, allocations: 166.5 kB / 1.104 GB, free: 21.71 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.001067/4.361, allocations: 0.6847 MB / 1.105 GB, free: 21.23 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01448/4.376, allocations: 5.179 MB / 1.11 GB, free: 19.12 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01704/4.393, allocations: 7.636 MB / 1.117 GB, free: 13.98 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01752/4.41, allocations: 6.523 MB / 1.124 GB, free: 11.05 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.31e-05/4.41, allocations: 23.22 kB / 1.124 GB, free: 11.05 MB / 474.8 MB Notification: Performance of matching and sorting (n=1175) (initialization): time 0.04564/4.456, allocations: 15.65 MB / 1.139 GB, free: 4.773 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 8.042e-05/4.456, allocations: 42.83 kB / 1.139 GB, free: 4.77 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001657/4.456, allocations: 74.97 kB / 1.139 GB, free: 4.77 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01363/4.47, allocations: 4.142 MB / 1.143 GB, free: 3.477 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01314/4.483, allocations: 1.682 MB / 1.145 GB, free: 3.422 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02306/4.506, allocations: 12.26 MB / 1.157 GB, free: 10.62 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01072/4.517, allocations: 461.3 kB / 1.157 GB, free: 10.26 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002756/4.52, allocations: 401.2 kB / 1.158 GB, free: 9.895 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 339 * 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 (877): * Single equations (assignments): 821 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.01597/4.536, allocations: 4.444 MB / 1.162 GB, free: 6.188 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003789/4.54, allocations: 0.616 MB / 1.162 GB, free: 5.574 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05256/4.592, allocations: 14.63 MB / 1.177 GB, free: 9.211 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003662/4.593, allocations: 198.5 kB / 1.177 GB, free: 9.039 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.892e-05/4.593, allocations: 7.375 kB / 1.177 GB, free: 9.035 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001918/4.593, allocations: 37.61 kB / 1.177 GB, free: 9.031 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08972/4.683, allocations: 29.29 MB / 1.206 GB, free: 0.7422 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.918e-05/4.683, allocations: 4 kB / 1.206 GB, free: 0.7383 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01085/4.694, allocations: 1.115 MB / 1.207 GB, free: 0 / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.4303/5.124, allocations: 4.018 MB / 1.211 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002233/5.126, allocations: 171.8 kB / 1.211 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02167/5.148, allocations: 12.06 MB / 1.223 GB, free: 109.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.024e-05/5.148, allocations: 8.781 kB / 1.223 GB, free: 109.5 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05943/5.208, allocations: 22.14 MB / 1.244 GB, free: 108.2 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006491/5.214, allocations: 1.79 MB / 1.246 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003374/5.217, allocations: 124.1 kB / 1.246 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008241/5.226, allocations: 336.7 kB / 1.246 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002896/5.229, allocations: 0.5802 MB / 1.247 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001474/5.23, allocations: 227 kB / 1.247 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.007159/5.237, allocations: 2.839 MB / 1.25 GB, free: 107.9 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.61e-07/5.237, allocations: 3.969 kB / 1.25 GB, free: 107.9 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01283/5.25, allocations: 2.219 MB / 1.252 GB, free: 107.9 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.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 (562): * Single equations (assignments): 506 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * 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.05737/5.308, allocations: 24.12 MB / 1.276 GB, free: 105.3 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.03542/5.343, allocations: 13.23 MB / 1.289 GB, free: 101.1 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.518e-06/5.343, allocations: 0 / 1.289 GB, free: 101.1 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.02035/5.364, allocations: 6.849 MB / 1.295 GB, free: 98.19 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01203/5.376, allocations: 1.271 MB / 1.296 GB, free: 97.84 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6004/5.976, allocations: 128.6 MB / 1.422 GB, free: 109.6 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01883/5.995, allocations: 7.842 MB / 1.43 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01409/6.009, allocations: 4.771 MB / 1.434 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of SimCode: time 1.613e-06/6.009, allocations: 0 / 1.434 GB, free: 108.7 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/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_CurrentSourceCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSourceCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSourceCalcHelperMain.cpp:28: ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSourceFunctions.cpp:547:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp310 = 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_CurrentSourceFunctions.cpp:547:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp310 = 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_CurrentSourceCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSourceFMU.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_CurrentSourceCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSourceCalcHelperMain.o] Error 1