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.002142/0.002142, allocations: 180.9 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.128/2.128, 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.001075/0.001074, allocations: 78.67 kB / 267.5 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.65e-05/3.679e-05, allocations: 4 kB / 321.6 MB, free: 17.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1072, allocations: 47.58 MB / 369.2 MB, free: 2.086 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5718/0.6791, allocations: 167 MB / 0.5237 GB, free: 7.555 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003895/0.6796, allocations: 107.1 kB / 0.5238 GB, free: 7.496 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.225/2.904, allocations: 393.9 MB / 0.9084 GB, free: 45 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.705e-06/2.904, allocations: 0 / 0.9084 GB, free: 45 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.001035/2.905, allocations: 261.9 kB / 0.9087 GB, free: 44.98 MB / 458.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.04971/2.955, allocations: 10.28 MB / 0.9187 GB, free: 41.67 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.541e-05/2.955, allocations: 8.625 kB / 0.9187 GB, free: 41.67 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009186/2.964, allocations: 1.782 MB / 0.9205 GB, free: 41.52 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03752/3.002, allocations: 4.392 MB / 0.9248 GB, free: 40.89 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03393/3.036, allocations: 8.861 MB / 0.9334 GB, free: 39.73 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001351/3.037, allocations: 0.8369 MB / 0.9342 GB, free: 39.71 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005659/3.043, allocations: 1.079 MB / 0.9353 GB, free: 39.7 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06065/3.104, allocations: 17.25 MB / 0.9521 GB, free: 38.33 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006593/3.104, allocations: 16.44 kB / 0.9522 GB, free: 38.32 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005/3.109, allocations: 477.5 kB / 0.9526 GB, free: 38.32 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001102/3.111, allocations: 0.6941 MB / 0.9533 GB, free: 38.3 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04809/3.159, allocations: 14.97 MB / 0.9679 GB, free: 32.81 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1673/3.326, allocations: 58.21 MB / 1.025 GB, free: 9.023 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4203/3.746, allocations: 17.09 MB / 1.041 GB, free: 52.2 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01716/3.764, allocations: 6.18 MB / 1.047 GB, free: 52.13 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05852/3.822, allocations: 18.92 MB / 1.066 GB, free: 50.96 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.872e-05/3.822, allocations: 93.97 kB / 1.066 GB, free: 50.91 MB / 474.7 MB Notification: Performance of pre-optimization done (n=626): time 1.029e-05/3.822, allocations: 0 / 1.066 GB, free: 50.91 MB / 474.7 MB Notification: Performance of matching and sorting (n=659): time 0.07463/3.897, allocations: 23.46 MB / 1.089 GB, free: 47.51 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005299/3.902, allocations: 2.938 MB / 1.092 GB, free: 45.91 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01125/3.914, allocations: 3.888 MB / 1.096 GB, free: 45.57 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001749/3.915, allocations: 121.1 kB / 1.096 GB, free: 45.54 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003974/3.919, allocations: 4.381 MB / 1.1 GB, free: 43.36 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003761/3.923, allocations: 2.207 MB / 1.102 GB, free: 41.95 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00188/3.925, allocations: 145.2 kB / 1.102 GB, free: 41.95 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0009271/3.926, allocations: 0.6218 MB / 1.103 GB, free: 41.62 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0122/3.938, allocations: 4.366 MB / 1.107 GB, free: 41.1 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01418/3.953, allocations: 6.39 MB / 1.113 GB, free: 36.87 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01437/3.967, allocations: 5.501 MB / 1.119 GB, free: 34.66 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001015/3.967, allocations: 19 kB / 1.119 GB, free: 34.66 MB / 474.7 MB Notification: Performance of matching and sorting (n=997) (initialization): time 0.03691/4.004, allocations: 12.84 MB / 1.131 GB, free: 29.74 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.532e-05/4.004, allocations: 29.19 kB / 1.131 GB, free: 29.74 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001451/4.004, allocations: 60.62 kB / 1.131 GB, free: 29.74 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008182/4.013, allocations: 2.397 MB / 1.134 GB, free: 29.02 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01209/4.025, allocations: 1.532 MB / 1.135 GB, free: 28.97 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01534/4.04, allocations: 10.39 MB / 1.145 GB, free: 21.64 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01178/4.052, allocations: 0.5307 MB / 1.146 GB, free: 21.51 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003172/4.055, allocations: 347.7 kB / 1.146 GB, free: 21.45 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 278 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (792): * Single equations (assignments): 723 * Array equations: 2 * 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.006195/4.061, allocations: 0.5117 MB / 1.147 GB, free: 21.11 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004415/4.066, allocations: 0.5542 MB / 1.147 GB, free: 20.81 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05658/4.123, allocations: 11.71 MB / 1.159 GB, free: 15.84 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04556/4.168, allocations: 10.38 MB / 1.169 GB, free: 11.47 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.42e-05/4.168, allocations: 3.625 kB / 1.169 GB, free: 11.47 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001738/4.169, allocations: 29.95 kB / 1.169 GB, free: 11.47 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1419/4.31, allocations: 30.6 MB / 1.199 GB, free: 4.312 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001249/4.311, allocations: 4 kB / 1.199 GB, free: 4.309 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01369/4.324, allocations: 0.88 MB / 1.2 GB, free: 3.645 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01736/4.342, allocations: 2.66 MB / 1.202 GB, free: 1.531 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002306/4.344, allocations: 148.8 kB / 1.202 GB, free: 1.406 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04828/4.392, allocations: 15.89 MB / 1.218 GB, free: 2.238 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.5339/4.926, allocations: 2.813 MB / 1.221 GB, free: 82.81 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07856/5.005, allocations: 18.37 MB / 1.239 GB, free: 80.93 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009278/5.014, allocations: 1.57 MB / 1.24 GB, free: 80.84 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004139/5.019, allocations: 102.7 kB / 1.24 GB, free: 80.84 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01231/5.031, allocations: 343.4 kB / 1.241 GB, free: 80.84 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003696/5.035, allocations: 0.5067 MB / 1.241 GB, free: 80.83 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002184/5.037, allocations: 182.8 kB / 1.241 GB, free: 80.83 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01247/5.05, allocations: 2.885 MB / 1.244 GB, free: 80.62 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.723e-06/5.05, allocations: 0 / 1.244 GB, free: 80.62 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01831/5.068, allocations: 2.102 MB / 1.246 GB, free: 80.62 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],smee.stator.zeroInductor.i0,smeeQS.gamma,smeeQS.excitation.electroMagneticConverter.port_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (461): * Single equations (assignments): 393 * 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: 3 {(2,100.0%) 8,(1,100.0%) 4,(1,100.0%) 8} * Non-linear torn systems: 5 {5 12,6 9,6 9,6 9,6 43} Notification: Performance of Backend phase and start with SimCode phase: time 0.07611/5.144, allocations: 20.51 MB / 1.266 GB, free: 77.28 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.04658/5.191, allocations: 10.89 MB / 1.277 GB, free: 76.69 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.905e-05/5.191, allocations: 0 / 1.277 GB, free: 76.69 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.02627/5.217, allocations: 5.887 MB / 1.283 GB, free: 76.11 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01597/5.233, allocations: 1.08 MB / 1.284 GB, free: 76.09 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1103/5.344, allocations: 21.65 MB / 1.305 GB, free: 69.2 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02365/5.367, allocations: 6.811 MB / 1.311 GB, free: 67 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01699/5.384, allocations: 4.211 MB / 1.315 GB, free: 63.47 MB / 0.4948 GB Notification: Performance of SimCode: time 2.696e-06/5.384, allocations: 0 / 1.315 GB, free: 63.47 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