Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Itr|Iqs|loadInertiaM.phi|loadInertiaM.w|loadInertiaMQS.phi|loadInertiaMQS.w|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") Notification: Performance of loadModel(Modelica): time 2.115/2.115, allocations: 224.7 MB / 241.1 MB, free: 1.68 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.628e-05/2.636e-05, allocations: 0 / 294.6 MB, free: 11.38 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1115, allocations: 50.42 MB / 345 MB, free: 8.91 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.0493/0.1608, allocations: 28.81 MB / 373.8 MB, free: 12 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02572/0.1866, allocations: 8.722 MB / 382.5 MB, free: 3.254 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007402/0.1941, allocations: 303.1 kB / 382.8 MB, free: 2.957 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008595/0.2028, allocations: 1.865 MB / 384.7 MB, free: 1.082 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01529/0.2181, allocations: 3.119 MB / 387.8 MB, free: 13.95 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008259/0.2264, allocations: 1.477 MB / 389.3 MB, free: 12.48 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.02452/0.2509, allocations: 9.158 MB / 398.5 MB, free: 3.301 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3642/0.6152, allocations: 17.37 MB / 415.8 MB, free: 5.926 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009388/0.6247, allocations: 3.848 MB / 419.7 MB, free: 5.922 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01049/0.6352, allocations: 4.436 MB / 424.1 MB, free: 5.918 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00632/0.6416, allocations: 0.697 MB / 424.8 MB, free: 5.918 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004061/0.6457, allocations: 408.6 kB / 425.2 MB, free: 5.918 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00481/0.6505, allocations: 1.974 MB / 427.2 MB, free: 5.918 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005189/0.6558, allocations: 0.9514 MB / 428.1 MB, free: 5.914 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0327/0.6885, allocations: 22.56 MB / 450.7 MB, free: 5.293 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/0.6886, allocations: 0 / 450.7 MB, free: 5.293 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.635e-06/0.6886, allocations: 2.906 kB / 450.7 MB, free: 5.293 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0007707/0.6894, allocations: 0 / 450.7 MB, free: 5.293 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: 3330 * Number of variables: 3330 Notification: Performance of Generate backend data structure: time 0.05667/0.7461, allocations: 12.71 MB / 463.4 MB, free: 9.84 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/0.7461, allocations: 12.03 kB / 463.4 MB, free: 9.828 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05695/0.8031, allocations: 6.292 MB / 469.7 MB, free: 4.008 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02848/0.8316, allocations: 8.21 MB / 477.9 MB, free: 15.16 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001621/0.8333, allocations: 0.9034 MB / 478.8 MB, free: 14.64 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006846/0.8402, allocations: 1.186 MB / 480 MB, free: 13.86 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06895/0.9092, allocations: 18.59 MB / 498.6 MB, free: 11.76 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006622/0.9099, allocations: 15.91 kB / 498.6 MB, free: 11.75 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004412/0.9144, allocations: 0.4922 MB / 499.1 MB, free: 11.27 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001086/0.9155, allocations: 0.6571 MB / 499.8 MB, free: 10.61 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05749/0.973, allocations: 16.93 MB / 0.5046 GB, free: 9.672 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4961/1.469, allocations: 62.67 MB / 0.5658 GB, free: 114.5 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04165/1.511, allocations: 29.66 MB / 0.5947 GB, free: 91.32 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02931/1.54, allocations: 9.84 MB / 0.6044 GB, free: 90.45 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.848e-05/1.54, allocations: 84.94 kB / 0.6044 GB, free: 90.4 MB / 458.7 MB Notification: Performance of pre-optimization done (n=414): time 1.169e-05/1.54, allocations: 0 / 0.6044 GB, free: 90.4 MB / 458.7 MB Notification: Performance of matching and sorting (n=424): time 0.08981/1.63, allocations: 20.51 MB / 0.6245 GB, free: 83.25 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.866e-05/1.63, allocations: 125.1 kB / 0.6246 GB, free: 83.15 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01543/1.646, allocations: 4.468 MB / 0.6289 GB, free: 81.48 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001101/1.647, allocations: 95.98 kB / 0.629 GB, free: 81.4 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005245/1.652, allocations: 5.101 MB / 0.634 GB, free: 77.44 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002735/1.655, allocations: 1.46 MB / 0.6354 GB, free: 76.32 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001161/1.656, allocations: 139.9 kB / 0.6356 GB, free: 76.21 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0007108/1.657, allocations: 0.5636 MB / 0.6361 GB, free: 75.79 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0113/1.668, allocations: 2.895 MB / 0.639 GB, free: 74.68 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01349/1.682, allocations: 5.363 MB / 0.6442 GB, free: 70.11 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0138/1.696, allocations: 4.06 MB / 0.6482 GB, free: 67.84 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001143/1.696, allocations: 22.34 kB / 0.6482 GB, free: 67.84 MB / 458.7 MB Notification: Performance of matching and sorting (n=839) (initialization): time 0.03817/1.734, allocations: 9.507 MB / 0.6575 GB, free: 61.05 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001067/1.734, allocations: 43.98 kB / 0.6575 GB, free: 61.01 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00018/1.734, allocations: 84 kB / 0.6576 GB, free: 60.93 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006404/1.741, allocations: 1.128 MB / 0.6587 GB, free: 59.79 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01548/1.756, allocations: 1.462 MB / 0.6601 GB, free: 58.32 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02428/1.781, allocations: 12.74 MB / 0.6726 GB, free: 45.05 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007861/1.789, allocations: 355.6 kB / 0.6729 GB, free: 44.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001553/1.79, allocations: 324 kB / 0.6732 GB, free: 44.39 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 372 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (772): * Single equations (assignments): 763 * 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: 4 * 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: 4 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 1,(10,52.0%) 46} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01073/1.801, allocations: 4.204 MB / 0.6773 GB, free: 40.17 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001764/1.803, allocations: 0.5364 MB / 0.6778 GB, free: 39.62 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02159/1.824, allocations: 7.229 MB / 0.6849 GB, free: 32.3 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01212/1.837, allocations: 4.333 MB / 0.6891 GB, free: 27.92 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.479e-05/1.837, allocations: 15.98 kB / 0.6891 GB, free: 27.91 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001281/1.837, allocations: 27.88 kB / 0.6892 GB, free: 27.88 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05097/1.888, allocations: 17.13 MB / 0.7059 GB, free: 10.62 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.059e-05/1.888, allocations: 4.594 kB / 0.7059 GB, free: 10.61 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006483/1.894, allocations: 0.7099 MB / 0.7066 GB, free: 9.902 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005622/1.9, allocations: 1.162 MB / 0.7077 GB, free: 8.719 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009658/1.901, allocations: 104 kB / 0.7078 GB, free: 8.617 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03011/1.931, allocations: 16.24 MB / 0.7237 GB, free: 7.582 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.518e-06/1.931, allocations: 7.938 kB / 0.7237 GB, free: 7.574 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03178/1.963, allocations: 11.12 MB / 0.7346 GB, free: 12.18 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004573/1.968, allocations: 1.127 MB / 0.7357 GB, free: 11.03 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002392/1.97, allocations: 83.98 kB / 0.7357 GB, free: 10.95 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005956/1.976, allocations: 223.8 kB / 0.736 GB, free: 10.73 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001585/1.978, allocations: 311.9 kB / 0.7363 GB, free: 10.42 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007436/1.979, allocations: 124 kB / 0.7364 GB, free: 10.3 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01036/1.989, allocations: 3.343 MB / 0.7396 GB, free: 6.973 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.81e-07/1.989, allocations: 3.938 kB / 0.7396 GB, free: 6.969 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0117/2.001, allocations: 1.959 MB / 0.7416 GB, free: 5.016 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smpmQS.inertiaRotor.w,smpmQS.rotorCage.port_p.reference.gamma,loadInertiaMQS.phi,smpm.inertiaRotor.w,smpm.stator.zeroInductor.i0,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (362): * Single equations (assignments): 352 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(10,52.0%) 46,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001566/2.002, allocations: 303.3 kB / 0.7418 GB, free: 4.727 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.373/2.375, allocations: 7.797 MB / 0.7495 GB, free: 156.2 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.448e-05/2.375, allocations: 3.438 kB / 0.7495 GB, free: 156.2 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0141/2.39, allocations: 4.138 MB / 0.7535 GB, free: 155.3 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0123/2.402, allocations: 1.31 MB / 0.7548 GB, free: 155.3 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05872/2.461, allocations: 24.31 MB / 0.7785 GB, free: 143.5 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01546/2.476, allocations: 7.331 MB / 0.7857 GB, free: 141 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003134/2.479, allocations: 455.5 kB / 0.7861 GB, free: 140.9 MB / 490.7 MB Notification: Performance of SimCode: time 1.693e-06/2.479, allocations: 0 / 0.7861 GB, free: 140.9 MB / 490.7 MB Notification: Performance of Templates: time 1.37/3.849, allocations: 474.4 MB / 1.249 GB, free: 38.8 MB / 0.4948 GB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.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.SMPM_MainsCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsCalcHelperMain.cpp:29: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsFunctions.cpp:221:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp697 = 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.SMPM_MainsFunctions.cpp:221:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp697 = 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.SMPM_MainsCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsCalcHelperMain.o] Error 1