Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|terminalBoxQS.plugSupply.pin.1..v.re|terminalBoxQS.plugSupply.pin.1..v.im|terminalBoxQS.plugSupply.pin.1..i.re|terminalBoxQS.plugSupply.pin.1..i.im|terminalBoxQS.plugSupply.pin.2..v.re|terminalBoxQS.plugSupply.pin.2..v.im|terminalBoxQS.plugSupply.pin.2..i.re|terminalBoxQS.plugSupply.pin.2..i.im|terminalBoxQS.plugSupply.pin.3..v.re|terminalBoxQS.plugSupply.pin.3..v.im|terminalBoxQS.plugSupply.pin.3..i.re|terminalBoxQS.plugSupply.pin.3..i.im",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadModel(Modelica): time 1.865/1.865, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.44e-05/3.449e-05, allocations: 14.31 kB / 255.4 MB, free: 3.148 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07999/0.08005, allocations: 44.49 MB / 299.9 MB, free: 6.59 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.437/0.5171, allocations: 156.2 MB / 456.1 MB, free: 8.07 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003289/0.5175, allocations: 104.3 kB / 456.2 MB, free: 8.016 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.008/2.525, allocations: 397 MB / 0.8332 GB, free: 25.27 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.755e-06/2.525, allocations: 0 / 0.8332 GB, free: 25.27 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000939/2.526, allocations: 298.2 kB / 0.8335 GB, free: 25.24 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: 3594 * Number of variables: 3594 Notification: Performance of Generate backend data structure: time 0.04758/2.574, allocations: 11.32 MB / 0.8445 GB, free: 21.61 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.464e-05/2.574, allocations: 12.12 kB / 0.8446 GB, free: 21.61 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04793/2.622, allocations: 6.414 MB / 0.8508 GB, free: 20.89 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03019/2.652, allocations: 9.651 MB / 0.8602 GB, free: 19.67 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001393/2.654, allocations: 0.9406 MB / 0.8612 GB, free: 19.64 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005925/2.66, allocations: 1.24 MB / 0.8624 GB, free: 19.63 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09975/2.759, allocations: 20.51 MB / 0.8824 GB, free: 18.12 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007023/2.76, allocations: 30.53 kB / 0.8824 GB, free: 18.11 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005221/2.765, allocations: 0.5263 MB / 0.8829 GB, free: 18.11 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001202/2.767, allocations: 0.8498 MB / 0.8838 GB, free: 18.09 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05387/2.82, allocations: 18.47 MB / 0.9018 GB, free: 18.03 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.154/2.974, allocations: 65.88 MB / 0.9661 GB, free: 13.65 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3534/3.328, allocations: 45.95 MB / 1.011 GB, free: 16.56 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01955/3.348, allocations: 7.781 MB / 1.019 GB, free: 16.45 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06054/3.408, allocations: 23.8 MB / 1.042 GB, free: 31.54 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001052/3.408, allocations: 100.1 kB / 1.042 GB, free: 31.49 MB / 474.7 MB Notification: Performance of pre-optimization done (n=771): time 1.356e-05/3.408, allocations: 0 / 1.042 GB, free: 31.49 MB / 474.7 MB Notification: Performance of matching and sorting (n=813): time 0.07372/3.482, allocations: 27.04 MB / 1.068 GB, free: 29.29 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001123/3.482, allocations: 121.8 kB / 1.068 GB, free: 29.22 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009885/3.492, allocations: 3.769 MB / 1.072 GB, free: 28.88 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001754/3.494, allocations: 135.5 kB / 1.072 GB, free: 28.84 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003316/3.497, allocations: 4.862 MB / 1.077 GB, free: 25.31 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003853/3.501, allocations: 2.702 MB / 1.08 GB, free: 23.21 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001779/3.503, allocations: 165.3 kB / 1.08 GB, free: 23.09 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001136/3.504, allocations: 0.6745 MB / 1.08 GB, free: 22.61 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01156/3.516, allocations: 5.08 MB / 1.085 GB, free: 20.52 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01372/3.529, allocations: 7.5 MB / 1.093 GB, free: 15.45 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01523/3.545, allocations: 6.447 MB / 1.099 GB, free: 12.9 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001005/3.545, allocations: 20.78 kB / 1.099 GB, free: 12.9 MB / 474.7 MB Notification: Performance of matching and sorting (n=1168) (initialization): time 0.04104/3.586, allocations: 15.22 MB / 1.114 GB, free: 7.059 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.214e-05/3.586, allocations: 36.59 kB / 1.114 GB, free: 7.059 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001356/3.586, allocations: 77.75 kB / 1.114 GB, free: 7.059 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01189/3.598, allocations: 4.114 MB / 1.118 GB, free: 5.812 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009007/3.607, allocations: 1.664 MB / 1.12 GB, free: 5.762 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01995/3.627, allocations: 12.2 MB / 1.132 GB, free: 13.86 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008575/3.636, allocations: 443.4 kB / 1.132 GB, free: 13.72 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002413/3.638, allocations: 403.8 kB / 1.132 GB, free: 13.64 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 343 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (870): * Single equations (assignments): 814 * 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.004217/3.643, allocations: 0.5897 MB / 1.133 GB, free: 13.25 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003044/3.646, allocations: 0.6043 MB / 1.134 GB, free: 12.93 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04114/3.687, allocations: 14.37 MB / 1.148 GB, free: 3.723 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003571/3.687, allocations: 195.3 kB / 1.148 GB, free: 3.555 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.244e-05/3.687, allocations: 1.969 kB / 1.148 GB, free: 3.555 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001368/3.687, allocations: 36.75 kB / 1.148 GB, free: 3.555 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4032/4.091, allocations: 29.14 MB / 1.176 GB, free: 80.32 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.982e-05/4.091, allocations: 3.562 kB / 1.176 GB, free: 80.32 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007033/4.098, allocations: 1.05 MB / 1.177 GB, free: 80.32 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01103/4.109, allocations: 3.978 MB / 1.181 GB, free: 80.21 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001871/4.111, allocations: 173.5 kB / 1.181 GB, free: 80.21 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01839/4.129, allocations: 12.03 MB / 1.193 GB, free: 75.64 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.484e-06/4.129, allocations: 3.375 kB / 1.193 GB, free: 75.64 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04849/4.178, allocations: 21.78 MB / 1.214 GB, free: 74.3 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006377/4.184, allocations: 1.777 MB / 1.216 GB, free: 74.21 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003055/4.187, allocations: 120.8 kB / 1.216 GB, free: 74.21 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006398/4.194, allocations: 332 kB / 1.217 GB, free: 74.21 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002525/4.196, allocations: 0.5784 MB / 1.217 GB, free: 74.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001874/4.198, allocations: 221.1 kB / 1.217 GB, free: 74.2 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.007567/4.206, allocations: 2.804 MB / 1.22 GB, free: 73.99 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.142e-06/4.206, allocations: 0 / 1.22 GB, free: 73.99 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01304/4.219, allocations: 2.215 MB / 1.222 GB, free: 73.99 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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 (551): * Single equations (assignments): 495 * 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.002797/4.222, allocations: 0.7952 MB / 1.223 GB, free: 73.84 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02933/4.251, allocations: 12.83 MB / 1.236 GB, free: 70.07 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.615e-06/4.251, allocations: 0 / 1.236 GB, free: 70.07 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01628/4.268, allocations: 6.678 MB / 1.242 GB, free: 67.27 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009508/4.277, allocations: 1.27 MB / 1.243 GB, free: 66.91 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06335/4.341, allocations: 21.85 MB / 1.265 GB, free: 56.88 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01892/4.359, allocations: 7.846 MB / 1.272 GB, free: 51 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00421/4.364, allocations: 0.5074 MB / 1.273 GB, free: 50.53 MB / 490.7 MB Notification: Performance of SimCode: time 2.061e-06/4.364, allocations: 4 kB / 1.273 GB, free: 50.53 MB / 490.7 MB Notification: Performance of Templates: time 2.19/6.554, allocations: 0.7241 GB / 1.997 GB, free: 17.43 MB / 0.4948 GB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_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/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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_CurrentSourceCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSourceCalcHelperMain.cpp In file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSourceCalcHelperMain.cpp:28: ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSourceFunctions.cpp:547:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp310 = 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_CurrentSourceFunctions.cpp:547:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp310 = 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_CurrentSourceCalcHelperMain.o' failed make: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSourceCalcHelperMain.o] Error 1