Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.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.FundamentalWave.Examples.BasicMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator",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.001497/0.001501, allocations: 181.9 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.086/2.086, allocations: 205.2 MB / 219.4 MB, free: 14.29 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.001116/0.001116, allocations: 82.72 kB / 267.5 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.527e-05/3.552e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09687/0.09693, allocations: 47.57 MB / 369.2 MB, free: 2.109 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5041/0.6011, allocations: 135.7 MB / 0.493 GB, free: 6.586 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003237/0.6015, allocations: 90.38 kB / 0.4931 GB, free: 6.539 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7845/1.386, allocations: 131.2 MB / 0.6212 GB, free: 62.96 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.685e-06/1.386, allocations: 0 / 0.6212 GB, free: 62.96 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000676/1.387, allocations: 143.8 kB / 0.6213 GB, free: 62.82 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: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.02272/1.409, allocations: 5.416 MB / 0.6266 GB, free: 57.33 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.707e-05/1.41, allocations: 8.031 kB / 0.6266 GB, free: 57.32 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003441/1.413, allocations: 0.7777 MB / 0.6274 GB, free: 56.54 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009326/1.422, allocations: 1.152 MB / 0.6285 GB, free: 55.38 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01929/1.442, allocations: 4.895 MB / 0.6333 GB, free: 50.41 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005908/1.442, allocations: 435.4 kB / 0.6337 GB, free: 49.98 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002554/1.445, allocations: 0.5545 MB / 0.6342 GB, free: 49.43 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02599/1.471, allocations: 7.065 MB / 0.6411 GB, free: 42.18 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003632/1.471, allocations: 4 kB / 0.6411 GB, free: 42.17 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002221/1.474, allocations: 236 kB / 0.6414 GB, free: 41.94 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003238/1.474, allocations: 247.3 kB / 0.6416 GB, free: 41.7 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02038/1.494, allocations: 5.601 MB / 0.6471 GB, free: 36.09 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06481/1.559, allocations: 23.93 MB / 0.6704 GB, free: 11.51 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01243/1.572, allocations: 8.643 MB / 0.6789 GB, free: 1.922 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00623/1.578, allocations: 2.235 MB / 0.6811 GB, free: 15.68 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02596/1.604, allocations: 6.967 MB / 0.6879 GB, free: 8.5 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.644e-05/1.604, allocations: 56.56 kB / 0.6879 GB, free: 8.434 MB / 426.7 MB Notification: Performance of pre-optimization done (n=237): time 6.202e-06/1.604, allocations: 0 / 0.6879 GB, free: 8.434 MB / 426.7 MB Notification: Performance of matching and sorting (n=288): time 0.3787/1.983, allocations: 12.16 MB / 0.6998 GB, free: 77.04 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.703e-05/1.983, allocations: 85.72 kB / 0.6999 GB, free: 76.97 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0143/1.997, allocations: 2.945 MB / 0.7028 GB, free: 76.71 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008775/1.998, allocations: 72.58 kB / 0.7028 GB, free: 76.68 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004052/2.002, allocations: 2.487 MB / 0.7053 GB, free: 75.73 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002091/2.005, allocations: 0.9848 MB / 0.7062 GB, free: 75.11 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006155/2.005, allocations: 73.22 kB / 0.7063 GB, free: 75.11 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004198/2.006, allocations: 456.7 kB / 0.7067 GB, free: 74.79 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005732/2.012, allocations: 1.479 MB / 0.7082 GB, free: 74.79 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007377/2.019, allocations: 2.647 MB / 0.7108 GB, free: 73.41 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007752/2.027, allocations: 1.953 MB / 0.7127 GB, free: 73.35 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001179/2.027, allocations: 10.72 kB / 0.7127 GB, free: 73.35 MB / 426.7 MB Notification: Performance of matching and sorting (n=474) (initialization): time 0.02286/2.05, allocations: 5.163 MB / 0.7177 GB, free: 73 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001193/2.05, allocations: 20.53 kB / 0.7177 GB, free: 73 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001599/2.05, allocations: 47.16 kB / 0.7178 GB, free: 73 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005672/2.056, allocations: 0.8567 MB / 0.7186 GB, free: 72.96 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008705/2.065, allocations: 0.877 MB / 0.7195 GB, free: 72.96 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02399/2.089, allocations: 9.754 MB / 0.729 GB, free: 68.88 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008003/2.097, allocations: 237.6 kB / 0.7292 GB, free: 68.87 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001181/2.098, allocations: 165.6 kB / 0.7294 GB, free: 68.87 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 171 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (421): * Single equations (assignments): 412 * 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.001791/2.1, allocations: 337.8 kB / 0.7297 GB, free: 68.73 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002241/2.102, allocations: 389.1 kB / 0.7301 GB, free: 68.54 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02096/2.123, allocations: 4.559 MB / 0.7345 GB, free: 68.09 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.877e-05/2.123, allocations: 27.25 kB / 0.7346 GB, free: 68.09 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.18e-05/2.123, allocations: 7.312 kB / 0.7346 GB, free: 68.09 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000101/2.123, allocations: 10.97 kB / 0.7346 GB, free: 68.09 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03286/2.156, allocations: 9.986 MB / 0.7443 GB, free: 66.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.01169/2.168, allocations: 3.828 MB / 0.7481 GB, free: 64.86 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00453/2.173, allocations: 0.495 MB / 0.7485 GB, free: 64.85 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004465/2.177, allocations: 0.9874 MB / 0.7495 GB, free: 64.57 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006284/2.178, allocations: 67.77 kB / 0.7496 GB, free: 64.53 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02163/2.199, allocations: 14.75 MB / 0.764 GB, free: 53.46 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.027e-06/2.2, allocations: 8.359 kB / 0.764 GB, free: 53.46 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01595/2.215, allocations: 7.042 MB / 0.7709 GB, free: 49.83 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002944/2.218, allocations: 0.7839 MB / 0.7716 GB, free: 49.32 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008967/2.219, allocations: 67.64 kB / 0.7717 GB, free: 49.28 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003619/2.223, allocations: 191.2 kB / 0.7719 GB, free: 49.25 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007473/2.224, allocations: 214.5 kB / 0.7721 GB, free: 49.21 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002919/2.224, allocations: 88.41 kB / 0.7722 GB, free: 49.19 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005339/2.229, allocations: 2.209 MB / 0.7743 GB, free: 48.34 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.61e-07/2.23, allocations: 0 / 0.7743 GB, free: 48.34 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006561/2.236, allocations: 1.203 MB / 0.7755 GB, free: 48.21 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (227): * Single equations (assignments): 218 * 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.01702/2.253, allocations: 9.033 MB / 0.7843 GB, free: 43.07 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01051/2.264, allocations: 4.659 MB / 0.7889 GB, free: 40.24 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.628e-06/2.264, allocations: 0 / 0.7889 GB, free: 40.24 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006844/2.271, allocations: 2.978 MB / 0.7918 GB, free: 37.44 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006237/2.277, allocations: 0.8316 MB / 0.7926 GB, free: 36.78 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03053/2.307, allocations: 9.915 MB / 0.8023 GB, free: 28.01 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005092/2.313, allocations: 3.547 MB / 0.8057 GB, free: 25.35 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005329/2.318, allocations: 2.255 MB / 0.8079 GB, free: 23.26 MB / 426.7 MB Notification: Performance of SimCode: time 1.423e-06/2.318, allocations: 0 / 0.8079 GB, free: 23.26 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/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_FundamentalWave_Examples_BasicMachines_SMEE_GeneratorCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_GeneratorCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_GeneratorCalcHelperMain.cpp:28: ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_GeneratorFunctions.cpp:375:34: error: use of undeclared identifier 'D_24tmpVar12_'; did you mean 'D_24tmpVar13_'? D_24tmpVar13_ = std::cos(D_24tmpVar12_); ^~~~~~~~~~~~~ D_24tmpVar13_ ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_GeneratorFunctions.cpp:352:12: note: 'D_24tmpVar13_' declared here double D_24tmpVar13_; ^ ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_GeneratorFunctions.cpp:412:34: error: use of undeclared identifier 'D_24tmpVar15_'; did you mean 'D_24tmpVar16_'? D_24tmpVar16_ = std::sin(D_24tmpVar15_); ^~~~~~~~~~~~~ D_24tmpVar16_ ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_GeneratorFunctions.cpp:389:12: note: 'D_24tmpVar16_' declared here double D_24tmpVar16_; ^ In file included from OMCppModelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_GeneratorCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_GeneratorFMU.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_FundamentalWave_Examples_BasicMachines_SMEE_GeneratorCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_GeneratorCalcHelperMain.o] Error 1