Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.781/1.781, allocations: 194.9 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003563/0.0003565, allocations: 12 kB / 264 MB, free: 13.49 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09311/0.09349, allocations: 44.51 MB / 308.5 MB, free: 0.9062 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4871/0.5807, allocations: 130.3 MB / 438.9 MB, free: 9.34 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003148/0.581, allocations: 93.17 kB / 439 MB, free: 9.293 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8391/1.42, allocations: 130.4 MB / 0.556 GB, free: 70.48 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.356e-06/1.42, allocations: 0 / 0.556 GB, free: 70.48 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007008/1.421, allocations: 139.2 kB / 0.5562 GB, free: 70.47 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1488 * Number of variables: 1488 Notification: Performance of Generate backend data structure: time 0.0263/1.447, allocations: 6.018 MB / 0.5621 GB, free: 68.15 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.08e-05/1.447, allocations: 10.44 kB / 0.5621 GB, free: 68.15 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003653/1.451, allocations: 0.7759 MB / 0.5628 GB, free: 68.07 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00922/1.46, allocations: 1.154 MB / 0.5639 GB, free: 67.73 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01772/1.478, allocations: 4.91 MB / 0.5687 GB, free: 66.91 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005179/1.479, allocations: 423.8 kB / 0.5691 GB, free: 66.9 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00225/1.481, allocations: 0.5525 MB / 0.5697 GB, free: 66.89 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02413/1.505, allocations: 7.173 MB / 0.5767 GB, free: 66.22 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002823/1.505, allocations: 11.48 kB / 0.5767 GB, free: 66.21 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001529/1.507, allocations: 237 kB / 0.5769 GB, free: 66.21 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002917/1.507, allocations: 253.3 kB / 0.5772 GB, free: 66.2 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01888/1.526, allocations: 5.789 MB / 0.5828 GB, free: 66.15 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05988/1.586, allocations: 23.77 MB / 0.606 GB, free: 54.86 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0125/1.599, allocations: 8.709 MB / 0.6145 GB, free: 47.6 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01937/1.618, allocations: 6.766 MB / 0.6211 GB, free: 43.99 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.77e-05/1.618, allocations: 63.19 kB / 0.6212 GB, free: 43.93 MB / 410.7 MB Notification: Performance of pre-optimization done (n=250): time 6.071e-06/1.618, allocations: 0 / 0.6212 GB, free: 43.93 MB / 410.7 MB Notification: Performance of matching and sorting (n=302): time 0.06669/1.685, allocations: 16.42 MB / 0.6372 GB, free: 32.46 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.326e-05/1.685, allocations: 85.75 kB / 0.6373 GB, free: 32.36 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007291/1.692, allocations: 2.949 MB / 0.6402 GB, free: 29.86 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006496/1.693, allocations: 77.7 kB / 0.6403 GB, free: 29.78 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001936/1.695, allocations: 2.437 MB / 0.6427 GB, free: 27.55 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001382/1.696, allocations: 1.031 MB / 0.6437 GB, free: 26.62 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003996/1.697, allocations: 79.94 kB / 0.6437 GB, free: 26.54 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002368/1.697, allocations: 455.1 kB / 0.6442 GB, free: 26.13 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004476/1.702, allocations: 1.633 MB / 0.6458 GB, free: 24.73 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005311/1.707, allocations: 2.792 MB / 0.6485 GB, free: 21.71 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005539/1.712, allocations: 2.104 MB / 0.6506 GB, free: 19.76 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.736e-05/1.713, allocations: 12 kB / 0.6506 GB, free: 19.75 MB / 410.7 MB Notification: Performance of matching and sorting (n=484) (initialization): time 0.01491/1.727, allocations: 5.485 MB / 0.6559 GB, free: 14.84 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.304e-05/1.728, allocations: 28.47 kB / 0.6559 GB, free: 14.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.749e-05/1.728, allocations: 36 kB / 0.656 GB, free: 14.79 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003472/1.731, allocations: 0.8742 MB / 0.6568 GB, free: 14.06 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006231/1.737, allocations: 0.8951 MB / 0.6577 GB, free: 13.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01663/1.754, allocations: 10.03 MB / 0.6675 GB, free: 3.785 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005552/1.76, allocations: 239.2 kB / 0.6677 GB, free: 3.594 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008861/1.761, allocations: 170.8 kB / 0.6679 GB, free: 3.434 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 168 * 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 (431): * Single equations (assignments): 422 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * 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: 3 {(6,72.2%) 23,(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00505/1.766, allocations: 1.621 MB / 0.6695 GB, free: 1.973 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001276/1.767, allocations: 391.3 kB / 0.6699 GB, free: 1.586 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3591/2.126, allocations: 4.962 MB / 0.6747 GB, free: 63.66 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.625e-05/2.126, allocations: 28.81 kB / 0.6747 GB, free: 63.66 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.854e-05/2.126, allocations: 9.594 kB / 0.6747 GB, free: 63.66 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001053/2.127, allocations: 13.91 kB / 0.6747 GB, free: 63.66 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03793/2.164, allocations: 10.55 MB / 0.6851 GB, free: 62.67 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.01314/2.178, allocations: 4.129 MB / 0.6891 GB, free: 62.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004502/2.182, allocations: 0.519 MB / 0.6896 GB, free: 62.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004672/2.187, allocations: 0.9801 MB / 0.6905 GB, free: 62.13 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006459/2.188, allocations: 74.14 kB / 0.6906 GB, free: 62.13 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02209/2.21, allocations: 15.11 MB / 0.7054 GB, free: 54.27 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.959e-06/2.21, allocations: 13.03 kB / 0.7054 GB, free: 54.27 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01951/2.229, allocations: 7.655 MB / 0.7129 GB, free: 52.82 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003036/2.232, allocations: 0.7968 MB / 0.7136 GB, free: 52.72 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001442/2.234, allocations: 66.03 kB / 0.7137 GB, free: 52.72 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004574/2.239, allocations: 194.1 kB / 0.7139 GB, free: 52.72 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001088/2.24, allocations: 227.3 kB / 0.7141 GB, free: 52.71 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004378/2.24, allocations: 88.11 kB / 0.7142 GB, free: 52.71 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.006204/2.246, allocations: 2.23 MB / 0.7164 GB, free: 52.57 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.41e-07/2.246, allocations: 0 / 0.7164 GB, free: 52.57 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007177/2.254, allocations: 1.21 MB / 0.7176 GB, free: 52.57 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.strayReluctance.Phi.re,smeeM.stator.strayReluctance.Phi.im,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * 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 (241): * Single equations (assignments): 232 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(6,72.2%) 23,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0212/2.275, allocations: 9.728 MB / 0.7271 GB, free: 48.48 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01264/2.288, allocations: 4.996 MB / 0.7319 GB, free: 46.36 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.099e-05/2.288, allocations: 6.938 kB / 0.7319 GB, free: 46.36 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008358/2.296, allocations: 3.156 MB / 0.735 GB, free: 44.75 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006732/2.303, allocations: 0.8242 MB / 0.7358 GB, free: 44.52 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09951/2.402, allocations: 59.83 MB / 0.7943 GB, free: 14.25 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006857/2.409, allocations: 3.536 MB / 0.7977 GB, free: 12.34 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006075/2.415, allocations: 2.256 MB / 0.7999 GB, free: 10.25 MB / 426.7 MB Notification: Performance of SimCode: time 1.233e-06/2.415, allocations: 0 / 0.7999 GB, free: 10.25 MB / 426.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_FundamentalWave_Examples_BasicMachines_SMEE_GeneratorCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_GeneratorCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_GeneratorCalcHelperMain.cpp:28: ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_GeneratorFunctions.cpp:375:38: error: use of undeclared identifier '_omcQ_24tmpVar10_'; did you mean '_omcQ_24tmpVar11_'? _omcQ_24tmpVar11_ = std::cos(_omcQ_24tmpVar10_); ^~~~~~~~~~~~~~~~~ _omcQ_24tmpVar11_ ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_GeneratorFunctions.cpp:352:12: note: '_omcQ_24tmpVar11_' declared here double _omcQ_24tmpVar11_; ^ ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_GeneratorFunctions.cpp:412:38: error: use of undeclared identifier '_omcQ_24tmpVar13_'; did you mean '_omcQ_24tmpVar14_'? _omcQ_24tmpVar14_ = std::sin(_omcQ_24tmpVar13_); ^~~~~~~~~~~~~~~~~ _omcQ_24tmpVar14_ ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_GeneratorFunctions.cpp:389:12: note: '_omcQ_24tmpVar14_' declared here double _omcQ_24tmpVar14_; ^ In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_GeneratorCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_GeneratorFMU.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_FundamentalWave_Examples_BasicMachines_SMEE_GeneratorCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_GeneratorCalcHelperMain.o] Error 1