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_CurrentSource.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_CurrentSource,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",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.001562/0.001566, allocations: 188.3 kB / 16.4 MB, free: 5.625 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.065/2.065, allocations: 205.4 MB / 222.5 MB, free: 13.86 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.001151/0.001151, allocations: 102.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003797/0.0003796, allocations: 8 kB / 327.1 MB, free: 14.98 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09931/0.09972, allocations: 47.58 MB / 374.7 MB, free: 15.32 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.3111/0.4109, allocations: 33.45 MB / 408.1 MB, free: 4.312 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0312/0.4422, allocations: 10.69 MB / 418.8 MB, free: 12.46 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01093/0.4532, allocations: 250.9 kB / 419.1 MB, free: 12.4 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01087/0.4641, allocations: 2.229 MB / 421.3 MB, free: 11.13 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02021/0.4843, allocations: 3.819 MB / 425.1 MB, free: 8.039 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01089/0.4953, allocations: 1.861 MB / 427 MB, free: 6.621 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.02694/0.5222, allocations: 10.63 MB / 437.6 MB, free: 14.4 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05694/0.5792, allocations: 20.09 MB / 457.7 MB, free: 10.2 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01216/0.5915, allocations: 4.785 MB / 462.5 MB, free: 5.402 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01351/0.605, allocations: 5.548 MB / 468 MB, free: 15.83 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004019/0.6091, allocations: 0.7852 MB / 468.8 MB, free: 15.05 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007527/0.6167, allocations: 1.093 MB / 469.9 MB, free: 13.95 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005633/0.6224, allocations: 2.585 MB / 472.5 MB, free: 11.36 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006346/0.6288, allocations: 2.679 MB / 475.2 MB, free: 8.668 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03717/0.666, allocations: 22.47 MB / 497.6 MB, free: 2.137 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.6661, allocations: 4 kB / 497.6 MB, free: 2.133 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.256e-06/0.6661, allocations: 0 / 497.6 MB, free: 2.133 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0007978/0.6669, allocations: 0 / 497.6 MB, free: 2.133 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3597 * Number of variables: 3597 Notification: Performance of Generate backend data structure: time 0.05613/0.723, allocations: 13.28 MB / 0.4989 GB, free: 4.734 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.158e-05/0.7231, allocations: 8.031 kB / 0.4989 GB, free: 4.727 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007601/0.7307, allocations: 1.846 MB / 0.5007 GB, free: 2.871 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07797/0.8087, allocations: 9.106 MB / 0.5096 GB, free: 9.734 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02516/0.8339, allocations: 7.6 MB / 0.5171 GB, free: 2.059 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001587/0.8356, allocations: 0.9673 MB / 0.518 GB, free: 1.09 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005881/0.8415, allocations: 1.273 MB / 0.5193 GB, free: 15.81 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.615/1.456, allocations: 20.3 MB / 0.5391 GB, free: 101.4 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008942/1.457, allocations: 25.42 kB / 0.5391 GB, free: 101.4 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004791/1.462, allocations: 0.5258 MB / 0.5396 GB, free: 101.3 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001406/1.464, allocations: 0.7507 MB / 0.5403 GB, free: 101.3 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06294/1.527, allocations: 19.14 MB / 0.559 GB, free: 94.22 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1883/1.715, allocations: 65.12 MB / 0.6226 GB, free: 39.8 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05646/1.772, allocations: 57.21 MB / 0.6785 GB, free: 7.73 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03852/1.81, allocations: 11.76 MB / 0.69 GB, free: 11.96 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.705e-05/1.81, allocations: 73.48 kB / 0.6901 GB, free: 11.88 MB / 458.8 MB Notification: Performance of pre-optimization done (n=371): time 9.849e-06/1.81, allocations: 0 / 0.6901 GB, free: 11.88 MB / 458.8 MB Notification: Performance of matching and sorting (n=413): time 0.06802/1.878, allocations: 18.03 MB / 0.7077 GB, free: 9.75 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001056/1.878, allocations: 98.59 kB / 0.7078 GB, free: 9.641 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01464/1.893, allocations: 5.52 MB / 0.7131 GB, free: 4.145 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008642/1.894, allocations: 93.7 kB / 0.7132 GB, free: 4.047 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.3003/2.194, allocations: 5.817 MB / 0.7189 GB, free: 158.1 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002324/2.197, allocations: 1.451 MB / 0.7203 GB, free: 157.2 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001063/2.198, allocations: 161.8 kB / 0.7205 GB, free: 157.2 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0007999/2.199, allocations: 0.623 MB / 0.7211 GB, free: 156.9 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009583/2.208, allocations: 3.14 MB / 0.7242 GB, free: 156.9 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01253/2.221, allocations: 6.845 MB / 0.7308 GB, free: 150.8 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01212/2.233, allocations: 4.678 MB / 0.7354 GB, free: 148.8 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001779/2.233, allocations: 36.12 kB / 0.7354 GB, free: 148.8 MB / 474.8 MB Notification: Performance of matching and sorting (n=1014) (initialization): time 0.03119/2.265, allocations: 10.75 MB / 0.7459 GB, free: 144.4 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001337/2.265, allocations: 59.47 kB / 0.746 GB, free: 144.4 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002166/2.265, allocations: 134 kB / 0.7461 GB, free: 144.4 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004326/2.269, allocations: 0.9828 MB / 0.7471 GB, free: 144.2 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01305/2.282, allocations: 1.872 MB / 0.7489 GB, free: 144 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01752/2.3, allocations: 9.716 MB / 0.7584 GB, free: 137.4 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009264/2.309, allocations: 453.1 kB / 0.7588 GB, free: 137.2 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00174/2.311, allocations: 428.3 kB / 0.7592 GB, free: 137.2 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 580 * 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 (965): * Single equations (assignments): 960 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * 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: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01165/2.323, allocations: 4.519 MB / 0.7637 GB, free: 134.9 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001633/2.324, allocations: 0.5755 MB / 0.7642 GB, free: 134.6 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02015/2.345, allocations: 6.77 MB / 0.7708 GB, free: 131.8 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.986e-05/2.345, allocations: 47.59 kB / 0.7709 GB, free: 131.8 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.52e-05/2.345, allocations: 7.719 kB / 0.7709 GB, free: 131.8 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001194/2.345, allocations: 23.16 kB / 0.7709 GB, free: 131.8 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04519/2.39, allocations: 16.59 MB / 0.7871 GB, free: 119.4 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.634e-05/2.39, allocations: 4 kB / 0.7871 GB, free: 119.4 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007023/2.397, allocations: 0.8027 MB / 0.7879 GB, free: 118.6 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003733/2.401, allocations: 0.7845 MB / 0.7887 GB, free: 117.8 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007831/2.402, allocations: 87.97 kB / 0.7887 GB, free: 117.7 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01479/2.417, allocations: 8.863 MB / 0.7974 GB, free: 108.5 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.312e-06/2.417, allocations: 11.94 kB / 0.7974 GB, free: 108.5 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02426/2.441, allocations: 10.47 MB / 0.8076 GB, free: 97.78 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003926/2.445, allocations: 1.138 MB / 0.8088 GB, free: 96.61 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001722/2.447, allocations: 76 kB / 0.8088 GB, free: 96.54 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005396/2.452, allocations: 235.7 kB / 0.809 GB, free: 96.31 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001266/2.453, allocations: 278.8 kB / 0.8093 GB, free: 96.04 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004494/2.454, allocations: 120 kB / 0.8094 GB, free: 95.92 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.008945/2.463, allocations: 3.624 MB / 0.813 GB, free: 92.32 MB / 474.8 MB Notification: Performance of sort global known variables: time 9.22e-07/2.463, allocations: 0 / 0.813 GB, free: 92.32 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01127/2.474, allocations: 2.037 MB / 0.815 GB, free: 90.29 MB / 474.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.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 (394): * Single equations (assignments): 389 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * 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: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,62.5%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02686/2.501, allocations: 11.94 MB / 0.8266 GB, free: 78.18 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.01975/2.521, allocations: 8.25 MB / 0.8347 GB, free: 69.86 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.068e-05/2.521, allocations: 0 / 0.8347 GB, free: 69.86 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.00918/2.53, allocations: 3.665 MB / 0.8383 GB, free: 66.11 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009739/2.54, allocations: 1.285 MB / 0.8395 GB, free: 64.84 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.496/3.036, allocations: 152.1 MB / 0.988 GB, free: 62.74 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01509/3.051, allocations: 7.672 MB / 0.9955 GB, free: 60.14 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01044/3.062, allocations: 4.732 MB / 1 GB, free: 56.07 MB / 474.8 MB Notification: Performance of SimCode: time 1.553e-06/3.062, allocations: 4 kB / 1 GB, free: 56.07 MB / 474.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=5 -DSUNDIALS_MINOR_VERSION=4 -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_CurrentSourceCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSourceCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSourceCalcHelperMain.cpp:28: ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSourceFunctions.cpp:112:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp102 = 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_CurrentSourceFunctions.cpp:112:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp102 = 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_CurrentSourceCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSourceFMU.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_CurrentSourceCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSourceCalcHelperMain.o] Error 1