Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.029/2.029, allocations: 194.8 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003591/0.0003593, allocations: 8 kB / 264 MB, free: 13.5 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09637/0.09677, allocations: 44.51 MB / 308.6 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5037/0.6005, allocations: 109.1 MB / 417.6 MB, free: 9.645 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003078/0.6009, allocations: 89.48 kB / 417.7 MB, free: 9.633 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3929/0.9937, allocations: 82.69 MB / 0.4887 GB, free: 3.418 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.9938, allocations: 0 / 0.4887 GB, free: 3.418 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003241/0.9941, allocations: 63.94 kB / 0.4888 GB, free: 3.355 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 653 * Number of variables: 653 Notification: Performance of Generate backend data structure: time 0.01269/1.007, allocations: 2.969 MB / 0.4917 GB, free: 328 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.463e-05/1.007, allocations: 12.03 kB / 0.4917 GB, free: 316 kB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001629/1.009, allocations: 362.7 kB / 0.492 GB, free: 15.94 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002581/1.011, allocations: 424 kB / 0.4924 GB, free: 15.52 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006975/1.018, allocations: 1.834 MB / 0.4942 GB, free: 13.64 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003048/1.019, allocations: 193 kB / 0.4944 GB, free: 13.45 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001158/1.02, allocations: 247.9 kB / 0.4946 GB, free: 13.2 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01124/1.031, allocations: 3.222 MB / 0.4978 GB, free: 9.836 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001237/1.031, allocations: 4 kB / 0.4978 GB, free: 9.832 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004874/1.032, allocations: 104 kB / 0.4979 GB, free: 9.73 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001847/1.032, allocations: 108.9 kB / 0.498 GB, free: 9.621 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00982/1.042, allocations: 2.573 MB / 0.5005 GB, free: 7.035 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03178/1.074, allocations: 10.43 MB / 0.5107 GB, free: 12.26 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004262/1.078, allocations: 1.805 MB / 0.5124 GB, free: 10.34 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005782/1.078, allocations: 215.1 kB / 0.5127 GB, free: 10.09 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.297e-05/1.079, allocations: 47.56 kB / 0.5127 GB, free: 10.04 MB / 410.7 MB Notification: Performance of pre-optimization done (n=117): time 3.958e-06/1.079, allocations: 3.938 kB / 0.5127 GB, free: 10.03 MB / 410.7 MB Notification: Performance of matching and sorting (n=142): time 0.0394/1.118, allocations: 8.842 MB / 0.5213 GB, free: 1.047 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.535e-05/1.118, allocations: 72.67 kB / 0.5214 GB, free: 0.9648 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2942/1.412, allocations: 1.64 MB / 0.523 GB, free: 96.85 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003638/1.413, allocations: 49.92 kB / 0.5231 GB, free: 96.82 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009336/1.414, allocations: 1.174 MB / 0.5242 GB, free: 96.63 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006793/1.414, allocations: 487.9 kB / 0.5247 GB, free: 96.39 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001592/1.415, allocations: 39.05 kB / 0.5247 GB, free: 96.39 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001307/1.415, allocations: 380.2 kB / 0.5251 GB, free: 96.07 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002256/1.417, allocations: 0.8717 MB / 0.5259 GB, free: 96.07 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002751/1.42, allocations: 1.35 MB / 0.5272 GB, free: 95.52 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003099/1.423, allocations: 1.075 MB / 0.5283 GB, free: 95.51 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.255e-05/1.423, allocations: 4.469 kB / 0.5283 GB, free: 95.51 MB / 410.7 MB Notification: Performance of matching and sorting (n=217) (initialization): time 0.008755/1.432, allocations: 2.855 MB / 0.5311 GB, free: 95.4 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.176e-05/1.432, allocations: 11.03 kB / 0.5311 GB, free: 95.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.034e-05/1.432, allocations: 20.39 kB / 0.5311 GB, free: 95.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002397/1.434, allocations: 0.5935 MB / 0.5317 GB, free: 95.38 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002845/1.437, allocations: 411.3 kB / 0.5321 GB, free: 95.38 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0121/1.449, allocations: 5.659 MB / 0.5376 GB, free: 93.97 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002935/1.452, allocations: 134.4 kB / 0.5377 GB, free: 93.97 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002792/1.453, allocations: 76.67 kB / 0.5378 GB, free: 93.97 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (186): * Single equations (assignments): 182 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(6,72.2%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00222/1.455, allocations: 0.7982 MB / 0.5386 GB, free: 93.85 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007344/1.456, allocations: 197.8 kB / 0.5388 GB, free: 93.75 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007827/1.463, allocations: 2.636 MB / 0.5414 GB, free: 93.62 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.762e-05/1.463, allocations: 16.06 kB / 0.5414 GB, free: 93.62 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.562e-05/1.464, allocations: 3.875 kB / 0.5414 GB, free: 93.62 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-05/1.464, allocations: 6.703 kB / 0.5414 GB, free: 93.62 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01542/1.479, allocations: 5.506 MB / 0.5468 GB, free: 93.08 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-05/1.479, allocations: 11.48 kB / 0.5468 GB, free: 93.08 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001941/1.481, allocations: 242.2 kB / 0.547 GB, free: 93.08 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002895/1.484, allocations: 0.6466 MB / 0.5476 GB, free: 93.05 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003013/1.484, allocations: 43.34 kB / 0.5477 GB, free: 93.05 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01342/1.498, allocations: 7.385 MB / 0.5549 GB, free: 90.39 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.042e-06/1.498, allocations: 5.281 kB / 0.5549 GB, free: 90.39 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01013/1.508, allocations: 4.054 MB / 0.5588 GB, free: 88.68 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001632/1.51, allocations: 474 kB / 0.5593 GB, free: 88.38 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006232/1.51, allocations: 27.72 kB / 0.5593 GB, free: 88.36 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002388/1.513, allocations: 129.9 kB / 0.5594 GB, free: 88.34 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000508/1.513, allocations: 110.6 kB / 0.5596 GB, free: 88.32 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001708/1.513, allocations: 41.47 kB / 0.5596 GB, free: 88.31 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002871/1.516, allocations: 1.263 MB / 0.5608 GB, free: 87.83 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.41e-07/1.516, allocations: 0 / 0.5608 GB, free: 87.83 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003632/1.52, allocations: 0.6394 MB / 0.5614 GB, free: 87.77 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 5 (smee.phiMechanical,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[2],smee.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 (109): * Single equations (assignments): 105 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,72.2%) 23,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01154/1.532, allocations: 5.59 MB / 0.5669 GB, free: 84.64 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007335/1.539, allocations: 2.613 MB / 0.5695 GB, free: 83.62 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.069e-05/1.539, allocations: 0 / 0.5695 GB, free: 83.62 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00479/1.544, allocations: 1.631 MB / 0.5711 GB, free: 82.89 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003661/1.548, allocations: 405.4 kB / 0.5714 GB, free: 82.79 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04639/1.594, allocations: 26.6 MB / 0.5974 GB, free: 63.79 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002391/1.596, allocations: 2.045 MB / 0.5994 GB, free: 62.83 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002614/1.599, allocations: 1.002 MB / 0.6004 GB, free: 62.03 MB / 410.7 MB Notification: Performance of SimCode: time 1.202e-06/1.599, allocations: 4 kB / 0.6004 GB, free: 62.02 MB / 410.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_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_GeneratorCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_GeneratorCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_GeneratorCalcHelperMain.cpp:28: ./OMCppModelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_GeneratorFunctions.cpp:278: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_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_GeneratorFunctions.cpp:255:12: note: '_omcQ_24tmpVar11_' declared here double _omcQ_24tmpVar11_; ^ ./OMCppModelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_GeneratorFunctions.cpp:315: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_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_GeneratorFunctions.cpp:292:12: note: '_omcQ_24tmpVar14_' declared here double _omcQ_24tmpVar14_; ^ In file included from OMCppModelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_GeneratorCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_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_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_GeneratorCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_GeneratorCalcHelperMain.o] Error 1