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_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") Notification: Performance of loadModel(Modelica): time 1.844/1.844, allocations: 194.9 MB / 208.4 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.963e-05/2.979e-05, allocations: 3.188 kB / 255.4 MB, free: 3.152 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08289/0.08294, allocations: 44.5 MB / 299.9 MB, free: 6.594 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4269/0.5099, allocations: 150.1 MB / 450 MB, free: 14.05 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003116/0.5103, allocations: 102.9 kB / 450.1 MB, free: 13.99 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.92/2.43, allocations: 385.9 MB / 0.8164 GB, free: 19.18 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.991e-06/2.43, allocations: 1.312 kB / 0.8164 GB, free: 19.18 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.001002/2.431, allocations: 294.1 kB / 0.8166 GB, free: 19.14 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: 3509 * Number of variables: 3509 Notification: Performance of Generate backend data structure: time 0.04652/2.478, allocations: 11.04 MB / 0.8274 GB, free: 15.61 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.437e-05/2.478, allocations: 6.406 kB / 0.8274 GB, free: 15.61 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04711/2.525, allocations: 6.339 MB / 0.8336 GB, free: 14.91 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02965/2.554, allocations: 9.445 MB / 0.8428 GB, free: 13.72 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001314/2.556, allocations: 0.93 MB / 0.8437 GB, free: 13.69 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00578/2.562, allocations: 1.199 MB / 0.8449 GB, free: 13.68 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06083/2.623, allocations: 20.31 MB / 0.8647 GB, free: 12.19 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006661/2.623, allocations: 17.31 kB / 0.8648 GB, free: 12.18 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005197/2.628, allocations: 0.5139 MB / 0.8653 GB, free: 12.18 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001164/2.63, allocations: 0.8424 MB / 0.8661 GB, free: 12.15 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04838/2.678, allocations: 18.37 MB / 0.884 GB, free: 12.04 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1806/2.859, allocations: 64.71 MB / 0.9472 GB, free: 8.145 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4517/3.311, allocations: 45.94 MB / 0.9921 GB, free: 26.47 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01728/3.328, allocations: 7.714 MB / 0.9996 GB, free: 26.36 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05461/3.383, allocations: 23.5 MB / 1.023 GB, free: 25.45 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.915e-05/3.383, allocations: 98.39 kB / 1.023 GB, free: 25.4 MB / 458.7 MB Notification: Performance of pre-optimization done (n=759): time 1.358e-05/3.383, allocations: 0 / 1.023 GB, free: 25.4 MB / 458.7 MB Notification: Performance of matching and sorting (n=799): time 0.06592/3.449, allocations: 26.68 MB / 1.049 GB, free: 23.24 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.394e-05/3.449, allocations: 122.6 kB / 1.049 GB, free: 23.17 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007125/3.456, allocations: 3.559 MB / 1.052 GB, free: 22.49 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00144/3.457, allocations: 133.6 kB / 1.052 GB, free: 22.38 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00274/3.46, allocations: 4.714 MB / 1.057 GB, free: 18.73 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003313/3.463, allocations: 2.655 MB / 1.06 GB, free: 16.66 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001026/3.465, allocations: 161.9 kB / 1.06 GB, free: 16.54 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0007457/3.465, allocations: 0.671 MB / 1.06 GB, free: 16.07 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01011/3.475, allocations: 5.018 MB / 1.065 GB, free: 14 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01237/3.488, allocations: 7.423 MB / 1.073 GB, free: 9.016 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01325/3.501, allocations: 6.367 MB / 1.079 GB, free: 6.488 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.454e-05/3.501, allocations: 21.19 kB / 1.079 GB, free: 6.488 MB / 458.7 MB Notification: Performance of matching and sorting (n=1144) (initialization): time 0.03972/3.541, allocations: 15.22 MB / 1.094 GB, free: 0.6602 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.06e-05/3.541, allocations: 41.72 kB / 1.094 GB, free: 0.6602 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001183/3.541, allocations: 70.16 kB / 1.094 GB, free: 0.6602 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01051/3.552, allocations: 4.112 MB / 1.098 GB, free: 15.47 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008459/3.56, allocations: 1.619 MB / 1.099 GB, free: 15.42 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01836/3.579, allocations: 12.19 MB / 1.111 GB, free: 7.539 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007654/3.586, allocations: 449.4 kB / 1.112 GB, free: 7.387 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001908/3.588, allocations: 383.1 kB / 1.112 GB, free: 7.32 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 333 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (846): * Single equations (assignments): 790 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.002223/3.591, allocations: 0.5777 MB / 1.113 GB, free: 6.934 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001738/3.592, allocations: 0.5744 MB / 1.113 GB, free: 6.629 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05703/3.649, allocations: 15.33 MB / 1.128 GB, free: 13.71 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003066/3.65, allocations: 193.7 kB / 1.128 GB, free: 13.55 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.007e-05/3.65, allocations: 0 / 1.128 GB, free: 13.55 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001204/3.65, allocations: 38.02 kB / 1.128 GB, free: 13.55 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4601/4.11, allocations: 29.54 MB / 1.157 GB, free: 89.95 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.818e-05/4.11, allocations: 1.812 kB / 1.157 GB, free: 89.95 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006927/4.117, allocations: 1.025 MB / 1.158 GB, free: 89.95 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01128/4.128, allocations: 3.991 MB / 1.162 GB, free: 89.84 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001685/4.13, allocations: 169.5 kB / 1.162 GB, free: 89.84 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.016/4.146, allocations: 12.02 MB / 1.174 GB, free: 85.27 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.514e-06/4.146, allocations: 2.656 kB / 1.174 GB, free: 85.27 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04593/4.192, allocations: 21.44 MB / 1.195 GB, free: 84.14 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005689/4.198, allocations: 1.729 MB / 1.197 GB, free: 84.05 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002843/4.201, allocations: 120.4 kB / 1.197 GB, free: 84.05 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006244/4.207, allocations: 324.5 kB / 1.197 GB, free: 84.05 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002309/4.209, allocations: 0.562 MB / 1.198 GB, free: 84.04 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001287/4.211, allocations: 228.8 kB / 1.198 GB, free: 84.04 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006121/4.217, allocations: 2.644 MB / 1.2 GB, free: 83.84 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.94e-07/4.217, allocations: 0 / 1.2 GB, free: 83.84 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01159/4.228, allocations: 2.145 MB / 1.203 GB, free: 83.84 MB / 490.7 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 (535): * Single equations (assignments): 479 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.002379/4.231, allocations: 0.7026 MB / 1.203 GB, free: 83.71 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0281/4.259, allocations: 12.86 MB / 1.216 GB, free: 83.01 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.275e-06/4.259, allocations: 0 / 1.216 GB, free: 83.01 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01519/4.274, allocations: 6.654 MB / 1.222 GB, free: 81.7 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008122/4.282, allocations: 1.168 MB / 1.223 GB, free: 81.38 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05508/4.338, allocations: 21.5 MB / 1.244 GB, free: 73.1 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02331/4.361, allocations: 7.735 MB / 1.252 GB, free: 69.5 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006056/4.367, allocations: 496.6 kB / 1.252 GB, free: 69.04 MB / 490.7 MB Notification: Performance of SimCode: time 2.928e-06/4.367, allocations: 4 kB / 1.252 GB, free: 69.04 MB / 490.7 MB Notification: Performance of Templates: time 2.286/6.653, allocations: 0.7072 GB / 1.96 GB, free: 55.02 MB / 0.4948 GB make -j1 -f Modelica_3.2.2_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 -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.SMR_CurrentSourceCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSourceCalcHelperMain.cpp In file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSourceCalcHelperMain.cpp:28: ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSourceFunctions.cpp:455:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp300 = 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.SMR_CurrentSourceFunctions.cpp:455:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp300 = 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.SMR_CurrentSourceCalcHelperMain.o' failed make: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSourceCalcHelperMain.o] Error 1