Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_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.001541/0.001541, allocations: 184.4 kB / 16.41 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.934/1.934, allocations: 205.4 MB / 222.5 MB, free: 9.133 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.001158/0.001158, allocations: 86.92 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000399/0.0003989, allocations: 19.98 kB / 327.1 MB, free: 108 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3317/0.3322, allocations: 47.56 MB / 374.6 MB, free: 45.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1867/0.5189, allocations: 113.6 MB / 488.2 MB, free: 15 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003359/0.5193, allocations: 87.95 kB / 488.3 MB, free: 14.91 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5981/1.117, allocations: 82.9 MB / 0.5578 GB, free: 58.31 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.367e-06/1.117, allocations: 4 kB / 0.5578 GB, free: 58.3 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002355/1.118, allocations: 63.94 kB / 0.5579 GB, free: 58.24 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: 656 * Number of variables: 656 Notification: Performance of Generate backend data structure: time 0.011/1.129, allocations: 2.989 MB / 0.5608 GB, free: 55.19 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.658e-05/1.129, allocations: 8.031 kB / 0.5608 GB, free: 55.18 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001476/1.13, allocations: 370.7 kB / 0.5612 GB, free: 54.81 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002387/1.133, allocations: 420 kB / 0.5616 GB, free: 54.39 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006139/1.139, allocations: 1.851 MB / 0.5634 GB, free: 52.49 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001972/1.139, allocations: 189 kB / 0.5636 GB, free: 52.3 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000894/1.14, allocations: 255.8 kB / 0.5638 GB, free: 52.05 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009145/1.149, allocations: 3.222 MB / 0.567 GB, free: 48.68 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001261/1.149, allocations: 8 kB / 0.567 GB, free: 48.68 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004183/1.15, allocations: 108 kB / 0.5671 GB, free: 48.57 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001297/1.15, allocations: 108.9 kB / 0.5672 GB, free: 48.46 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008633/1.159, allocations: 2.596 MB / 0.5697 GB, free: 45.85 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02599/1.185, allocations: 10.47 MB / 0.5799 GB, free: 35.05 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003578/1.188, allocations: 1.841 MB / 0.5817 GB, free: 33.09 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004739/1.189, allocations: 219.1 kB / 0.5819 GB, free: 32.84 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.276e-05/1.189, allocations: 47.56 kB / 0.582 GB, free: 32.79 MB / 378.7 MB Notification: Performance of pre-optimization done (n=118): time 4.318e-06/1.189, allocations: 0 / 0.582 GB, free: 32.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=143): time 0.03447/1.223, allocations: 8.905 MB / 0.5907 GB, free: 23.75 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.293e-05/1.223, allocations: 72.67 kB / 0.5907 GB, free: 23.66 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003519/1.227, allocations: 1.649 MB / 0.5924 GB, free: 22.02 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000338/1.227, allocations: 45.7 kB / 0.5924 GB, free: 21.97 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007991/1.228, allocations: 1.178 MB / 0.5935 GB, free: 20.78 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005303/1.229, allocations: 496.9 kB / 0.594 GB, free: 20.29 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001852/1.229, allocations: 32 kB / 0.594 GB, free: 20.25 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001298/1.229, allocations: 378.8 kB / 0.5944 GB, free: 19.88 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002319/1.231, allocations: 0.8823 MB / 0.5953 GB, free: 18.99 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002497/1.234, allocations: 1.368 MB / 0.5966 GB, free: 17.41 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002731/1.237, allocations: 1.084 MB / 0.5977 GB, free: 16.33 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-05/1.237, allocations: 4 kB / 0.5977 GB, free: 16.33 MB / 378.7 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.007706/1.244, allocations: 2.868 MB / 0.6005 GB, free: 13.45 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.598e-05/1.245, allocations: 8 kB / 0.6005 GB, free: 13.44 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.344e-05/1.245, allocations: 16 kB / 0.6005 GB, free: 13.42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002398/1.247, allocations: 0.5954 MB / 0.6011 GB, free: 12.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002926/1.25, allocations: 415.3 kB / 0.6015 GB, free: 12.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01107/1.261, allocations: 5.665 MB / 0.607 GB, free: 6.613 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002977/1.264, allocations: 139.7 kB / 0.6071 GB, free: 6.477 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003477/1.264, allocations: 76.12 kB / 0.6072 GB, free: 6.402 MB / 378.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 (187): * Single equations (assignments): 183 * 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.002144/1.267, allocations: 0.7861 MB / 0.608 GB, free: 5.605 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007245/1.267, allocations: 201.6 kB / 0.6082 GB, free: 5.406 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007631/1.275, allocations: 2.666 MB / 0.6108 GB, free: 2.719 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.035e-05/1.275, allocations: 16 kB / 0.6108 GB, free: 2.703 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.102e-05/1.275, allocations: 11.95 kB / 0.6108 GB, free: 2.691 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.191e-05/1.275, allocations: 7.969 kB / 0.6108 GB, free: 2.684 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01582/1.291, allocations: 5.533 MB / 0.6162 GB, free: 13.04 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.169e-05/1.291, allocations: 4 kB / 0.6162 GB, free: 13.04 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002201/1.293, allocations: 252 kB / 0.6165 GB, free: 12.79 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003248/1.296, allocations: 0.6416 MB / 0.6171 GB, free: 12.14 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002955/1.297, allocations: 35.98 kB / 0.6171 GB, free: 12.11 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01601/1.313, allocations: 7.392 MB / 0.6243 GB, free: 4.438 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.604e-06/1.313, allocations: 4 kB / 0.6243 GB, free: 4.434 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01196/1.325, allocations: 4.109 MB / 0.6283 GB, free: 168 kB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001862/1.327, allocations: 470.5 kB / 0.6288 GB, free: 15.68 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005393/1.327, allocations: 32 kB / 0.6288 GB, free: 15.65 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002311/1.33, allocations: 119.9 kB / 0.6289 GB, free: 15.54 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004688/1.33, allocations: 121.1 kB / 0.6291 GB, free: 15.41 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001604/1.33, allocations: 39.98 kB / 0.6291 GB, free: 15.38 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003261/1.334, allocations: 1.271 MB / 0.6303 GB, free: 14.11 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.01e-07/1.334, allocations: 0 / 0.6303 GB, free: 14.11 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003595/1.337, allocations: 0.6443 MB / 0.631 GB, free: 13.47 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 (110): * Single equations (assignments): 106 * 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.01356/1.351, allocations: 5.631 MB / 0.6365 GB, free: 7.723 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.008003/1.359, allocations: 2.63 MB / 0.639 GB, free: 5.043 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.091e-05/1.359, allocations: 4.375 kB / 0.639 GB, free: 5.039 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005338/1.364, allocations: 1.641 MB / 0.6406 GB, free: 3.363 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003534/1.368, allocations: 413.4 kB / 0.641 GB, free: 2.961 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.319/1.687, allocations: 26.69 MB / 0.6671 GB, free: 80.63 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002593/1.69, allocations: 2.053 MB / 0.6691 GB, free: 79.89 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002287/1.692, allocations: 1.02 MB / 0.6701 GB, free: 79.88 MB / 410.7 MB Notification: Performance of SimCode: time 1.924e-06/1.692, allocations: 2.625 kB / 0.6701 GB, free: 79.88 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/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_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_GeneratorCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_GeneratorCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_GeneratorCalcHelperMain.cpp:28: ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_GeneratorFunctions.cpp:278:38: error: use of undeclared identifier '_omcQ_24tmpVar12_'; did you mean '_omcQ_24tmpVar13_'? _omcQ_24tmpVar13_ = std::cos(_omcQ_24tmpVar12_); ^~~~~~~~~~~~~~~~~ _omcQ_24tmpVar13_ ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_GeneratorFunctions.cpp:255:12: note: '_omcQ_24tmpVar13_' declared here double _omcQ_24tmpVar13_; ^ ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_GeneratorFunctions.cpp:315:38: error: use of undeclared identifier '_omcQ_24tmpVar15_'; did you mean '_omcQ_24tmpVar16_'? _omcQ_24tmpVar16_ = std::sin(_omcQ_24tmpVar15_); ^~~~~~~~~~~~~~~~~ _omcQ_24tmpVar16_ ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_GeneratorFunctions.cpp:292:12: note: '_omcQ_24tmpVar16_' declared here double _omcQ_24tmpVar16_; ^ In file included from OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_GeneratorCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_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_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_GeneratorCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_GeneratorCalcHelperMain.o] Error 1