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_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") Notification: Performance of loadModel(Modelica): time 2.084/2.084, allocations: 224.7 MB / 241.1 MB, free: 1.691 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.885e-05/2.898e-05, allocations: 4 kB / 294.6 MB, free: 11.37 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.116, allocations: 50.41 MB / 345 MB, free: 8.91 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.05394/0.17, allocations: 30.53 MB / 375.5 MB, free: 10.27 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02694/0.197, allocations: 9.065 MB / 384.6 MB, free: 1.18 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00812/0.2051, allocations: 343.1 kB / 384.9 MB, free: 0.8438 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009387/0.2146, allocations: 1.954 MB / 386.9 MB, free: 14.88 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01609/0.2307, allocations: 3.217 MB / 390.1 MB, free: 11.65 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009181/0.2399, allocations: 1.726 MB / 391.8 MB, free: 9.926 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0215/0.2615, allocations: 8.079 MB / 399.9 MB, free: 1.832 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3606/0.6221, allocations: 16.92 MB / 416.8 MB, free: 5.34 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008455/0.6306, allocations: 3.566 MB / 420.4 MB, free: 5.336 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01016/0.6409, allocations: 4.291 MB / 424.7 MB, free: 5.332 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00594/0.6469, allocations: 0.6808 MB / 425.4 MB, free: 5.324 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003521/0.6504, allocations: 383.8 kB / 425.7 MB, free: 5.324 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004354/0.6548, allocations: 1.942 MB / 427.7 MB, free: 5.324 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004543/0.6594, allocations: 0.9006 MB / 428.6 MB, free: 5.324 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03144/0.6909, allocations: 21.61 MB / 450.2 MB, free: 5.855 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.691, allocations: 3.5 kB / 450.2 MB, free: 5.855 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.246e-06/0.691, allocations: 0 / 450.2 MB, free: 5.855 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0007872/0.6918, allocations: 0 / 450.2 MB, free: 5.855 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: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.05251/0.7443, allocations: 11.99 MB / 462.2 MB, free: 11.06 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.444e-05/0.7444, allocations: 8.031 kB / 462.2 MB, free: 11.05 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05306/0.7975, allocations: 6.039 MB / 468.2 MB, free: 5.422 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02584/0.8234, allocations: 7.716 MB / 475.9 MB, free: 0.793 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001568/0.825, allocations: 0.9133 MB / 476.9 MB, free: 276 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006194/0.8312, allocations: 1.196 MB / 478.1 MB, free: 15.47 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07012/0.9014, allocations: 18.46 MB / 496.5 MB, free: 13.42 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007503/0.9022, allocations: 31.75 kB / 496.6 MB, free: 13.39 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004903/0.9071, allocations: 498.2 kB / 497 MB, free: 12.91 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001133/0.9083, allocations: 0.6421 MB / 497.7 MB, free: 12.27 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05854/0.9669, allocations: 16.66 MB / 0.5023 GB, free: 11.6 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1596/1.127, allocations: 58.99 MB / 0.5599 GB, free: 184 kB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.6623/1.789, allocations: 32.79 MB / 0.5919 GB, free: 103.9 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02684/1.816, allocations: 8.741 MB / 0.6005 GB, free: 99.97 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.139e-05/1.816, allocations: 73.66 kB / 0.6005 GB, free: 99.9 MB / 458.8 MB Notification: Performance of pre-optimization done (n=358): time 7.124e-06/1.816, allocations: 0 / 0.6005 GB, free: 99.9 MB / 458.8 MB Notification: Performance of matching and sorting (n=398): time 0.06262/1.879, allocations: 17.55 MB / 0.6177 GB, free: 92.5 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.543e-05/1.879, allocations: 93.09 kB / 0.6178 GB, free: 92.43 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01103/1.89, allocations: 4.4 MB / 0.622 GB, free: 90.79 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008351/1.891, allocations: 92.73 kB / 0.6221 GB, free: 90.71 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004143/1.895, allocations: 5.22 MB / 0.6272 GB, free: 86.66 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002023/1.897, allocations: 1.389 MB / 0.6286 GB, free: 85.6 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007657/1.898, allocations: 135.3 kB / 0.6287 GB, free: 85.5 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0004926/1.898, allocations: 0.582 MB / 0.6293 GB, free: 85.07 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007671/1.906, allocations: 2.903 MB / 0.6321 GB, free: 83.96 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009908/1.916, allocations: 5.82 MB / 0.6378 GB, free: 78.94 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01015/1.926, allocations: 4.217 MB / 0.6419 GB, free: 76.23 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001186/1.926, allocations: 32 kB / 0.642 GB, free: 76.2 MB / 458.8 MB Notification: Performance of matching and sorting (n=870) (initialization): time 0.02694/1.953, allocations: 9.589 MB / 0.6513 GB, free: 67.36 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 9.29e-05/1.953, allocations: 48 kB / 0.6514 GB, free: 67.31 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001816/1.954, allocations: 96.86 kB / 0.6515 GB, free: 67.22 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004127/1.958, allocations: 0.9436 MB / 0.6524 GB, free: 66.26 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01136/1.969, allocations: 1.595 MB / 0.6539 GB, free: 64.66 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01745/1.987, allocations: 9.673 MB / 0.6634 GB, free: 54.59 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008326/1.995, allocations: 411.2 kB / 0.6638 GB, free: 54.19 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001728/1.997, allocations: 352 kB / 0.6641 GB, free: 53.84 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 451 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (821): * Single equations (assignments): 816 * 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,59.4%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01157/2.008, allocations: 4.223 MB / 0.6682 GB, free: 49.61 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001644/2.01, allocations: 0.5224 MB / 0.6687 GB, free: 49.08 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01951/2.03, allocations: 6.561 MB / 0.6752 GB, free: 42.47 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4e-05/2.03, allocations: 40 kB / 0.6752 GB, free: 42.43 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.207e-05/2.03, allocations: 8 kB / 0.6752 GB, free: 42.43 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001083/2.03, allocations: 19.92 kB / 0.6752 GB, free: 42.41 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04596/2.076, allocations: 15.85 MB / 0.6907 GB, free: 26.52 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.081e-05/2.076, allocations: 8.062 kB / 0.6907 GB, free: 26.51 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006866/2.083, allocations: 0.7567 MB / 0.6914 GB, free: 25.75 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003742/2.087, allocations: 0.7845 MB / 0.6922 GB, free: 24.95 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008676/2.087, allocations: 79.98 kB / 0.6923 GB, free: 24.88 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01547/2.103, allocations: 8.855 MB / 0.7009 GB, free: 15.62 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/2.103, allocations: 4 kB / 0.7009 GB, free: 15.62 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02475/2.128, allocations: 9.963 MB / 0.7107 GB, free: 5.48 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003812/2.132, allocations: 1.068 MB / 0.7117 GB, free: 4.387 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001834/2.134, allocations: 76 kB / 0.7118 GB, free: 4.312 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005142/2.139, allocations: 223.8 kB / 0.712 GB, free: 4.094 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009885/2.14, allocations: 270.8 kB / 0.7123 GB, free: 3.828 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004028/2.14, allocations: 116 kB / 0.7124 GB, free: 3.715 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.008076/2.148, allocations: 3.279 MB / 0.7156 GB, free: 460 kB / 458.8 MB Notification: Performance of sort global known variables: time 1.032e-06/2.148, allocations: 0 / 0.7156 GB, free: 460 kB / 458.8 MB Notification: Performance of remove unused functions: time 0.01088/2.159, allocations: 1.885 MB / 0.7174 GB, free: 14.56 MB / 474.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 (377): * Single equations (assignments): 372 * 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,(8,59.4%) 38,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001345/2.161, allocations: 260.4 kB / 0.7177 GB, free: 14.3 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.02139/2.182, allocations: 7.683 MB / 0.7252 GB, free: 6.547 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.232e-05/2.182, allocations: 0 / 0.7252 GB, free: 6.547 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01036/2.192, allocations: 3.59 MB / 0.7287 GB, free: 2.879 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01/2.203, allocations: 1.169 MB / 0.7298 GB, free: 1.715 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4161/2.619, allocations: 23.56 MB / 0.7528 GB, free: 150.4 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01844/2.637, allocations: 7.301 MB / 0.7599 GB, free: 149.4 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003508/2.641, allocations: 458.2 kB / 0.7604 GB, free: 149.4 MB / 490.8 MB Notification: Performance of SimCode: time 1.633e-06/2.641, allocations: 0 / 0.7604 GB, free: 149.4 MB / 490.8 MB Notification: Performance of Templates: time 1.338/3.978, allocations: 433.5 MB / 1.184 GB, free: 108.7 MB / 0.4949 GB make -j1 -f Modelica_trunk_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_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSourceCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSourceCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSourceCalcHelperMain.cpp:29: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSourceFunctions.cpp:113:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp568 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSourceFunctions.cpp:113:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp568 = 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_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSourceCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSourceCalcHelperMain.o] Error 1