Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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: 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.998/1.998, allocations: 194.8 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004766/0.0004768, allocations: 8 kB / 264.5 MB, free: 13.59 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.101, allocations: 44.5 MB / 309 MB, free: 1.023 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5462/0.6472, allocations: 150.2 MB / 459.2 MB, free: 5.832 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004644/0.6477, allocations: 106.2 kB / 459.3 MB, free: 5.773 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.82/2.467, allocations: 386.1 MB / 0.8256 GB, free: 23.97 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.875e-06/2.467, allocations: 0 / 0.8256 GB, free: 23.97 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0009439/2.468, allocations: 287.7 kB / 0.8259 GB, free: 23.69 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.05625/2.525, allocations: 11.68 MB / 0.8373 GB, free: 11.89 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.946e-05/2.525, allocations: 8.031 kB / 0.8373 GB, free: 11.88 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05398/2.579, allocations: 6.376 MB / 0.8435 GB, free: 5.484 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3765/2.955, allocations: 9.479 MB / 0.8528 GB, free: 28.93 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001977/2.957, allocations: 0.9231 MB / 0.8537 GB, free: 28.91 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00665/2.964, allocations: 1.2 MB / 0.8548 GB, free: 28.91 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07142/3.035, allocations: 20.63 MB / 0.875 GB, free: 27.46 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008243/3.036, allocations: 19.31 kB / 0.875 GB, free: 27.46 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005444/3.042, allocations: 0.5152 MB / 0.8755 GB, free: 27.46 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001355/3.043, allocations: 0.8434 MB / 0.8763 GB, free: 27.43 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0574/3.101, allocations: 18.66 MB / 0.8946 GB, free: 27.32 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1731/3.274, allocations: 63.97 MB / 0.957 GB, free: 0.7812 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.06722/3.341, allocations: 46.21 MB / 1.002 GB, free: 10.46 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4415/3.783, allocations: 23.89 MB / 1.025 GB, free: 73.6 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001054/3.783, allocations: 100.2 kB / 1.026 GB, free: 73.55 MB / 474.7 MB Notification: Performance of pre-optimization done (n=770): time 1.298e-05/3.783, allocations: 0 / 1.026 GB, free: 73.55 MB / 474.7 MB Notification: Performance of matching and sorting (n=810): time 0.1864/3.969, allocations: 46.2 MB / 1.071 GB, free: 66.09 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.95e-05/3.969, allocations: 123.4 kB / 1.071 GB, free: 66.02 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009427/3.979, allocations: 4.049 MB / 1.075 GB, free: 65.68 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001798/3.981, allocations: 135.7 kB / 1.075 GB, free: 65.65 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003558/3.984, allocations: 4.699 MB / 1.079 GB, free: 63.05 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004342/3.989, allocations: 2.686 MB / 1.082 GB, free: 61.32 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001843/3.991, allocations: 166.3 kB / 1.082 GB, free: 61.31 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.00105/3.992, allocations: 0.6756 MB / 1.083 GB, free: 60.98 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01398/4.006, allocations: 5.122 MB / 1.088 GB, free: 60.96 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01616/4.022, allocations: 7.536 MB / 1.095 GB, free: 58.18 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01648/4.038, allocations: 6.444 MB / 1.102 GB, free: 57.99 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001103/4.039, allocations: 21.34 kB / 1.102 GB, free: 57.99 MB / 474.7 MB Notification: Performance of matching and sorting (n=1151) (initialization): time 0.04476/4.083, allocations: 15.43 MB / 1.117 GB, free: 52.36 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.287e-05/4.083, allocations: 36.25 kB / 1.117 GB, free: 52.36 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001643/4.084, allocations: 72.12 kB / 1.117 GB, free: 52.36 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01343/4.097, allocations: 4.146 MB / 1.121 GB, free: 51.05 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01263/4.11, allocations: 1.638 MB / 1.122 GB, free: 51 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02005/4.13, allocations: 12.22 MB / 1.134 GB, free: 43.06 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009917/4.14, allocations: 447.1 kB / 1.135 GB, free: 42.91 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002471/4.142, allocations: 388.8 kB / 1.135 GB, free: 42.84 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.01389/4.156, allocations: 4.393 MB / 1.139 GB, free: 40.78 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002779/4.159, allocations: 0.5799 MB / 1.14 GB, free: 40.47 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04387/4.203, allocations: 14.48 MB / 1.154 GB, free: 31.02 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003065/4.203, allocations: 194.3 kB / 1.154 GB, free: 30.86 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.149e-05/4.203, allocations: 0 / 1.154 GB, free: 30.86 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001667/4.204, allocations: 42.17 kB / 1.154 GB, free: 30.85 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08421/4.288, allocations: 28.7 MB / 1.182 GB, free: 6.852 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.703e-05/4.288, allocations: 4 kB / 1.182 GB, free: 6.848 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009822/4.298, allocations: 1.049 MB / 1.183 GB, free: 6.047 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.4054/4.703, allocations: 4.085 MB / 1.187 GB, free: 69.14 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002206/4.705, allocations: 166.1 kB / 1.188 GB, free: 69.14 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0221/4.728, allocations: 12.06 MB / 1.199 GB, free: 64.58 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.444e-06/4.728, allocations: 3.75 kB / 1.199 GB, free: 64.58 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0601/4.788, allocations: 21.48 MB / 1.22 GB, free: 63.89 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006902/4.795, allocations: 1.753 MB / 1.222 GB, free: 63.8 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003506/4.798, allocations: 121.2 kB / 1.222 GB, free: 63.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008091/4.806, allocations: 325.9 kB / 1.222 GB, free: 63.8 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002842/4.809, allocations: 0.5667 MB / 1.223 GB, free: 63.79 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001399/4.811, allocations: 224 kB / 1.223 GB, free: 63.79 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.007292/4.818, allocations: 2.682 MB / 1.226 GB, free: 63.61 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.42e-07/4.818, allocations: 0 / 1.226 GB, free: 63.61 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01382/4.832, allocations: 2.15 MB / 1.228 GB, free: 63.61 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.003089/4.835, allocations: 0.6154 MB / 1.229 GB, free: 63.49 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03652/4.872, allocations: 13.08 MB / 1.241 GB, free: 62.79 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.158e-05/4.872, allocations: 0 / 1.241 GB, free: 62.79 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02011/4.892, allocations: 6.77 MB / 1.248 GB, free: 62.21 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01142/4.903, allocations: 1.167 MB / 1.249 GB, free: 62.19 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07795/4.981, allocations: 29.78 MB / 1.278 GB, free: 49.62 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01775/4.999, allocations: 7.739 MB / 1.286 GB, free: 46.99 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00389/5.003, allocations: 497.8 kB / 1.286 GB, free: 46.95 MB / 474.7 MB Notification: Performance of SimCode: time 9.62e-07/5.003, allocations: 0 / 1.286 GB, free: 46.95 MB / 474.7 MB Notification: Performance of Templates: time 2.419/7.423, allocations: 0.7076 GB / 1.994 GB, free: 78.33 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=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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'