Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|Ptr|Pqs|smee.excitation.electroMagneticConverter.Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee.stator.strayReluctance.port_p.Phi.im|smee.stator.strayReluctance.port_p.Phi.re|smeeQS.short.port_p.reference.gamma",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") Notification: Performance of loadModel(Modelica): time 2.141/2.141, allocations: 224.7 MB / 241.1 MB, free: 1.695 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.234e-05/3.236e-05, allocations: 4 kB / 294.6 MB, free: 11.39 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.124, allocations: 50.41 MB / 345 MB, free: 8.926 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.05532/0.1794, allocations: 31.76 MB / 376.8 MB, free: 9.055 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02882/0.2082, allocations: 9.71 MB / 386.5 MB, free: 15.32 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008808/0.2171, allocations: 339.1 kB / 386.8 MB, free: 14.98 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009543/0.2267, allocations: 1.973 MB / 388.8 MB, free: 13 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01767/0.2444, allocations: 3.411 MB / 392.2 MB, free: 9.578 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009894/0.2544, allocations: 1.644 MB / 393.8 MB, free: 7.934 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.02207/0.2765, allocations: 7.91 MB / 401.7 MB, free: 16 kB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3705/0.6471, allocations: 15.59 MB / 417.3 MB, free: 5.324 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008603/0.6558, allocations: 3.411 MB / 420.7 MB, free: 5.32 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009789/0.6656, allocations: 4.023 MB / 424.8 MB, free: 5.316 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00579/0.6715, allocations: 0.6824 MB / 425.5 MB, free: 5.309 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003539/0.6751, allocations: 370.8 kB / 425.8 MB, free: 5.309 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004125/0.6792, allocations: 1.789 MB / 427.6 MB, free: 5.309 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004569/0.6839, allocations: 0.8638 MB / 428.5 MB, free: 5.309 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02944/0.7134, allocations: 20.02 MB / 448.5 MB, free: 7.242 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.7134, allocations: 3.938 kB / 448.5 MB, free: 7.238 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.867e-06/0.7134, allocations: 0 / 448.5 MB, free: 7.238 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0007672/0.7142, allocations: 0 / 448.5 MB, free: 7.238 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: 3043 * Number of variables: 3043 Notification: Performance of Generate backend data structure: time 0.04982/0.7641, allocations: 11.33 MB / 459.8 MB, free: 13 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.538e-05/0.7641, allocations: 12.03 kB / 459.8 MB, free: 12.98 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04736/0.8115, allocations: 5.052 MB / 464.9 MB, free: 8.297 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02483/0.8364, allocations: 7.322 MB / 472.2 MB, free: 3.871 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001438/0.8379, allocations: 0.8337 MB / 473 MB, free: 3.391 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005485/0.8434, allocations: 1.09 MB / 474.1 MB, free: 2.664 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06482/0.9083, allocations: 16.45 MB / 490.6 MB, free: 3.344 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006545/0.909, allocations: 19.91 kB / 490.6 MB, free: 3.324 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004245/0.9133, allocations: 457.8 kB / 491.1 MB, free: 2.887 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001014/0.9143, allocations: 0.5812 MB / 491.6 MB, free: 2.301 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05211/0.9665, allocations: 14.73 MB / 0.4945 GB, free: 3.559 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1532/1.12, allocations: 56.47 MB / 0.5496 GB, free: 10.31 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.6378/1.758, allocations: 20.85 MB / 0.57 GB, free: 120.4 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03175/1.789, allocations: 9.677 MB / 0.5795 GB, free: 117.7 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.824e-05/1.789, allocations: 67.7 kB / 0.5795 GB, free: 117.7 MB / 458.8 MB Notification: Performance of pre-optimization done (n=328): time 7.925e-06/1.789, allocations: 1.25 kB / 0.5795 GB, free: 117.7 MB / 458.8 MB Notification: Performance of matching and sorting (n=355): time 0.05749/1.847, allocations: 17.46 MB / 0.5966 GB, free: 109.1 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.804e-05/1.847, allocations: 111.7 kB / 0.5967 GB, free: 109 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01202/1.859, allocations: 4.551 MB / 0.6011 GB, free: 107.3 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007935/1.86, allocations: 82.11 kB / 0.6012 GB, free: 107.3 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00431/1.864, allocations: 4.931 MB / 0.606 GB, free: 103.4 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002034/1.866, allocations: 1.237 MB / 0.6072 GB, free: 102.5 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008824/1.867, allocations: 131.7 kB / 0.6073 GB, free: 102.4 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0005353/1.868, allocations: 0.5628 MB / 0.6079 GB, free: 101.9 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007949/1.876, allocations: 2.711 MB / 0.6105 GB, free: 100.9 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01036/1.886, allocations: 5.47 MB / 0.6159 GB, free: 96.26 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01009/1.896, allocations: 3.887 MB / 0.6197 GB, free: 94.49 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00013/1.897, allocations: 31.22 kB / 0.6197 GB, free: 94.48 MB / 458.8 MB Notification: Performance of matching and sorting (n=827) (initialization): time 0.02678/1.923, allocations: 9.123 MB / 0.6286 GB, free: 90.71 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001027/1.924, allocations: 46.22 kB / 0.6287 GB, free: 90.71 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001855/1.924, allocations: 98.88 kB / 0.6288 GB, free: 90.7 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004198/1.928, allocations: 0.9315 MB / 0.6297 GB, free: 90.19 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01046/1.938, allocations: 1.495 MB / 0.6311 GB, free: 88.9 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01823/1.957, allocations: 9.92 MB / 0.6408 GB, free: 79.49 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008782/1.966, allocations: 416.5 kB / 0.6412 GB, free: 79.14 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001523/1.967, allocations: 336 kB / 0.6415 GB, free: 78.83 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 427 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (775): * Single equations (assignments): 767 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(8,67.2%) 26,(2,100.0%) 8,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01033/1.978, allocations: 3.721 MB / 0.6452 GB, free: 75.19 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001717/1.979, allocations: 0.5066 MB / 0.6457 GB, free: 74.68 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01943/1.999, allocations: 6.125 MB / 0.6516 GB, free: 68.5 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009003/2.008, allocations: 3.213 MB / 0.6548 GB, free: 65.28 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.68e-05/2.008, allocations: 8 kB / 0.6548 GB, free: 65.27 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001027/2.008, allocations: 19.88 kB / 0.6548 GB, free: 65.25 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04255/2.051, allocations: 14.95 MB / 0.6694 GB, free: 50.21 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.431e-05/2.051, allocations: 11.98 kB / 0.6694 GB, free: 50.2 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005533/2.056, allocations: 0.6204 MB / 0.67 GB, free: 49.58 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004213/2.06, allocations: 0.8989 MB / 0.6709 GB, free: 48.67 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007943/2.061, allocations: 83.97 kB / 0.671 GB, free: 48.59 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0211/2.082, allocations: 13.1 MB / 0.6838 GB, free: 34.83 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.733e-06/2.083, allocations: 4 kB / 0.6838 GB, free: 34.83 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02391/2.106, allocations: 9.624 MB / 0.6932 GB, free: 24.9 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00383/2.11, allocations: 1.026 MB / 0.6942 GB, free: 23.85 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002093/2.112, allocations: 71.95 kB / 0.6943 GB, free: 23.78 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005621/2.118, allocations: 207.8 kB / 0.6944 GB, free: 23.58 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001188/2.119, allocations: 263.5 kB / 0.6947 GB, free: 23.32 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004485/2.12, allocations: 104 kB / 0.6948 GB, free: 23.22 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.009163/2.129, allocations: 3.367 MB / 0.6981 GB, free: 19.87 MB / 458.8 MB Notification: Performance of sort global known variables: time 8.61e-07/2.129, allocations: 0 / 0.6981 GB, free: 19.87 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.01061/2.14, allocations: 1.786 MB / 0.6998 GB, free: 18.09 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (smee.phiMechanical,smee.stator.zeroInductor.i0,smee.stator.core.Phi.im,smee.excitation.electroMagneticConverter.Phi.re,smeeQS.short.port_p.reference.gamma,mechanicalPowerSensorQS.relSpeedSensor.phi_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (310): * Single equations (assignments): 301 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 8,(1,100.0%) 4,(1,100.0%) 8,(3,77.8%) 4,(8,65.6%) 26} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001277/2.141, allocations: 283.2 kB / 0.7001 GB, free: 17.82 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.01901/2.16, allocations: 7.058 MB / 0.707 GB, free: 10.71 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.488e-05/2.16, allocations: 4 kB / 0.707 GB, free: 10.71 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.009893/2.17, allocations: 3.496 MB / 0.7104 GB, free: 7.148 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00893/2.179, allocations: 1.073 MB / 0.7115 GB, free: 6.086 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05738/2.236, allocations: 21.52 MB / 0.7325 GB, free: 480 kB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3638/2.6, allocations: 6.549 MB / 0.7389 GB, free: 136.5 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003081/2.603, allocations: 428.2 kB / 0.7393 GB, free: 136.5 MB / 474.8 MB Notification: Performance of SimCode: time 1.613e-06/2.603, allocations: 0 / 0.7393 GB, free: 136.5 MB / 474.8 MB Notification: Performance of Templates: time 1.306/3.91, allocations: 367.7 MB / 1.098 GB, free: 160.8 MB / 0.4949 GB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.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.SMEE_GeneratorCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorCalcHelperMain.cpp:29: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorFunctions.cpp:221:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp589 = 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.SMEE_GeneratorFunctions.cpp:221:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp589 = 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.SMEE_GeneratorCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorCalcHelperMain.o] Error 1