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_MultiPhase.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_MultiPhase,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.837/1.837, allocations: 194.9 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003449/0.0003449, allocations: 12 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09133/0.09171, allocations: 44.5 MB / 308.5 MB, free: 0.9062 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4448/0.5366, allocations: 117 MB / 425.5 MB, free: 6.098 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002922/0.5369, allocations: 85.98 kB / 425.6 MB, free: 6.086 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9904/1.527, allocations: 192.7 MB / 0.6038 GB, free: 59.88 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.236e-06/1.527, allocations: 0 / 0.6038 GB, free: 59.88 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007902/1.528, allocations: 206.6 kB / 0.604 GB, free: 59.86 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: 2286 * Number of variables: 2286 Notification: Performance of Generate backend data structure: time 0.0373/1.566, allocations: 8.705 MB / 0.6125 GB, free: 55.99 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.861e-05/1.566, allocations: 7.469 kB / 0.6126 GB, free: 55.99 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004729/1.57, allocations: 1.184 MB / 0.6137 GB, free: 55.34 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01519/1.586, allocations: 1.913 MB / 0.6156 GB, free: 54.7 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02463/1.61, allocations: 7.087 MB / 0.6225 GB, free: 51.2 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007855/1.611, allocations: 0.6379 MB / 0.6231 GB, free: 50.91 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003371/1.614, allocations: 0.842 MB / 0.6239 GB, free: 50.63 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03589/1.65, allocations: 11.14 MB / 0.6348 GB, free: 42.31 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004579/1.651, allocations: 7.906 kB / 0.6348 GB, free: 42.3 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002847/1.654, allocations: 363.5 kB / 0.6352 GB, free: 41.95 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004215/1.654, allocations: 367.2 kB / 0.6355 GB, free: 41.61 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02982/1.684, allocations: 9.062 MB / 0.6444 GB, free: 33.23 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4027/2.087, allocations: 35.86 MB / 0.6794 GB, free: 44.77 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02508/2.112, allocations: 16.95 MB / 0.696 GB, free: 32.31 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02771/2.14, allocations: 9.408 MB / 0.7051 GB, free: 30.68 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.074e-05/2.14, allocations: 75.84 kB / 0.7052 GB, free: 30.64 MB / 410.7 MB Notification: Performance of pre-optimization done (n=327): time 6.161e-06/2.14, allocations: 0 / 0.7052 GB, free: 30.64 MB / 410.7 MB Notification: Performance of matching and sorting (n=381): time 0.06223/2.202, allocations: 16.6 MB / 0.7214 GB, free: 28.28 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.008e-05/2.202, allocations: 97.5 kB / 0.7215 GB, free: 28.21 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01002/2.212, allocations: 3.84 MB / 0.7253 GB, free: 27.89 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007753/2.213, allocations: 92.14 kB / 0.7254 GB, free: 27.86 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002886/2.216, allocations: 3.566 MB / 0.7288 GB, free: 26.03 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001734/2.218, allocations: 1.288 MB / 0.7301 GB, free: 25.21 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005109/2.218, allocations: 90.19 kB / 0.7302 GB, free: 25.21 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002952/2.219, allocations: 0.494 MB / 0.7307 GB, free: 24.88 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005843/2.224, allocations: 1.97 MB / 0.7326 GB, free: 24.87 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007137/2.232, allocations: 3.379 MB / 0.7359 GB, free: 23.21 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007244/2.239, allocations: 2.561 MB / 0.7384 GB, free: 23.17 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.214e-05/2.239, allocations: 14.09 kB / 0.7384 GB, free: 23.17 MB / 410.7 MB Notification: Performance of matching and sorting (n=597) (initialization): time 0.02014/2.259, allocations: 6.382 MB / 0.7446 GB, free: 22.75 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.917e-05/2.259, allocations: 26.72 kB / 0.7447 GB, free: 22.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001073/2.259, allocations: 46.22 kB / 0.7447 GB, free: 22.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003371/2.263, allocations: 0.7772 MB / 0.7455 GB, free: 22.69 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007881/2.271, allocations: 1.099 MB / 0.7465 GB, free: 22.68 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01717/2.288, allocations: 10.54 MB / 0.7568 GB, free: 30.96 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006642/2.295, allocations: 271 kB / 0.7571 GB, free: 30.86 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001031/2.296, allocations: 198.4 kB / 0.7573 GB, free: 30.82 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 200 * 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 (541): * Single equations (assignments): 533 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * 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: 4 {(2,100.0%) 13,(1,100.0%) 5,(2,100.0%) 13,(3,77.8%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007548/2.303, allocations: 2.533 MB / 0.7597 GB, free: 29.55 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00167/2.305, allocations: 0.4908 MB / 0.7602 GB, free: 29.3 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01779/2.323, allocations: 5.715 MB / 0.7658 GB, free: 26.78 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.542e-05/2.323, allocations: 37.69 kB / 0.7658 GB, free: 26.78 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.44e-05/2.323, allocations: 17.14 kB / 0.7659 GB, free: 26.78 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001114/2.323, allocations: 18.28 kB / 0.7659 GB, free: 26.78 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03998/2.363, allocations: 13.85 MB / 0.7794 GB, free: 20.65 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.413e-05/2.363, allocations: 8.375 kB / 0.7794 GB, free: 20.65 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005567/2.369, allocations: 0.6585 MB / 0.7801 GB, free: 20.62 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003782/2.372, allocations: 0.9055 MB / 0.7809 GB, free: 20.33 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007641/2.373, allocations: 93.61 kB / 0.781 GB, free: 20.27 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02303/2.396, allocations: 14.28 MB / 0.795 GB, free: 9.605 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-05/2.396, allocations: 15.73 kB / 0.795 GB, free: 9.598 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02308/2.419, allocations: 9.121 MB / 0.8039 GB, free: 4.656 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003646/2.423, allocations: 0.9949 MB / 0.8049 GB, free: 3.996 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001854/2.425, allocations: 79.84 kB / 0.8049 GB, free: 3.941 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005506/2.431, allocations: 213.2 kB / 0.8051 GB, free: 3.887 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001244/2.432, allocations: 288.3 kB / 0.8054 GB, free: 3.836 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004665/2.432, allocations: 113.1 kB / 0.8055 GB, free: 3.812 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00869/2.441, allocations: 2.917 MB / 0.8084 GB, free: 1.531 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.91e-07/2.441, allocations: 0 / 0.8084 GB, free: 1.531 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.009447/2.451, allocations: 1.555 MB / 0.8099 GB, free: 0 / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * 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,smee3.phiMechanical,smee3.stator.core.Phi.re,smee3.stator.core.Phi.im,smee3.stator.strayReluctance.Phi.re,smee3.stator.strayReluctance.Phi.im) * 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 (303): * Single equations (assignments): 296 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 13,(4,93.8%) 33,(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02808/2.479, allocations: 11.3 MB / 0.8209 GB, free: 5.422 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01715/2.496, allocations: 5.864 MB / 0.8266 GB, free: 60 kB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.094e-05/2.496, allocations: 0 / 0.8266 GB, free: 60 kB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01168/2.508, allocations: 3.672 MB / 0.8302 GB, free: 12.93 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008687/2.516, allocations: 1.059 MB / 0.8313 GB, free: 12.1 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4609/2.977, allocations: 77.75 MB / 0.9072 GB, free: 47.99 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01107/2.988, allocations: 5.1 MB / 0.9122 GB, free: 47.14 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008682/2.997, allocations: 3.346 MB / 0.9154 GB, free: 47.14 MB / 458.7 MB Notification: Performance of SimCode: time 1.693e-06/2.997, allocations: 0 / 0.9154 GB, free: 47.14 MB / 458.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_Generator_MultiPhaseCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhaseCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhaseCalcHelperMain.cpp:28: ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhaseFunctions.cpp:366: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_Generator_MultiPhaseFunctions.cpp:343:12: note: '_omcQ_24tmpVar11_' declared here double _omcQ_24tmpVar11_; ^ ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhaseFunctions.cpp:403: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_Generator_MultiPhaseFunctions.cpp:380:12: note: '_omcQ_24tmpVar14_' declared here double _omcQ_24tmpVar14_; ^ In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhaseCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhaseFMU.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_Generator_MultiPhaseCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhaseCalcHelperMain.o] Error 1