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.00144/0.001444, allocations: 186.2 kB / 16.4 MB, free: 5.746 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.866/1.866, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.001146/0.001146, allocations: 99.19 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003795/0.0003795, allocations: 12 kB / 327.1 MB, free: 104 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3111/0.3115, allocations: 47.56 MB / 374.6 MB, free: 45.33 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4753/0.7869, allocations: 135.8 MB / 0.4984 GB, free: 63.48 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002913/0.7872, allocations: 90.8 kB / 0.4985 GB, free: 63.48 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4499/1.237, allocations: 131.1 MB / 0.6266 GB, free: 10.46 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.286e-06/1.237, allocations: 0 / 0.6266 GB, free: 10.46 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005982/1.238, allocations: 139.9 kB / 0.6267 GB, free: 10.32 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.02636/1.264, allocations: 6.055 MB / 0.6326 GB, free: 4.184 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.962e-05/1.264, allocations: 8.031 kB / 0.6326 GB, free: 4.176 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003198/1.267, allocations: 0.7781 MB / 0.6334 GB, free: 3.387 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009174/1.277, allocations: 1.159 MB / 0.6345 GB, free: 2.219 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01903/1.296, allocations: 4.926 MB / 0.6393 GB, free: 13.22 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005548/1.296, allocations: 427.4 kB / 0.6397 GB, free: 12.8 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002087/1.298, allocations: 0.5623 MB / 0.6403 GB, free: 12.24 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02319/1.322, allocations: 7.212 MB / 0.6473 GB, free: 4.84 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002463/1.322, allocations: 7.906 kB / 0.6473 GB, free: 4.832 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001063/1.323, allocations: 240 kB / 0.6476 GB, free: 4.598 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003667/1.323, allocations: 259 kB / 0.6478 GB, free: 4.348 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3469/1.67, allocations: 5.847 MB / 0.6535 GB, free: 51.26 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06126/1.732, allocations: 23.86 MB / 0.6768 GB, free: 46.39 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01302/1.745, allocations: 8.789 MB / 0.6854 GB, free: 40.62 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02044/1.765, allocations: 6.801 MB / 0.692 GB, free: 39.35 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.819e-05/1.765, allocations: 60 kB / 0.6921 GB, free: 39.3 MB / 426.7 MB Notification: Performance of pre-optimization done (n=253): time 6.863e-06/1.765, allocations: 1.062 kB / 0.6921 GB, free: 39.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=305): time 0.07123/1.836, allocations: 16.61 MB / 0.7083 GB, free: 36.82 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.422e-05/1.837, allocations: 89.81 kB / 0.7084 GB, free: 36.75 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006744/1.843, allocations: 2.966 MB / 0.7113 GB, free: 36.52 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006321/1.844, allocations: 79.89 kB / 0.7114 GB, free: 36.48 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001809/1.846, allocations: 2.456 MB / 0.7138 GB, free: 35.38 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001343/1.847, allocations: 1.036 MB / 0.7148 GB, free: 34.72 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004257/1.848, allocations: 75.56 kB / 0.7149 GB, free: 34.72 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002307/1.848, allocations: 460.9 kB / 0.7153 GB, free: 34.4 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004601/1.853, allocations: 1.662 MB / 0.7169 GB, free: 34.39 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005414/1.858, allocations: 2.817 MB / 0.7197 GB, free: 32.63 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005701/1.864, allocations: 2.115 MB / 0.7217 GB, free: 31.75 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.658e-05/1.864, allocations: 11.03 kB / 0.7218 GB, free: 31.75 MB / 426.7 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.01567/1.88, allocations: 5.538 MB / 0.7272 GB, free: 29.76 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.24e-05/1.88, allocations: 24.25 kB / 0.7272 GB, free: 29.76 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.959e-05/1.88, allocations: 39.94 kB / 0.7272 GB, free: 29.76 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003535/1.883, allocations: 0.8644 MB / 0.7281 GB, free: 29.52 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006596/1.89, allocations: 0.8983 MB / 0.7289 GB, free: 29.49 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01684/1.907, allocations: 10.07 MB / 0.7388 GB, free: 22.72 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00542/1.912, allocations: 243.6 kB / 0.739 GB, free: 22.65 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008499/1.913, allocations: 170.4 kB / 0.7392 GB, free: 22.62 MB / 426.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 (434): * Single equations (assignments): 425 * 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.004635/1.918, allocations: 1.63 MB / 0.7408 GB, free: 21.78 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001271/1.919, allocations: 391.9 kB / 0.7411 GB, free: 21.58 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01437/1.934, allocations: 4.945 MB / 0.746 GB, free: 19.46 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.672e-05/1.934, allocations: 35.58 kB / 0.746 GB, free: 19.46 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.993e-05/1.934, allocations: 7.344 kB / 0.746 GB, free: 19.46 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.153e-05/1.934, allocations: 15.38 kB / 0.746 GB, free: 19.46 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03095/1.965, allocations: 10.65 MB / 0.7564 GB, free: 14.88 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.01218/1.977, allocations: 4.177 MB / 0.7605 GB, free: 13.08 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004656/1.982, allocations: 0.5309 MB / 0.761 GB, free: 13.06 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004296/1.986, allocations: 0.9895 MB / 0.762 GB, free: 12.77 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005989/1.987, allocations: 73.23 kB / 0.762 GB, free: 12.73 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02195/2.009, allocations: 15.11 MB / 0.7768 GB, free: 1.461 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.055e-06/2.009, allocations: 12.41 kB / 0.7768 GB, free: 1.461 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02222/2.031, allocations: 7.897 MB / 0.7845 GB, free: 12.17 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003239/2.034, allocations: 0.8008 MB / 0.7853 GB, free: 11.44 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001371/2.036, allocations: 60 kB / 0.7854 GB, free: 11.38 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004618/2.04, allocations: 196.7 kB / 0.7856 GB, free: 11.23 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001057/2.041, allocations: 229.2 kB / 0.7858 GB, free: 11.09 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003337/2.042, allocations: 83.47 kB / 0.7859 GB, free: 11.02 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00642/2.048, allocations: 2.25 MB / 0.7881 GB, free: 9.145 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.91e-07/2.048, allocations: 0 / 0.7881 GB, free: 9.145 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007273/2.055, allocations: 1.212 MB / 0.7892 GB, free: 7.949 MB / 442.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 (244): * Single equations (assignments): 235 * 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,75.0%) 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.02957/2.085, allocations: 10.12 MB / 0.7991 GB, free: 15.62 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01509/2.1, allocations: 5.052 MB / 0.8041 GB, free: 11 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.08e-05/2.1, allocations: 4 kB / 0.8041 GB, free: 11 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009729/2.11, allocations: 3.22 MB / 0.8072 GB, free: 8.035 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007021/2.117, allocations: 0.8381 MB / 0.808 GB, free: 7.375 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4166/2.534, allocations: 60.64 MB / 0.8672 GB, free: 40.56 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006678/2.54, allocations: 3.553 MB / 0.8707 GB, free: 39.77 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005708/2.546, allocations: 2.26 MB / 0.8729 GB, free: 39.77 MB / 458.7 MB Notification: Performance of SimCode: time 1.833e-06/2.546, allocations: 0 / 0.8729 GB, free: 39.77 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/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: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_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_GeneratorFunctions.cpp:352:12: note: '_omcQ_24tmpVar13_' declared here double _omcQ_24tmpVar13_; ^ ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_GeneratorFunctions.cpp:412: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_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_GeneratorFunctions.cpp:389:12: note: '_omcQ_24tmpVar16_' declared here double _omcQ_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