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 2.161/2.161, allocations: 194.9 MB / 211.2 MB, free: 8.344 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.095e-05/3.101e-05, allocations: 4 kB / 258.8 MB, free: 8.66 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3382/0.3383, allocations: 44.5 MB / 303.3 MB, free: 12.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.05692/0.3953, allocations: 31.87 MB / 335.2 MB, free: 13.72 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02809/0.4234, allocations: 9.104 MB / 344.3 MB, free: 4.59 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008624/0.4321, allocations: 323.1 kB / 344.6 MB, free: 4.273 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01017/0.4423, allocations: 2.008 MB / 346.6 MB, free: 2.254 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01701/0.4594, allocations: 3.435 MB / 350.1 MB, free: 14.81 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009403/0.4688, allocations: 1.739 MB / 351.8 MB, free: 13.07 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.02266/0.4915, allocations: 8.283 MB / 360.1 MB, free: 4.77 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04992/0.5415, allocations: 16.92 MB / 377 MB, free: 3.793 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009283/0.5508, allocations: 3.714 MB / 380.7 MB, free: 72 kB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01112/0.562, allocations: 4.508 MB / 385.2 MB, free: 11.55 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005595/0.5676, allocations: 0.6832 MB / 385.9 MB, free: 10.86 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003685/0.5714, allocations: 400 kB / 386.3 MB, free: 10.47 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005116/0.5765, allocations: 2.09 MB / 388.4 MB, free: 8.375 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005085/0.5817, allocations: 0.9336 MB / 389.3 MB, free: 7.441 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03554/0.6173, allocations: 22.02 MB / 411.3 MB, free: 1.363 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.6173, allocations: 0 / 411.3 MB, free: 1.363 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.246e-06/0.6173, allocations: 0 / 411.3 MB, free: 1.363 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0007591/0.6181, allocations: 0 / 411.3 MB, free: 1.363 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: 3509 * Number of variables: 3509 Notification: Performance of Generate backend data structure: time 0.05169/0.6698, allocations: 12.43 MB / 423.8 MB, free: 4.828 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.107e-05/0.6699, allocations: 8.031 kB / 423.8 MB, free: 4.82 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5986/1.269, allocations: 9.009 MB / 432.8 MB, free: 85.45 MB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02224/1.291, allocations: 7.377 MB / 440.2 MB, free: 81.73 MB / 362.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001206/1.292, allocations: 0.9445 MB / 441.1 MB, free: 81.3 MB / 362.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005848/1.298, allocations: 1.241 MB / 442.3 MB, free: 80.89 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06574/1.364, allocations: 19.93 MB / 462.3 MB, free: 65 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006862/1.364, allocations: 19.81 kB / 462.3 MB, free: 64.98 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004718/1.369, allocations: 0.5103 MB / 462.8 MB, free: 64.49 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009401/1.37, allocations: 0.7371 MB / 463.5 MB, free: 63.75 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05628/1.426, allocations: 18.86 MB / 482.4 MB, free: 44.88 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1528/1.579, allocations: 63.49 MB / 0.5331 GB, free: 12.18 MB / 394.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4102/1.99, allocations: 56.84 MB / 0.5886 GB, free: 95.44 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03353/2.023, allocations: 11.5 MB / 0.5998 GB, free: 91.41 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.058e-05/2.023, allocations: 69.28 kB / 0.5999 GB, free: 91.35 MB / 442.8 MB Notification: Performance of pre-optimization done (n=357): time 6.362e-06/2.023, allocations: 0 / 0.5999 GB, free: 91.35 MB / 442.8 MB Notification: Performance of matching and sorting (n=397): time 0.08501/2.108, allocations: 18.11 MB / 0.6176 GB, free: 83.79 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.65e-05/2.108, allocations: 93.5 kB / 0.6177 GB, free: 83.73 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02272/2.131, allocations: 4.784 MB / 0.6223 GB, free: 81.96 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.000792/2.132, allocations: 93.45 kB / 0.6224 GB, free: 81.88 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004291/2.136, allocations: 5.649 MB / 0.628 GB, free: 77.5 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001914/2.138, allocations: 1.4 MB / 0.6293 GB, free: 76.44 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007835/2.139, allocations: 154.7 kB / 0.6295 GB, free: 76.32 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.0005265/2.14, allocations: 0.6108 MB / 0.6301 GB, free: 75.88 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008/2.148, allocations: 3.066 MB / 0.6331 GB, free: 74.73 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01054/2.158, allocations: 6.696 MB / 0.6396 GB, free: 68.68 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0112/2.17, allocations: 4.577 MB / 0.6441 GB, free: 64.91 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001379/2.17, allocations: 36 kB / 0.6441 GB, free: 64.88 MB / 442.8 MB Notification: Performance of matching and sorting (n=986) (initialization): time 0.0286/2.198, allocations: 10.52 MB / 0.6544 GB, free: 54.39 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001023/2.199, allocations: 56.78 kB / 0.6544 GB, free: 54.34 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000187/2.199, allocations: 124 kB / 0.6545 GB, free: 54.21 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00417/2.203, allocations: 0.9813 MB / 0.6555 GB, free: 53.22 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01235/2.215, allocations: 1.821 MB / 0.6573 GB, free: 51.39 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01743/2.233, allocations: 9.751 MB / 0.6668 GB, free: 41.25 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0089/2.242, allocations: 440.7 kB / 0.6672 GB, free: 40.82 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001692/2.243, allocations: 419.9 kB / 0.6676 GB, free: 40.41 MB / 442.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 568 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (937): * Single equations (assignments): 932 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 {(1,100.0%) 1,(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01134/2.255, allocations: 4.425 MB / 0.6719 GB, free: 35.97 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002924/2.258, allocations: 0.544 MB / 0.6725 GB, free: 35.42 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03113/2.289, allocations: 6.574 MB / 0.6789 GB, free: 28.8 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.597e-05/2.289, allocations: 47.89 kB / 0.6789 GB, free: 28.75 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.136e-05/2.289, allocations: 12 kB / 0.679 GB, free: 28.74 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001318/2.289, allocations: 19.92 kB / 0.679 GB, free: 28.72 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0665/2.356, allocations: 16.06 MB / 0.6946 GB, free: 12.63 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.687e-05/2.356, allocations: 7.984 kB / 0.6947 GB, free: 12.62 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01102/2.367, allocations: 0.7645 MB / 0.6954 GB, free: 11.86 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00567/2.373, allocations: 0.7809 MB / 0.6962 GB, free: 11.06 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009634/2.374, allocations: 87.97 kB / 0.6963 GB, free: 10.98 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0188/2.393, allocations: 8.86 MB / 0.7049 GB, free: 1.719 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.571e-06/2.393, allocations: 4 kB / 0.7049 GB, free: 1.715 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02925/2.422, allocations: 9.979 MB / 0.7147 GB, free: 7.59 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004294/2.426, allocations: 1.107 MB / 0.7157 GB, free: 6.457 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00216/2.428, allocations: 72 kB / 0.7158 GB, free: 6.387 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005645/2.434, allocations: 223.8 kB / 0.716 GB, free: 6.168 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001273/2.435, allocations: 274.8 kB / 0.7163 GB, free: 5.898 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005114/2.436, allocations: 112 kB / 0.7164 GB, free: 5.789 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.01029/2.446, allocations: 3.524 MB / 0.7198 GB, free: 2.289 MB / 458.8 MB Notification: Performance of sort global known variables: time 1.112e-06/2.446, allocations: 0 / 0.7198 GB, free: 2.289 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.0116/2.458, allocations: 1.983 MB / 0.7218 GB, free: 316 kB / 458.8 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (376): * Single equations (assignments): 371 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 {(1,100.0%) 1,(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001307/2.459, allocations: 260.6 kB / 0.722 GB, free: 52 kB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.02272/2.482, allocations: 8.049 MB / 0.7299 GB, free: 7.934 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-05/2.482, allocations: 8.188 kB / 0.7299 GB, free: 7.926 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01047/2.493, allocations: 3.546 MB / 0.7333 GB, free: 4.297 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01001/2.503, allocations: 1.185 MB / 0.7345 GB, free: 3.121 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0671/2.57, allocations: 24.5 MB / 0.7584 GB, free: 10.53 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01779/2.588, allocations: 7.563 MB / 0.7658 GB, free: 2.922 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003377/2.591, allocations: 499.3 kB / 0.7663 GB, free: 2.434 MB / 0.4949 GB Notification: Performance of SimCode: time 1.543e-06/2.591, allocations: 0 / 0.7663 GB, free: 2.434 MB / 0.4949 GB Notification: Performance of Templates: time 1.622/4.213, allocations: 448.6 MB / 1.204 GB, free: 110.5 MB / 0.4949 GB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile 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 -DENABLE_OMSI -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/base" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/solver" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/" -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 In file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSourceCalcHelperMain.cpp:29: ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSourceFunctions.cpp:113:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp598 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSourceFunctions.cpp:113:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp598 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ 2 errors generated. : recipe for target 'OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSourceCalcHelperMain.o' failed make: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSourceCalcHelperMain.o] Error 1