Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Vtr|Vqs",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") Notification: Performance of loadModel(Modelica): time 1.9/1.9, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.994e-05/3.018e-05, allocations: 0 / 255.4 MB, free: 3.164 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08653/0.08658, allocations: 44.5 MB / 299.9 MB, free: 6.602 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4147/0.5013, allocations: 142.8 MB / 442.6 MB, free: 5.078 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002928/0.5016, allocations: 103.3 kB / 442.7 MB, free: 5.023 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.262/1.763, allocations: 232.6 MB / 0.6595 GB, free: 40.73 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.395e-06/1.763, allocations: 2.062 kB / 0.6595 GB, free: 40.73 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006244/1.764, allocations: 163.1 kB / 0.6597 GB, free: 40.71 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.03246/1.796, allocations: 6.786 MB / 0.6663 GB, free: 38.52 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.132e-05/1.797, allocations: 10.69 kB / 0.6663 GB, free: 38.52 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03238/1.829, allocations: 3.656 MB / 0.6699 GB, free: 38.11 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02344/1.852, allocations: 5.93 MB / 0.6757 GB, free: 37.3 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007214/1.853, allocations: 0.5245 MB / 0.6762 GB, free: 37.29 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002928/1.856, allocations: 0.6889 MB / 0.6769 GB, free: 37.28 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03245/1.889, allocations: 11.32 MB / 0.6879 GB, free: 36.46 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004191/1.889, allocations: 20.44 kB / 0.6879 GB, free: 36.46 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002723/1.892, allocations: 302.5 kB / 0.6882 GB, free: 36.46 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006215/1.893, allocations: 495.4 kB / 0.6887 GB, free: 36.44 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02921/1.922, allocations: 10.49 MB / 0.6989 GB, free: 36.38 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07947/2.001, allocations: 38.32 MB / 0.7364 GB, free: 23.37 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02134/2.023, allocations: 18.42 MB / 0.7544 GB, free: 7.773 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008535/2.031, allocations: 4.202 MB / 0.7585 GB, free: 5.996 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03493/2.066, allocations: 13.72 MB / 0.7719 GB, free: 15.29 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.663e-05/2.066, allocations: 78.08 kB / 0.7719 GB, free: 15.23 MB / 426.7 MB Notification: Performance of pre-optimization done (n=399): time 8.125e-06/2.066, allocations: 0 / 0.7719 GB, free: 15.23 MB / 426.7 MB Notification: Performance of matching and sorting (n=415): time 0.04045/2.107, allocations: 14.24 MB / 0.7858 GB, free: 7.352 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002945/2.11, allocations: 1.947 MB / 0.7877 GB, free: 5.336 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007395/2.117, allocations: 2.932 MB / 0.7906 GB, free: 2.699 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000807/2.118, allocations: 89.7 kB / 0.7907 GB, free: 2.605 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00316/2.121, allocations: 3.013 MB / 0.7936 GB, free: 15.88 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002306/2.124, allocations: 1.398 MB / 0.795 GB, free: 14.62 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006172/2.124, allocations: 100 kB / 0.7951 GB, free: 14.52 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0006455/2.125, allocations: 0.5343 MB / 0.7956 GB, free: 14.05 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007013/2.132, allocations: 2.845 MB / 0.7984 GB, free: 11.48 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009589/2.142, allocations: 4.841 MB / 0.8031 GB, free: 6.098 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008942/2.151, allocations: 3.756 MB / 0.8068 GB, free: 2.898 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.219e-05/2.151, allocations: 20 kB / 0.8068 GB, free: 2.879 MB / 442.7 MB Notification: Performance of matching and sorting (n=716) (initialization): time 0.3616/2.512, allocations: 9.115 MB / 0.8157 GB, free: 65.13 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.446e-05/2.512, allocations: 35.12 kB / 0.8157 GB, free: 65.13 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001577/2.513, allocations: 67.28 kB / 0.8158 GB, free: 65.13 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00696/2.52, allocations: 2.463 MB / 0.8182 GB, free: 65.08 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005637/2.525, allocations: 1.05 MB / 0.8192 GB, free: 65.08 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008309/2.534, allocations: 5.409 MB / 0.8245 GB, free: 64.02 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005827/2.539, allocations: 320.2 kB / 0.8248 GB, free: 64.02 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001267/2.541, allocations: 273.2 kB / 0.8251 GB, free: 64.02 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 298 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (560): * Single equations (assignments): 538 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * 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: 0 * Non-linear torn systems: 2 {6 9,11 79} Notification: Performance of prepare postOptimizeDAE: time 0.001387/2.542, allocations: 432.2 kB / 0.8255 GB, free: 63.92 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001154/2.543, allocations: 407 kB / 0.8259 GB, free: 63.92 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01694/2.56, allocations: 7.806 MB / 0.8335 GB, free: 63.7 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001145/2.56, allocations: 93 kB / 0.8336 GB, free: 63.7 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.111e-05/2.56, allocations: 3.844 kB / 0.8336 GB, free: 63.7 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-05/2.561, allocations: 21.09 kB / 0.8336 GB, free: 63.7 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04359/2.604, allocations: 19.43 MB / 0.8526 GB, free: 62.82 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.754e-05/2.604, allocations: 6.438 kB / 0.8526 GB, free: 62.82 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003482/2.608, allocations: 0.5304 MB / 0.8531 GB, free: 62.82 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006836/2.615, allocations: 2.427 MB / 0.8555 GB, free: 62.76 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008229/2.615, allocations: 93.95 kB / 0.8556 GB, free: 62.76 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01044/2.626, allocations: 7.152 MB / 0.8626 GB, free: 60.42 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002063/2.628, allocations: 1.882 MB / 0.8644 GB, free: 59.02 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02307/2.651, allocations: 12.23 MB / 0.8763 GB, free: 54.89 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00344/2.655, allocations: 1.083 MB / 0.8774 GB, free: 54.24 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001472/2.656, allocations: 73.02 kB / 0.8775 GB, free: 54.19 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003604/2.66, allocations: 198.4 kB / 0.8777 GB, free: 54.14 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001074/2.661, allocations: 327.3 kB / 0.878 GB, free: 54.08 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004458/2.661, allocations: 120.9 kB / 0.8781 GB, free: 54.05 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004829/2.666, allocations: 2.155 MB / 0.8802 GB, free: 53.21 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.035e-06/2.666, allocations: 5.625 kB / 0.8802 GB, free: 53.21 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007616/2.674, allocations: 1.373 MB / 0.8815 GB, free: 53.05 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (281): * Single equations (assignments): 259 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * 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: 0 * Non-linear torn systems: 3 {3 3,6 9,11 79} Notification: Performance of Backend phase and start with SimCode phase: time 0.001716/2.676, allocations: 0.6779 MB / 0.8822 GB, free: 52.85 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01541/2.691, allocations: 7.224 MB / 0.8893 GB, free: 50.13 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.151e-05/2.691, allocations: 5.219 kB / 0.8893 GB, free: 50.13 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008946/2.7, allocations: 3.6 MB / 0.8928 GB, free: 48.65 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006004/2.706, allocations: 0.8848 MB / 0.8936 GB, free: 48.41 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03001/2.736, allocations: 12.1 MB / 0.9055 GB, free: 43.43 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008401/2.745, allocations: 4.552 MB / 0.9099 GB, free: 41.79 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001791/2.746, allocations: 328.6 kB / 0.9102 GB, free: 41.77 MB / 442.7 MB Notification: Performance of SimCode: time 2.343e-06/2.746, allocations: 0 / 0.9102 GB, free: 41.77 MB / 442.7 MB Notification: Performance of Templates: time 0.8494/3.596, allocations: 234.4 MB / 1.139 GB, free: 93.46 MB / 474.7 MB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.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.SMPM_OpenCircuitCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitCalcHelperMain.cpp In file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitCalcHelperMain.cpp:28: ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitFunctions.cpp:534:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp169 = 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.SMPM_OpenCircuitFunctions.cpp:534:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp169 = 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.SMPM_OpenCircuitCalcHelperMain.o' failed make: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitCalcHelperMain.o] Error 1