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.SMEE_Generator.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.SMEE_Generator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",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.001544/0.001549, allocations: 185.8 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.909/1.909, 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.001138/0.001138, allocations: 95.55 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003859/0.000386, allocations: 16 kB / 327.1 MB, free: 72 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3294/0.3298, allocations: 47.56 MB / 374.7 MB, free: 45.31 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5305/0.8604, allocations: 167.1 MB / 0.5291 GB, free: 64.15 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003753/0.8608, allocations: 107.2 kB / 0.5292 GB, free: 64.13 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.808/2.669, allocations: 394.2 MB / 0.9141 GB, free: 40.24 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.126e-06/2.669, allocations: 0 / 0.9141 GB, free: 40.24 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0009085/2.669, allocations: 267.5 kB / 0.9144 GB, free: 40.2 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: 3112 * Number of variables: 3112 Notification: Performance of Generate backend data structure: time 0.05144/2.721, allocations: 11.01 MB / 0.9252 GB, free: 36.47 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.06e-05/2.721, allocations: 10.91 kB / 0.9252 GB, free: 36.47 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008566/2.73, allocations: 1.796 MB / 0.9269 GB, free: 36.33 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03843/2.768, allocations: 4.417 MB / 0.9312 GB, free: 35.57 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03331/2.801, allocations: 8.898 MB / 0.9399 GB, free: 31.14 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001371/2.803, allocations: 0.8252 MB / 0.9407 GB, free: 30.71 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005311/2.808, allocations: 1.078 MB / 0.9418 GB, free: 29.65 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05843/2.867, allocations: 17.51 MB / 0.9589 GB, free: 14.59 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007147/2.867, allocations: 23.66 kB / 0.9589 GB, free: 14.57 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005222/2.873, allocations: 474.5 kB / 0.9594 GB, free: 14.12 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00132/2.874, allocations: 0.6873 MB / 0.96 GB, free: 13.49 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0525/2.927, allocations: 15.34 MB / 0.975 GB, free: 14.12 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5056/3.432, allocations: 58.08 MB / 1.032 GB, free: 38.77 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02888/3.461, allocations: 17.24 MB / 1.049 GB, free: 30.41 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04968/3.511, allocations: 19.05 MB / 1.067 GB, free: 28.16 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.161e-05/3.511, allocations: 91.05 kB / 1.067 GB, free: 28.08 MB / 458.7 MB Notification: Performance of pre-optimization done (n=643): time 1.105e-05/3.511, allocations: 3.125 kB / 1.067 GB, free: 28.08 MB / 458.7 MB Notification: Performance of matching and sorting (n=670): time 0.1068/3.618, allocations: 35.81 MB / 1.102 GB, free: 23.86 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.855e-05/3.618, allocations: 137.5 kB / 1.102 GB, free: 23.76 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01009/3.628, allocations: 3.924 MB / 1.106 GB, free: 22.34 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001503/3.63, allocations: 118.2 kB / 1.106 GB, free: 22.23 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003441/3.633, allocations: 4.359 MB / 1.111 GB, free: 18.92 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003517/3.637, allocations: 2.239 MB / 1.113 GB, free: 17.19 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001297/3.638, allocations: 143.2 kB / 1.113 GB, free: 17.07 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000782/3.639, allocations: 0.6186 MB / 1.113 GB, free: 16.63 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01253/3.651, allocations: 4.438 MB / 1.118 GB, free: 14.84 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01551/3.667, allocations: 6.447 MB / 1.124 GB, free: 10.61 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01556/3.683, allocations: 5.543 MB / 1.13 GB, free: 8.098 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.902e-05/3.683, allocations: 15.22 kB / 1.13 GB, free: 8.098 MB / 474.7 MB Notification: Performance of matching and sorting (n=1001) (initialization): time 0.04018/3.723, allocations: 13 MB / 1.142 GB, free: 1.117 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.413e-05/3.723, allocations: 32 kB / 1.142 GB, free: 1.086 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001697/3.723, allocations: 60.56 kB / 1.142 GB, free: 1.027 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01044/3.734, allocations: 2.523 MB / 1.145 GB, free: 15.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01291/3.747, allocations: 1.541 MB / 1.146 GB, free: 14.11 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01801/3.765, allocations: 10.46 MB / 1.157 GB, free: 4.125 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01008/3.775, allocations: 490.3 kB / 1.157 GB, free: 3.758 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001825/3.777, allocations: 338.6 kB / 1.157 GB, free: 3.449 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 274 * 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 (800): * Single equations (assignments): 733 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 60 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 6 * 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: 2 {(2,100.0%) 8,(1,100.0%) 5} * Non-linear torn systems: 4 {6 9,6 9,6 9,6 43} Notification: Performance of prepare postOptimizeDAE: time 0.01148/3.788, allocations: 3.784 MB / 1.161 GB, free: 272 kB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.3643/4.153, allocations: 0.5457 MB / 1.162 GB, free: 86.33 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03601/4.189, allocations: 11.81 MB / 1.173 GB, free: 85.8 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02367/4.212, allocations: 8.472 MB / 1.181 GB, free: 85.57 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.256e-05/4.212, allocations: 7.406 kB / 1.181 GB, free: 85.57 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001537/4.213, allocations: 28.97 kB / 1.181 GB, free: 85.57 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07016/4.283, allocations: 24.48 MB / 1.205 GB, free: 84.39 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.7e-05/4.283, allocations: 7.375 kB / 1.205 GB, free: 84.39 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008274/4.291, allocations: 0.9185 MB / 1.206 GB, free: 84.39 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008692/4.3, allocations: 2.429 MB / 1.209 GB, free: 84.32 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001795/4.302, allocations: 155.9 kB / 1.209 GB, free: 84.32 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01998/4.322, allocations: 14.19 MB / 1.223 GB, free: 75.83 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.044e-05/4.322, allocations: 11.77 kB / 1.223 GB, free: 75.83 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04831/4.37, allocations: 18.41 MB / 1.241 GB, free: 67 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005925/4.376, allocations: 1.554 MB / 1.242 GB, free: 66.39 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002321/4.379, allocations: 107.9 kB / 1.242 GB, free: 66.31 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00733/4.386, allocations: 325 kB / 1.242 GB, free: 66.24 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002428/4.388, allocations: 0.4961 MB / 1.243 GB, free: 66.14 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009717/4.389, allocations: 184.1 kB / 1.243 GB, free: 66.1 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.007444/4.397, allocations: 2.925 MB / 1.246 GB, free: 65.01 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.11e-07/4.397, allocations: 0 / 1.246 GB, free: 65.01 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01183/4.409, allocations: 2.009 MB / 1.248 GB, free: 64.8 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (smee.phiMechanical,smee.stator.core.Phi.im,smee.stator.zeroInductor.i0,smee.excitation.electroMagneticConverter.Phi.re,smeeQS.excitation.electroMagneticConverter.port_p.reference.gamma,mechanicalPowerSensorQS.relSpeedSensor.phi_rel) * 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 (482): * Single equations (assignments): 414 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 60 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 8,(1,100.0%) 4,(1,100.0%) 8,(3,77.8%) 4} * Non-linear torn systems: 4 {6 9,6 9,6 9,6 43} Notification: Performance of Backend phase and start with SimCode phase: time 0.04635/4.455, allocations: 20.47 MB / 1.268 GB, free: 54.23 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.028/4.483, allocations: 11.03 MB / 1.279 GB, free: 47.54 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.226e-05/4.483, allocations: 0 / 1.279 GB, free: 47.54 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01531/4.499, allocations: 5.846 MB / 1.284 GB, free: 42.43 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009124/4.508, allocations: 1.079 MB / 1.285 GB, free: 41.61 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5477/5.055, allocations: 107.4 MB / 1.39 GB, free: 69.31 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01278/5.068, allocations: 6.795 MB / 1.397 GB, free: 68.43 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01011/5.079, allocations: 4.154 MB / 1.401 GB, free: 68.43 MB / 0.4948 GB Notification: Performance of SimCode: time 1.393e-06/5.079, allocations: 0 / 1.401 GB, free: 68.43 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/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_SMEE_GeneratorCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_GeneratorCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_GeneratorCalcHelperMain.cpp:28: ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_GeneratorFunctions.cpp:621:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp325 = 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_SMEE_GeneratorFunctions.cpp:621:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp325 = 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_SMEE_GeneratorCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_GeneratorFMU.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_SMEE_GeneratorCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_GeneratorCalcHelperMain.o] Error 1