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.002201/0.0022, allocations: 185.9 kB / 16.41 MB, free: 5.727 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.953/1.953, allocations: 205.4 MB / 222.5 MB, free: 9.141 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: 92.36 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003892/0.0003894, allocations: 12 kB / 327.1 MB, free: 96 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3325/0.3329, allocations: 47.57 MB / 374.7 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5361/0.869, allocations: 163.2 MB / 0.5253 GB, free: 65.12 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003543/0.8694, allocations: 104.8 kB / 0.5254 GB, free: 65.11 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.865/2.734, allocations: 396 MB / 0.9121 GB, free: 36.78 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.415e-06/2.734, allocations: 0 / 0.9121 GB, free: 36.78 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001137/2.736, allocations: 297.3 kB / 0.9124 GB, free: 36.75 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: 3597 * Number of variables: 3597 Notification: Performance of Generate backend data structure: time 0.05718/2.793, allocations: 12.03 MB / 0.9241 GB, free: 32.66 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.952e-05/2.793, allocations: 10.03 kB / 0.9241 GB, free: 32.66 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00886/2.802, allocations: 1.847 MB / 0.9259 GB, free: 32.54 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05437/2.856, allocations: 6.449 MB / 0.9322 GB, free: 31.77 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03519/2.891, allocations: 9.708 MB / 0.9417 GB, free: 26.85 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001464/2.893, allocations: 0.9483 MB / 0.9426 GB, free: 25.91 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006589/2.9, allocations: 1.233 MB / 0.9438 GB, free: 24.7 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07221/2.972, allocations: 20.91 MB / 0.9643 GB, free: 6.25 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008543/2.973, allocations: 19.81 kB / 0.9643 GB, free: 6.23 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00578/2.978, allocations: 0.5383 MB / 0.9648 GB, free: 5.707 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001615/2.98, allocations: 0.8539 MB / 0.9656 GB, free: 4.852 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06662/3.047, allocations: 18.95 MB / 0.9841 GB, free: 1.887 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5543/3.601, allocations: 65.87 MB / 1.048 GB, free: 38.26 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05638/3.658, allocations: 46.18 MB / 1.094 GB, free: 14.16 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0702/3.728, allocations: 23.96 MB / 1.117 GB, free: 2.695 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001105/3.728, allocations: 106.5 kB / 1.117 GB, free: 2.605 MB / 474.7 MB Notification: Performance of pre-optimization done (n=783): time 1.211e-05/3.728, allocations: 0 / 1.117 GB, free: 2.605 MB / 474.7 MB Notification: Performance of matching and sorting (n=825): time 0.1995/3.928, allocations: 47.16 MB / 1.163 GB, free: 13.74 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001241/3.928, allocations: 129.5 kB / 1.163 GB, free: 13.6 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01059/3.938, allocations: 3.81 MB / 1.167 GB, free: 10.37 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.001909/3.94, allocations: 133.7 kB / 1.167 GB, free: 10.23 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.005034/3.945, allocations: 4.848 MB / 1.172 GB, free: 5.891 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.005344/3.951, allocations: 2.736 MB / 1.175 GB, free: 3.422 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001737/3.952, allocations: 168 kB / 1.175 GB, free: 3.258 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.001046/3.954, allocations: 0.6788 MB / 1.175 GB, free: 2.676 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02674/3.98, allocations: 5.869 MB / 1.181 GB, free: 0 / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4112/4.392, allocations: 7.65 MB / 1.189 GB, free: 98.41 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0173/4.409, allocations: 6.531 MB / 1.195 GB, free: 98.31 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.87e-05/4.409, allocations: 22.44 kB / 1.195 GB, free: 98.31 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1176) (initialization): time 0.04849/4.458, allocations: 15.67 MB / 1.21 GB, free: 98.02 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 8.626e-05/4.458, allocations: 40.11 kB / 1.21 GB, free: 98.02 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001769/4.458, allocations: 78.06 kB / 1.21 GB, free: 98.02 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01348/4.471, allocations: 4.128 MB / 1.214 GB, free: 97.9 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01308/4.484, allocations: 1.686 MB / 1.216 GB, free: 97.9 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02062/4.505, allocations: 12.21 MB / 1.228 GB, free: 93.3 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01023/4.515, allocations: 459.5 kB / 1.228 GB, free: 93.3 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002584/4.518, allocations: 398.8 kB / 1.229 GB, free: 93.3 MB / 0.4949 GB 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 (878): * Single equations (assignments): 822 * 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.01429/4.532, allocations: 4.456 MB / 1.233 GB, free: 93.18 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003335/4.536, allocations: 0.6068 MB / 1.234 GB, free: 93.18 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04648/4.582, allocations: 14.6 MB / 1.248 GB, free: 90.19 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003215/4.583, allocations: 196.5 kB / 1.248 GB, free: 90.1 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.219e-05/4.583, allocations: 2.562 kB / 1.248 GB, free: 90.1 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001957/4.583, allocations: 32.86 kB / 1.248 GB, free: 90.1 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08431/4.667, allocations: 29.35 MB / 1.277 GB, free: 77.46 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001217/4.667, allocations: 9.297 kB / 1.277 GB, free: 77.46 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009859/4.677, allocations: 1.077 MB / 1.278 GB, free: 77.43 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01332/4.691, allocations: 4.011 MB / 1.282 GB, free: 76.15 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002082/4.693, allocations: 178.3 kB / 1.282 GB, free: 76.05 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01937/4.712, allocations: 12.06 MB / 1.294 GB, free: 67.77 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.165e-06/4.712, allocations: 7.375 kB / 1.294 GB, free: 67.76 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05811/4.77, allocations: 22.17 MB / 1.315 GB, free: 48.11 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006795/4.777, allocations: 1.792 MB / 1.317 GB, free: 46.5 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003228/4.78, allocations: 120.5 kB / 1.317 GB, free: 46.38 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008167/4.789, allocations: 336.5 kB / 1.318 GB, free: 46.14 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002968/4.792, allocations: 0.5835 MB / 1.318 GB, free: 45.77 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001883/4.793, allocations: 223.3 kB / 1.318 GB, free: 45.57 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.007479/4.801, allocations: 2.845 MB / 1.321 GB, free: 43.21 MB / 0.4949 GB Notification: Performance of sort global known variables: time 1.443e-06/4.801, allocations: 2.625 kB / 1.321 GB, free: 43.21 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01355/4.815, allocations: 2.228 MB / 1.323 GB, free: 41 MB / 0.4949 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 (563): * Single equations (assignments): 507 * 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.05814/4.873, allocations: 24.15 MB / 1.347 GB, free: 19.35 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.4068/5.28, allocations: 13.43 MB / 1.36 GB, free: 97.24 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.204e-05/5.28, allocations: 1.312 kB / 1.36 GB, free: 97.24 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.02042/5.3, allocations: 6.86 MB / 1.367 GB, free: 96.67 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01174/5.312, allocations: 1.278 MB / 1.368 GB, free: 96.65 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2134/5.525, allocations: 128.5 MB / 1.494 GB, free: 18.09 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01908/5.544, allocations: 7.849 MB / 1.501 GB, free: 17.05 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01325/5.558, allocations: 4.789 MB / 1.506 GB, free: 13.11 MB / 0.4949 GB Notification: Performance of SimCode: time 1.483e-06/5.558, allocations: 0 / 1.506 GB, free: 13.11 MB / 0.4949 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_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:547:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp311 = 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:547:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp311 = 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