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_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") Notification: Performance of loadModel(Modelica): time 1.821/1.821, allocations: 194.9 MB / 208.4 MB, free: 3.176 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.416e-05/2.439e-05, allocations: 0 / 255.4 MB, free: 3.176 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08648/0.08653, allocations: 44.5 MB / 299.9 MB, free: 6.605 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.485/0.5716, allocations: 161.1 MB / 461 MB, free: 2.953 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002859/0.5719, allocations: 102.4 kB / 461.1 MB, free: 2.895 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.037/2.609, allocations: 394.9 MB / 0.836 GB, free: 30.09 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.292e-06/2.609, allocations: 0.6875 kB / 0.836 GB, free: 30.09 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0008925/2.61, allocations: 260.6 kB / 0.8362 GB, free: 30.06 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: 3109 * Number of variables: 3109 Notification: Performance of Generate backend data structure: time 0.0427/2.652, allocations: 10.27 MB / 0.8462 GB, free: 26.79 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/2.653, allocations: 10 kB / 0.8462 GB, free: 26.79 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03278/2.685, allocations: 4.386 MB / 0.8505 GB, free: 26.16 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02877/2.714, allocations: 8.86 MB / 0.8592 GB, free: 25.02 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001175/2.715, allocations: 0.831 MB / 0.86 GB, free: 24.99 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005015/2.72, allocations: 1.081 MB / 0.861 GB, free: 24.98 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05191/2.772, allocations: 17.23 MB / 0.8779 GB, free: 23.62 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005145/2.773, allocations: 24.97 kB / 0.8779 GB, free: 23.61 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004315/2.777, allocations: 475.3 kB / 0.8783 GB, free: 23.61 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009236/2.778, allocations: 0.6893 MB / 0.879 GB, free: 23.59 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0397/2.818, allocations: 14.95 MB / 0.8936 GB, free: 23.48 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1276/2.946, allocations: 58.14 MB / 0.9504 GB, free: 12.26 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02905/2.975, allocations: 17.06 MB / 0.9671 GB, free: 13.49 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01565/2.99, allocations: 6.172 MB / 0.9731 GB, free: 7.844 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3663/3.357, allocations: 19.37 MB / 0.992 GB, free: 57.73 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.823e-05/3.357, allocations: 93.97 kB / 0.9921 GB, free: 57.69 MB / 458.7 MB Notification: Performance of pre-optimization done (n=625): time 1.396e-05/3.357, allocations: 1.5 kB / 0.9921 GB, free: 57.69 MB / 458.7 MB Notification: Performance of matching and sorting (n=658): time 0.06166/3.419, allocations: 23.45 MB / 1.015 GB, free: 54.51 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004829/3.423, allocations: 2.929 MB / 1.018 GB, free: 52.91 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009384/3.433, allocations: 3.888 MB / 1.022 GB, free: 52.57 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001286/3.434, allocations: 113.5 kB / 1.022 GB, free: 52.54 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003131/3.437, allocations: 4.381 MB / 1.026 GB, free: 50.48 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003149/3.441, allocations: 2.194 MB / 1.028 GB, free: 49.07 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001188/3.442, allocations: 143.6 kB / 1.028 GB, free: 49.07 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0008032/3.443, allocations: 0.6193 MB / 1.029 GB, free: 48.75 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009721/3.452, allocations: 4.366 MB / 1.033 GB, free: 48.73 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01167/3.464, allocations: 6.385 MB / 1.039 GB, free: 46.45 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01196/3.476, allocations: 5.498 MB / 1.045 GB, free: 46.33 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.37e-05/3.476, allocations: 17.47 kB / 1.045 GB, free: 46.33 MB / 458.7 MB Notification: Performance of matching and sorting (n=996) (initialization): time 0.03075/3.507, allocations: 12.84 MB / 1.057 GB, free: 45.78 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.718e-05/3.507, allocations: 32.38 kB / 1.057 GB, free: 45.78 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001146/3.507, allocations: 60.03 kB / 1.057 GB, free: 45.78 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006486/3.514, allocations: 2.4 MB / 1.06 GB, free: 45.49 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008571/3.522, allocations: 1.522 MB / 1.061 GB, free: 45.44 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01292/3.535, allocations: 10.41 MB / 1.071 GB, free: 38.11 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008598/3.544, allocations: 0.5279 MB / 1.072 GB, free: 37.98 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001976/3.546, allocations: 347.1 kB / 1.072 GB, free: 37.92 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 278 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (791): * Single equations (assignments): 722 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 60 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 6 * 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: 2 {(2,100.0%) 8,(1,100.0%) 5} * Non-linear torn systems: 4 {6 9,6 9,6 9,6 43} Notification: Performance of prepare postOptimizeDAE: time 0.002637/3.549, allocations: 0.5016 MB / 1.073 GB, free: 37.58 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00176/3.55, allocations: 0.5504 MB / 1.073 GB, free: 37.29 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02953/3.58, allocations: 11.71 MB / 1.085 GB, free: 32.32 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0232/3.603, allocations: 10.36 MB / 1.095 GB, free: 27.96 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.94e-05/3.603, allocations: 7.828 kB / 1.095 GB, free: 27.96 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001269/3.603, allocations: 32.42 kB / 1.095 GB, free: 27.96 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0718/3.675, allocations: 30.54 MB / 1.125 GB, free: 8.547 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.993e-05/3.675, allocations: 4 kB / 1.125 GB, free: 8.543 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005619/3.681, allocations: 0.8798 MB / 1.126 GB, free: 7.879 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007504/3.689, allocations: 2.651 MB / 1.128 GB, free: 5.766 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001418/3.69, allocations: 146.1 kB / 1.128 GB, free: 5.641 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02469/3.715, allocations: 15.89 MB / 1.144 GB, free: 6.438 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005342/3.72, allocations: 2.804 MB / 1.147 GB, free: 3.688 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3684/4.089, allocations: 18.7 MB / 1.165 GB, free: 67.8 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005337/4.094, allocations: 1.57 MB / 1.166 GB, free: 67.7 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002612/4.097, allocations: 102.8 kB / 1.166 GB, free: 67.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006201/4.103, allocations: 340.7 kB / 1.167 GB, free: 67.7 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002145/4.105, allocations: 0.5041 MB / 1.167 GB, free: 67.7 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001354/4.106, allocations: 184.2 kB / 1.167 GB, free: 67.7 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.007387/4.114, allocations: 2.881 MB / 1.17 GB, free: 67.5 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.038e-06/4.114, allocations: 2.625 kB / 1.17 GB, free: 67.5 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01168/4.126, allocations: 2.097 MB / 1.172 GB, free: 67.5 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (smeeQS.gamma,smeeQS.excitation.electroMagneticConverter.port_p.reference.gamma,$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],smee.stator.zeroInductor.i0) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (460): * Single equations (assignments): 392 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 60 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 8,(1,100.0%) 4,(1,100.0%) 8} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 43,5 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.00226/4.128, allocations: 0.6701 MB / 1.173 GB, free: 67.41 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02379/4.152, allocations: 10.88 MB / 1.184 GB, free: 66.84 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.207e-05/4.152, allocations: 0 / 1.184 GB, free: 66.84 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01407/4.166, allocations: 5.896 MB / 1.189 GB, free: 66.25 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007913/4.174, allocations: 1.076 MB / 1.19 GB, free: 66.23 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05276/4.227, allocations: 18.67 MB / 1.209 GB, free: 62.93 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01555/4.242, allocations: 6.806 MB / 1.215 GB, free: 62.05 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003503/4.246, allocations: 468.4 kB / 1.216 GB, free: 62.05 MB / 474.7 MB Notification: Performance of SimCode: time 2.142e-06/4.246, allocations: 0 / 1.216 GB, free: 62.05 MB / 474.7 MB Notification: Performance of Templates: time 2.126/6.372, allocations: 0.6646 GB / 1.88 GB, free: 108.7 MB / 0.5105 GB make -j1 -f Modelica_3.2.2_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 -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.SMEE_GeneratorCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorCalcHelperMain.cpp In file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorCalcHelperMain.cpp:28: ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorFunctions.cpp:621:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp324 = 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.SMEE_GeneratorFunctions.cpp:621:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp324 = 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.SMEE_GeneratorCalcHelperMain.o' failed make: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorCalcHelperMain.o] Error 1