Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",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.002155/0.00216, allocations: 188.5 kB / 16.4 MB, free: 5.625 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.095/2.095, allocations: 205.4 MB / 222.5 MB, free: 13.77 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.00115/0.00115, allocations: 94.86 kB / 270.9 MB, free: 13.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003844/0.0003845, allocations: 11.94 kB / 327.1 MB, free: 14.95 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09729/0.0977, allocations: 47.57 MB / 374.7 MB, free: 15.3 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.2897/0.3875, allocations: 23.41 MB / 398.1 MB, free: 9.223 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02127/0.4088, allocations: 8.122 MB / 406.2 MB, free: 5.555 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006374/0.4152, allocations: 171.1 kB / 406.4 MB, free: 5.52 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007986/0.4233, allocations: 1.713 MB / 408.1 MB, free: 4.617 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01385/0.4372, allocations: 2.93 MB / 411 MB, free: 2.703 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007418/0.4446, allocations: 1.44 MB / 412.5 MB, free: 1.836 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0201/0.4647, allocations: 8.332 MB / 420.8 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04589/0.5107, allocations: 17.25 MB / 438 MB, free: 13.88 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009062/0.5198, allocations: 3.699 MB / 441.7 MB, free: 10.17 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01041/0.5302, allocations: 4.245 MB / 446 MB, free: 5.91 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002866/0.5331, allocations: 0.6094 MB / 446.6 MB, free: 5.301 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006055/0.5392, allocations: 0.9058 MB / 447.5 MB, free: 4.395 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004046/0.5433, allocations: 1.9 MB / 449.4 MB, free: 2.488 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005017/0.5484, allocations: 2.04 MB / 451.4 MB, free: 448 kB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02813/0.5765, allocations: 17.79 MB / 469.2 MB, free: 14.6 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.5766, allocations: 0 / 469.2 MB, free: 14.6 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.327e-06/0.5766, allocations: 0 / 469.2 MB, free: 14.6 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0005403/0.5772, allocations: 4 kB / 469.2 MB, free: 14.59 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.04294/0.6201, allocations: 10.29 MB / 479.5 MB, free: 4.211 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.815e-05/0.6202, allocations: 12.03 kB / 479.5 MB, free: 4.199 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007359/0.6276, allocations: 1.643 MB / 481.2 MB, free: 2.543 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07234/0.6999, allocations: 8.52 MB / 489.7 MB, free: 10 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01854/0.7185, allocations: 5.835 MB / 495.5 MB, free: 4.105 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001013/0.7196, allocations: 0.7464 MB / 496.3 MB, free: 3.355 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004511/0.7241, allocations: 0.9725 MB / 497.2 MB, free: 2.383 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0564/0.7805, allocations: 16.41 MB / 0.5016 GB, free: 1.875 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005811/0.7812, allocations: 19.81 kB / 0.5016 GB, free: 1.855 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003895/0.7851, allocations: 415.9 kB / 0.502 GB, free: 1.449 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001094/0.7862, allocations: 0.6106 MB / 0.5026 GB, free: 0.8359 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05301/0.8392, allocations: 15.89 MB / 0.5181 GB, free: 0.9258 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6553/1.495, allocations: 52.24 MB / 0.5692 GB, free: 87.62 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04267/1.537, allocations: 52.19 MB / 0.6201 GB, free: 33.36 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02466/1.562, allocations: 9.612 MB / 0.6295 GB, free: 27.04 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.274e-05/1.562, allocations: 63.28 kB / 0.6296 GB, free: 26.98 MB / 410.8 MB Notification: Performance of pre-optimization done (n=281): time 6.032e-06/1.562, allocations: 0 / 0.6296 GB, free: 26.98 MB / 410.8 MB Notification: Performance of matching and sorting (n=289): time 0.04149/1.604, allocations: 12.86 MB / 0.6421 GB, free: 18.77 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.103e-05/1.604, allocations: 81.69 kB / 0.6422 GB, free: 18.67 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008482/1.612, allocations: 3.998 MB / 0.6461 GB, free: 14.65 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006173/1.613, allocations: 73.7 kB / 0.6462 GB, free: 14.57 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003105/1.616, allocations: 4.519 MB / 0.6506 GB, free: 10.04 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001402/1.617, allocations: 1.028 MB / 0.6516 GB, free: 9.012 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006312/1.618, allocations: 124 kB / 0.6517 GB, free: 8.891 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 0.0004299/1.619, allocations: 0.5552 MB / 0.6523 GB, free: 8.324 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006243/1.625, allocations: 2.46 MB / 0.6547 GB, free: 5.859 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008796/1.634, allocations: 5.586 MB / 0.6601 GB, free: 14.74 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01013/1.644, allocations: 3.764 MB / 0.6638 GB, free: 10.96 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00011/1.644, allocations: 32 kB / 0.6638 GB, free: 10.93 MB / 426.8 MB Notification: Performance of matching and sorting (n=787) (initialization): time 0.02602/1.67, allocations: 8.623 MB / 0.6722 GB, free: 2.258 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001059/1.67, allocations: 52.97 kB / 0.6723 GB, free: 2.207 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002059/1.67, allocations: 108 kB / 0.6724 GB, free: 2.102 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004082/1.674, allocations: 0.8643 MB / 0.6732 GB, free: 1.234 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009912/1.684, allocations: 1.415 MB / 0.6746 GB, free: 15.81 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0175/1.702, allocations: 7.17 MB / 0.6816 GB, free: 8.5 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006461/1.708, allocations: 355.2 kB / 0.682 GB, free: 8.152 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001033/1.71, allocations: 352 kB / 0.6823 GB, free: 7.809 MB / 442.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 496 * 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 (742): * Single equations (assignments): 741 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00939/1.719, allocations: 3.678 MB / 0.6859 GB, free: 4.117 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001292/1.72, allocations: 415 kB / 0.6863 GB, free: 3.707 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01502/1.735, allocations: 5.186 MB / 0.6914 GB, free: 14.46 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.354e-05/1.735, allocations: 28 kB / 0.6914 GB, free: 14.44 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-05/1.735, allocations: 12 kB / 0.6914 GB, free: 14.43 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.755e-05/1.735, allocations: 15.94 kB / 0.6914 GB, free: 14.41 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0336/1.769, allocations: 12.4 MB / 0.7035 GB, free: 1.93 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.849e-05/1.769, allocations: 4 kB / 0.7035 GB, free: 1.926 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004649/1.774, allocations: 0.5383 MB / 0.704 GB, free: 1.387 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00337/1.777, allocations: 0.6838 MB / 0.7047 GB, free: 0.6992 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002985/1.777, allocations: 67.97 kB / 0.7048 GB, free: 0.6328 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3013/2.079, allocations: 6.308 MB / 0.7109 GB, free: 150.5 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/2.079, allocations: 3.312 kB / 0.7109 GB, free: 150.5 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01998/2.099, allocations: 7.846 MB / 0.7186 GB, free: 146.9 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002868/2.102, allocations: 0.8336 MB / 0.7194 GB, free: 146.6 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009303/2.103, allocations: 58.58 kB / 0.7195 GB, free: 146.6 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003229/2.106, allocations: 173.2 kB / 0.7196 GB, free: 146.5 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007561/2.107, allocations: 209 kB / 0.7198 GB, free: 146.5 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000318/2.107, allocations: 95.27 kB / 0.7199 GB, free: 146.5 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.006201/2.113, allocations: 2.624 MB / 0.7225 GB, free: 145.5 MB / 458.8 MB Notification: Performance of sort global known variables: time 9.52e-07/2.113, allocations: 0 / 0.7225 GB, free: 145.5 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.009309/2.123, allocations: 1.557 MB / 0.724 GB, free: 145.3 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 1 (smpmQS.phiMechanical) * 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 (274): * Single equations (assignments): 273 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02006/2.143, allocations: 9.289 MB / 0.7331 GB, free: 140.4 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.0152/2.158, allocations: 6.175 MB / 0.7391 GB, free: 138.1 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.075e-05/2.158, allocations: 0 / 0.7391 GB, free: 138.1 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.006719/2.165, allocations: 2.518 MB / 0.7416 GB, free: 137 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006887/2.172, allocations: 0.864 MB / 0.7424 GB, free: 136.7 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1311/2.303, allocations: 120.3 MB / 0.8598 GB, free: 15.75 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01096/2.314, allocations: 6.18 MB / 0.8659 GB, free: 9.539 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007999/2.322, allocations: 3.44 MB / 0.8692 GB, free: 6.098 MB / 458.8 MB Notification: Performance of SimCode: time 1.463e-06/2.322, allocations: 0 / 0.8692 GB, free: 6.098 MB / 458.8 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=5 -DSUNDIALS_MINOR_VERSION=4 -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_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPACalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPACalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPACalcHelperMain.cpp:28: ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPAFunctions.cpp:112:42: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp92 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPAFunctions.cpp:112:85: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp92 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ In file included from OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPACalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPAFMU.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_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPACalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPACalcHelperMain.o] Error 1