Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|currentController.y.1.|currentController.y.2.|currentController.y.3.",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") Notification: Performance of loadModel(Modelica): time 1.788/1.788, allocations: 194.9 MB / 211.7 MB, free: 2.984 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003623/0.0003623, allocations: 8 kB / 264 MB, free: 13.55 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0827/0.08309, allocations: 44.51 MB / 308.5 MB, free: 0.9609 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4333/0.5165, allocations: 150.2 MB / 458.7 MB, free: 7.457 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003315/0.5169, allocations: 102.7 kB / 458.8 MB, free: 7.398 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.612/2.129, allocations: 386.1 MB / 0.8251 GB, free: 25.58 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.645e-06/2.129, allocations: 0 / 0.8251 GB, free: 25.58 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0008451/2.13, allocations: 295.6 kB / 0.8254 GB, free: 25.29 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3509 * Number of variables: 3509 Notification: Performance of Generate backend data structure: time 0.04549/2.176, allocations: 11.67 MB / 0.8368 GB, free: 13.5 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.61e-05/2.176, allocations: 8.031 kB / 0.8368 GB, free: 13.5 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04722/2.223, allocations: 6.379 MB / 0.843 GB, free: 7.094 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3286/2.552, allocations: 9.485 MB / 0.8523 GB, free: 29.33 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001356/2.553, allocations: 0.9201 MB / 0.8532 GB, free: 29.3 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005853/2.559, allocations: 1.2 MB / 0.8543 GB, free: 29.3 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06204/2.621, allocations: 20.52 MB / 0.8744 GB, free: 27.86 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006525/2.622, allocations: 29.56 kB / 0.8744 GB, free: 27.86 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004655/2.626, allocations: 0.5112 MB / 0.8749 GB, free: 27.86 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001146/2.628, allocations: 0.8439 MB / 0.8757 GB, free: 27.83 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0537/2.681, allocations: 18.66 MB / 0.8939 GB, free: 27.72 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1376/2.819, allocations: 63.96 MB / 0.9564 GB, free: 1.648 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05726/2.876, allocations: 46 MB / 1.001 GB, free: 10.45 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3776/3.254, allocations: 24.73 MB / 1.025 GB, free: 75.37 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.911e-05/3.254, allocations: 105.8 kB / 1.026 GB, free: 75.32 MB / 474.7 MB Notification: Performance of pre-optimization done (n=770): time 1.392e-05/3.254, allocations: 0 / 1.026 GB, free: 75.32 MB / 474.7 MB Notification: Performance of matching and sorting (n=810): time 0.1354/3.389, allocations: 46.19 MB / 1.071 GB, free: 67.86 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.755e-05/3.39, allocations: 120.5 kB / 1.071 GB, free: 67.79 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007273/3.397, allocations: 3.585 MB / 1.074 GB, free: 67.47 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001438/3.398, allocations: 139.3 kB / 1.074 GB, free: 67.44 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002863/3.401, allocations: 4.705 MB / 1.079 GB, free: 64.84 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003371/3.405, allocations: 2.688 MB / 1.082 GB, free: 63.1 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008534/3.405, allocations: 159 kB / 1.082 GB, free: 63.1 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007509/3.406, allocations: 0.6717 MB / 1.082 GB, free: 62.77 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01146/3.418, allocations: 5.119 MB / 1.087 GB, free: 62.75 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01297/3.431, allocations: 7.513 MB / 1.095 GB, free: 59.97 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01351/3.444, allocations: 6.434 MB / 1.101 GB, free: 59.78 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.755e-05/3.444, allocations: 22.59 kB / 1.101 GB, free: 59.78 MB / 474.7 MB Notification: Performance of matching and sorting (n=1151) (initialization): time 0.03606/3.48, allocations: 15.44 MB / 1.116 GB, free: 55.58 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.979e-05/3.481, allocations: 40.47 kB / 1.116 GB, free: 55.58 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001288/3.481, allocations: 71.19 kB / 1.116 GB, free: 55.58 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0107/3.491, allocations: 4.141 MB / 1.12 GB, free: 54.29 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008595/3.5, allocations: 1.637 MB / 1.122 GB, free: 54.23 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01634/3.516, allocations: 12.21 MB / 1.134 GB, free: 46.3 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007771/3.524, allocations: 446.9 kB / 1.134 GB, free: 46.14 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00214/3.526, allocations: 387.3 kB / 1.135 GB, free: 46.07 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 329 * 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 (853): * Single equations (assignments): 797 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.01131/3.538, allocations: 4.401 MB / 1.139 GB, free: 44.02 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001779/3.54, allocations: 0.5816 MB / 1.14 GB, free: 43.71 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03514/3.575, allocations: 14.48 MB / 1.154 GB, free: 34.91 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002495/3.575, allocations: 194.4 kB / 1.154 GB, free: 34.74 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-05/3.575, allocations: 4 kB / 1.154 GB, free: 34.73 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001306/3.575, allocations: 35.77 kB / 1.154 GB, free: 34.73 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06401/3.639, allocations: 28.71 MB / 1.182 GB, free: 10.74 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.534e-05/3.639, allocations: 8.062 kB / 1.182 GB, free: 10.73 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006467/3.646, allocations: 1.052 MB / 1.183 GB, free: 9.926 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01013/3.656, allocations: 4.009 MB / 1.187 GB, free: 6.602 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001693/3.658, allocations: 177.9 kB / 1.187 GB, free: 6.449 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3253/3.983, allocations: 12.09 MB / 1.199 GB, free: 67.76 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.344e-06/3.983, allocations: 5.188 kB / 1.199 GB, free: 67.76 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04821/4.031, allocations: 21.82 MB / 1.22 GB, free: 66.64 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005543/4.037, allocations: 1.745 MB / 1.222 GB, free: 66.54 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002457/4.039, allocations: 117.2 kB / 1.222 GB, free: 66.54 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00548/4.045, allocations: 329 kB / 1.222 GB, free: 66.54 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002189/4.047, allocations: 0.5803 MB / 1.223 GB, free: 66.53 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001222/4.048, allocations: 213.5 kB / 1.223 GB, free: 66.53 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.006127/4.055, allocations: 2.686 MB / 1.226 GB, free: 66.35 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.124e-06/4.055, allocations: 0 / 1.226 GB, free: 66.35 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01166/4.066, allocations: 2.156 MB / 1.228 GB, free: 66.35 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.phi) * 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 (546): * Single equations (assignments): 490 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.00261/4.069, allocations: 0.6054 MB / 1.228 GB, free: 66.25 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02904/4.098, allocations: 13.07 MB / 1.241 GB, free: 65.55 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.51e-06/4.098, allocations: 0 / 1.241 GB, free: 65.55 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01576/4.114, allocations: 6.771 MB / 1.248 GB, free: 64.97 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008389/4.122, allocations: 1.174 MB / 1.249 GB, free: 64.95 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09069/4.213, allocations: 29.78 MB / 1.278 GB, free: 52.14 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02622/4.239, allocations: 7.744 MB / 1.286 GB, free: 49.51 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00324/4.242, allocations: 499.4 kB / 1.286 GB, free: 49.47 MB / 474.7 MB Notification: Performance of SimCode: time 1.807e-06/4.243, allocations: 0 / 1.286 GB, free: 49.47 MB / 474.7 MB Notification: Performance of Templates: time 2.288/6.531, allocations: 0.7076 GB / 1.994 GB, free: 79.44 MB / 0.5105 GB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile b'clang++ -fopenmp=libomp -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSourceCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSourceCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSourceCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSourceFunctions.cpp:455:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp300 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0)));\n ^\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSourceFunctions.cpp:455:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp300 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0)));\n ^\n2 errors generated.\n: recipe for target \'OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSourceCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSourceCalcHelperMain.o] Error 1\n'