Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.826/1.826, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.384e-05/3.395e-05, allocations: 7.984 kB / 255.5 MB, free: 3.082 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09342/0.09348, allocations: 44.51 MB / 300 MB, free: 6.52 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5982/0.6917, allocations: 150.1 MB / 450.1 MB, free: 10.71 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003588/0.6922, allocations: 98.41 kB / 450.2 MB, free: 10.66 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.834/2.526, allocations: 385.9 MB / 0.8165 GB, free: 29.41 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.114e-06/2.526, allocations: 0 / 0.8165 GB, free: 29.41 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0009204/2.527, allocations: 299.5 kB / 0.8167 GB, free: 29.12 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3509 * Number of variables: 3509 Notification: Performance of Generate backend data structure: time 0.05145/2.579, allocations: 11.04 MB / 0.8275 GB, free: 17.97 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.57e-05/2.579, allocations: 8.031 kB / 0.8275 GB, free: 17.96 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00809/2.587, allocations: 1.778 MB / 0.8293 GB, free: 16.18 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05501/2.642, allocations: 6.336 MB / 0.8355 GB, free: 9.816 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03886/2.681, allocations: 9.442 MB / 0.8447 GB, free: 316 kB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.3623/3.043, allocations: 0.9174 MB / 0.8456 GB, free: 32.91 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006858/3.05, allocations: 1.198 MB / 0.8467 GB, free: 32.91 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07369/3.124, allocations: 20.31 MB / 0.8666 GB, free: 31.46 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008409/3.125, allocations: 20.19 kB / 0.8666 GB, free: 31.46 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005329/3.13, allocations: 0.5153 MB / 0.8671 GB, free: 31.46 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001414/3.131, allocations: 0.8359 MB / 0.8679 GB, free: 31.43 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05607/3.187, allocations: 18.38 MB / 0.8859 GB, free: 31.32 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1683/3.356, allocations: 63.97 MB / 0.9483 GB, free: 6.297 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.06159/3.417, allocations: 45.7 MB / 0.993 GB, free: 14.45 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0213/3.439, allocations: 7.716 MB / 1 GB, free: 9.438 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4553/3.894, allocations: 24.48 MB / 1.024 GB, free: 75.48 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001082/3.894, allocations: 102.4 kB / 1.024 GB, free: 75.44 MB / 474.7 MB Notification: Performance of pre-optimization done (n=759): time 1.237e-05/3.894, allocations: 3.469 kB / 1.024 GB, free: 75.44 MB / 474.7 MB Notification: Performance of matching and sorting (n=799): time 0.08626/3.981, allocations: 26.68 MB / 1.051 GB, free: 73.59 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.958e-05/3.981, allocations: 125.8 kB / 1.051 GB, free: 73.52 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009941/3.991, allocations: 3.552 MB / 1.054 GB, free: 73.18 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001913/3.993, allocations: 136.7 kB / 1.054 GB, free: 73.14 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003745/3.996, allocations: 4.715 MB / 1.059 GB, free: 70.52 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004638/4.001, allocations: 2.653 MB / 1.061 GB, free: 68.81 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002181/4.003, allocations: 162.1 kB / 1.062 GB, free: 68.81 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001142/4.005, allocations: 0.6707 MB / 1.062 GB, free: 68.48 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01379/4.018, allocations: 5.02 MB / 1.067 GB, free: 68.45 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01597/4.034, allocations: 7.419 MB / 1.074 GB, free: 65.71 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01667/4.051, allocations: 6.366 MB / 1.081 GB, free: 65.59 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001277/4.051, allocations: 22.06 kB / 1.081 GB, free: 65.59 MB / 474.7 MB Notification: Performance of matching and sorting (n=1144) (initialization): time 0.04287/4.094, allocations: 15.22 MB / 1.096 GB, free: 62.34 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.687e-05/4.094, allocations: 34.78 kB / 1.096 GB, free: 62.34 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001499/4.094, allocations: 79.14 kB / 1.096 GB, free: 62.34 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.013/4.107, allocations: 4.097 MB / 1.1 GB, free: 61.1 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01264/4.12, allocations: 1.622 MB / 1.101 GB, free: 61.05 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02049/4.141, allocations: 12.19 MB / 1.113 GB, free: 53.16 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01001/4.151, allocations: 443.4 kB / 1.114 GB, free: 53.02 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002513/4.153, allocations: 391.8 kB / 1.114 GB, free: 52.95 MB / 474.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 (846): * Single equations (assignments): 790 * 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.004568/4.158, allocations: 0.5765 MB / 1.114 GB, free: 52.56 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002723/4.161, allocations: 0.5808 MB / 1.115 GB, free: 52.25 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04269/4.203, allocations: 14.17 MB / 1.129 GB, free: 46.3 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002888/4.204, allocations: 192.7 kB / 1.129 GB, free: 46.21 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.415e-05/4.204, allocations: 7.453 kB / 1.129 GB, free: 46.21 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001647/4.204, allocations: 37.97 kB / 1.129 GB, free: 46.21 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08582/4.29, allocations: 28.37 MB / 1.157 GB, free: 25.79 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001096/4.29, allocations: 8.062 kB / 1.157 GB, free: 25.79 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009667/4.3, allocations: 1.029 MB / 1.158 GB, free: 25 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01279/4.312, allocations: 3.989 MB / 1.162 GB, free: 21.65 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00198/4.314, allocations: 167.8 kB / 1.162 GB, free: 21.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01889/4.333, allocations: 12.03 MB / 1.174 GB, free: 10.13 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.282e-06/4.333, allocations: 7.562 kB / 1.174 GB, free: 10.13 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4733/4.807, allocations: 22.83 MB / 1.196 GB, free: 71.1 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006877/4.814, allocations: 1.735 MB / 1.198 GB, free: 71 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002993/4.817, allocations: 118.3 kB / 1.198 GB, free: 71 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007826/4.824, allocations: 323.5 kB / 1.198 GB, free: 71 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003057/4.828, allocations: 0.5661 MB / 1.199 GB, free: 71 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002004/4.83, allocations: 214.2 kB / 1.199 GB, free: 71 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.007664/4.837, allocations: 2.652 MB / 1.201 GB, free: 70.79 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.163e-06/4.837, allocations: 0 / 1.201 GB, free: 70.79 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01301/4.85, allocations: 2.135 MB / 1.203 GB, free: 70.79 MB / 474.7 MB 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 (535): * Single equations (assignments): 479 * 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.05932/4.91, allocations: 23.24 MB / 1.226 GB, free: 68.6 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03441/4.944, allocations: 12.85 MB / 1.239 GB, free: 67.9 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.009e-05/4.944, allocations: 2.156 kB / 1.239 GB, free: 67.9 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01959/4.964, allocations: 6.656 MB / 1.245 GB, free: 67.32 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01129/4.975, allocations: 1.176 MB / 1.246 GB, free: 67.3 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08256/5.058, allocations: 24.86 MB / 1.271 GB, free: 59.57 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01629/5.074, allocations: 7.74 MB / 1.278 GB, free: 56.97 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0118/5.086, allocations: 4.573 MB / 1.283 GB, free: 53.13 MB / 474.7 MB Notification: Performance of SimCode: time 1.412e-06/5.086, allocations: 0 / 1.283 GB, free: 53.13 MB / 474.7 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=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." -DUSE_LOGGER -c -o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSourceCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSourceCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSourceCalcHelperMain.cpp:28: ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSourceFunctions.cpp:455:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp300 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSourceFunctions.cpp:455:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp300 = 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_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSourceCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSourceFMU.cpp:11: /var/lib/jenkins/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_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSourceCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSourceCalcHelperMain.o] Error 1