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.SMR_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.SMR_CurrentSource,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_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.00244/0.00244, allocations: 181.6 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.098/2.098, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.001108/0.001107, allocations: 86.66 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.186e-05/3.228e-05, allocations: 4 kB / 321.6 MB, free: 17.71 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1051, allocations: 47.57 MB / 369.2 MB, free: 2.078 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5586/0.6637, allocations: 156.1 MB / 0.513 GB, free: 1.766 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003463/0.6641, allocations: 101.8 kB / 0.5131 GB, free: 1.711 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.208/2.872, allocations: 384.5 MB / 0.8886 GB, free: 33.55 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.084e-06/2.872, allocations: 3.312 kB / 0.8886 GB, free: 33.55 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.00126/2.873, allocations: 290.2 kB / 0.8889 GB, free: 33.53 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: 3512 * Number of variables: 3512 Notification: Performance of Generate backend data structure: time 0.05497/2.928, allocations: 11.06 MB / 0.8997 GB, free: 29.95 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.66e-05/2.929, allocations: 13.75 kB / 0.8997 GB, free: 29.95 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009197/2.938, allocations: 1.781 MB / 0.9015 GB, free: 29.82 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05273/2.99, allocations: 6.333 MB / 0.9076 GB, free: 29.12 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03669/3.027, allocations: 9.448 MB / 0.9169 GB, free: 27.94 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001518/3.029, allocations: 0.9232 MB / 0.9178 GB, free: 27.91 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00673/3.036, allocations: 1.209 MB / 0.919 GB, free: 27.9 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0693/3.105, allocations: 20.31 MB / 0.9388 GB, free: 26.41 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007952/3.106, allocations: 24.28 kB / 0.9388 GB, free: 26.4 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005538/3.111, allocations: 0.5197 MB / 0.9393 GB, free: 26.39 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001375/3.113, allocations: 0.835 MB / 0.9401 GB, free: 26.37 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0573/3.17, allocations: 18.39 MB / 0.9581 GB, free: 20.08 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1975/3.368, allocations: 64.01 MB / 1.021 GB, free: 1.535 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4677/3.835, allocations: 47.02 MB / 1.067 GB, free: 25.65 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02212/3.858, allocations: 7.727 MB / 1.074 GB, free: 25.54 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07206/3.93, allocations: 23.5 MB / 1.097 GB, free: 24.62 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001129/3.93, allocations: 100.1 kB / 1.097 GB, free: 24.58 MB / 474.7 MB Notification: Performance of pre-optimization done (n=760): time 1.201e-05/3.93, allocations: 1.281 kB / 1.097 GB, free: 24.58 MB / 474.7 MB Notification: Performance of matching and sorting (n=800): time 0.08586/4.016, allocations: 26.61 MB / 1.123 GB, free: 21.22 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.984e-05/4.016, allocations: 123.6 kB / 1.123 GB, free: 21.15 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009637/4.026, allocations: 3.563 MB / 1.127 GB, free: 19.77 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001867/4.028, allocations: 137.5 kB / 1.127 GB, free: 19.65 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003768/4.031, allocations: 4.72 MB / 1.131 GB, free: 16 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004535/4.036, allocations: 2.661 MB / 1.134 GB, free: 13.94 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001999/4.038, allocations: 157.4 kB / 1.134 GB, free: 13.81 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001048/4.039, allocations: 0.6723 MB / 1.135 GB, free: 13.34 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01408/4.053, allocations: 5.017 MB / 1.14 GB, free: 11.27 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01652/4.07, allocations: 7.428 MB / 1.147 GB, free: 6.285 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01673/4.087, allocations: 6.371 MB / 1.153 GB, free: 3.758 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.463e-05/4.087, allocations: 20.12 kB / 1.153 GB, free: 3.758 MB / 474.7 MB Notification: Performance of matching and sorting (n=1145) (initialization): time 0.04794/4.135, allocations: 15.41 MB / 1.168 GB, free: 14.64 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.097e-05/4.135, allocations: 35.12 kB / 1.168 GB, free: 14.64 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001585/4.135, allocations: 76.53 kB / 1.168 GB, free: 14.64 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01414/4.149, allocations: 4.101 MB / 1.172 GB, free: 13.39 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01278/4.162, allocations: 1.633 MB / 1.174 GB, free: 13.34 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02293/4.185, allocations: 12.19 MB / 1.186 GB, free: 4.57 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01011/4.195, allocations: 440.2 kB / 1.186 GB, free: 4.227 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002652/4.198, allocations: 388.7 kB / 1.187 GB, free: 3.871 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 333 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (847): * Single equations (assignments): 791 * 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.004521/4.202, allocations: 0.5808 MB / 1.187 GB, free: 3.398 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003303/4.206, allocations: 0.5777 MB / 1.188 GB, free: 2.816 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06321/4.269, allocations: 15.03 MB / 1.203 GB, free: 8.898 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003831/4.269, allocations: 193.8 kB / 1.203 GB, free: 8.73 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.719e-05/4.269, allocations: 3.953 kB / 1.203 GB, free: 8.727 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001653/4.27, allocations: 33.38 kB / 1.203 GB, free: 8.727 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4783/4.748, allocations: 28.5 MB / 1.231 GB, free: 86.65 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001147/4.748, allocations: 2.828 kB / 1.231 GB, free: 86.65 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01006/4.758, allocations: 1.037 MB / 1.232 GB, free: 86.65 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01388/4.772, allocations: 3.972 MB / 1.235 GB, free: 86.54 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00215/4.774, allocations: 173.7 kB / 1.236 GB, free: 86.54 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02053/4.795, allocations: 12.01 MB / 1.247 GB, free: 81.96 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.051e-06/4.795, allocations: 6.094 kB / 1.247 GB, free: 81.96 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05782/4.853, allocations: 21.4 MB / 1.268 GB, free: 80.84 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007149/4.86, allocations: 1.735 MB / 1.27 GB, free: 80.74 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003476/4.863, allocations: 117.2 kB / 1.27 GB, free: 80.74 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008367/4.872, allocations: 335.5 kB / 1.27 GB, free: 80.74 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003081/4.875, allocations: 0.557 MB / 1.271 GB, free: 80.73 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002086/4.877, allocations: 220.4 kB / 1.271 GB, free: 80.73 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.008029/4.885, allocations: 2.657 MB / 1.274 GB, free: 80.53 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.132e-06/4.885, allocations: 2.062 kB / 1.274 GB, free: 80.53 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01406/4.899, allocations: 2.143 MB / 1.276 GB, free: 80.53 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (536): * Single equations (assignments): 480 * 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.06142/4.961, allocations: 23.23 MB / 1.299 GB, free: 72.82 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.03567/4.997, allocations: 12.86 MB / 1.311 GB, free: 67.77 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.274e-05/4.997, allocations: 3 kB / 1.311 GB, free: 67.77 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01975/5.016, allocations: 6.67 MB / 1.318 GB, free: 64.95 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01136/5.028, allocations: 1.173 MB / 1.319 GB, free: 64.63 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08599/5.114, allocations: 24.94 MB / 1.343 GB, free: 47.5 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01836/5.132, allocations: 7.741 MB / 1.351 GB, free: 41.7 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01357/5.146, allocations: 4.577 MB / 1.355 GB, free: 37.45 MB / 0.4948 GB Notification: Performance of SimCode: time 1.924e-06/5.146, allocations: 0 / 1.355 GB, free: 37.45 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_SMR_CurrentSourceCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSourceCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSourceCalcHelperMain.cpp:28: ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSourceFunctions.cpp:455:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp301 = 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_SMR_CurrentSourceFunctions.cpp:455:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp301 = 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_SMR_CurrentSourceCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_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_SMR_CurrentSourceCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSourceCalcHelperMain.o] Error 1