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 2.078/2.078, allocations: 194.9 MB / 211.2 MB, free: 8.355 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.809e-05/4.814e-05, allocations: 7.938 kB / 258.8 MB, free: 8.676 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3459/0.346, allocations: 44.5 MB / 303.3 MB, free: 12.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.05641/0.4025, allocations: 33.2 MB / 336.5 MB, free: 12.39 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02905/0.4316, allocations: 9.583 MB / 346.1 MB, free: 2.777 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008781/0.4404, allocations: 335.1 kB / 346.4 MB, free: 2.449 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009777/0.4503, allocations: 2.102 MB / 348.5 MB, free: 344 kB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01815/0.4685, allocations: 3.583 MB / 352.1 MB, free: 12.74 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009757/0.4782, allocations: 1.788 MB / 353.9 MB, free: 10.95 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.02258/0.5008, allocations: 8.531 MB / 362.4 MB, free: 2.41 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05005/0.5509, allocations: 17.07 MB / 379.5 MB, free: 1.281 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009383/0.5604, allocations: 3.807 MB / 383.3 MB, free: 13.46 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01098/0.5714, allocations: 4.586 MB / 387.9 MB, free: 8.859 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005667/0.5771, allocations: 0.6987 MB / 388.6 MB, free: 8.164 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003483/0.5807, allocations: 408 kB / 389 MB, free: 7.766 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004872/0.5856, allocations: 2.14 MB / 391.1 MB, free: 5.617 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004923/0.5906, allocations: 0.9688 MB / 392.1 MB, free: 4.648 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03522/0.6259, allocations: 22.44 MB / 414.5 MB, free: 14.15 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.6259, allocations: 0 / 414.5 MB, free: 14.15 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.496e-06/0.6259, allocations: 4 kB / 414.5 MB, free: 14.14 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0007875/0.6267, allocations: 0 / 414.5 MB, free: 14.14 MB / 362.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.0538/0.6806, allocations: 12.74 MB / 427.3 MB, free: 1.293 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.497e-05/0.6806, allocations: 8.031 kB / 427.3 MB, free: 1.285 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3948/1.075, allocations: 9.084 MB / 436.4 MB, free: 88.16 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02794/1.103, allocations: 7.58 MB / 444 MB, free: 83.13 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002128/1.106, allocations: 0.9668 MB / 444.9 MB, free: 82.7 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01914/1.125, allocations: 1.281 MB / 446.2 MB, free: 82.27 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0751/1.2, allocations: 20.28 MB / 466.5 MB, free: 63.2 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007312/1.201, allocations: 25.52 kB / 466.5 MB, free: 63.18 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004644/1.205, allocations: 0.5259 MB / 467 MB, free: 62.67 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001031/1.207, allocations: 0.7494 MB / 467.8 MB, free: 61.92 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05866/1.265, allocations: 19.11 MB / 486.9 MB, free: 42.8 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2057/1.471, allocations: 65.08 MB / 0.539 GB, free: 8.355 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4012/1.872, allocations: 57.14 MB / 0.5948 GB, free: 82.65 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08193/1.954, allocations: 11.74 MB / 0.6063 GB, free: 78.31 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.02e-05/1.954, allocations: 69.91 kB / 0.6064 GB, free: 78.24 MB / 426.7 MB Notification: Performance of pre-optimization done (n=369): time 1.182e-05/1.954, allocations: 1.125 kB / 0.6064 GB, free: 78.24 MB / 426.7 MB Notification: Performance of matching and sorting (n=411): time 0.08448/2.039, allocations: 18.15 MB / 0.6241 GB, free: 70.4 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.236e-05/2.039, allocations: 93.17 kB / 0.6242 GB, free: 70.34 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01201/2.051, allocations: 4.908 MB / 0.629 GB, free: 68.53 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008511/2.052, allocations: 92.89 kB / 0.6291 GB, free: 68.45 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004164/2.056, allocations: 5.81 MB / 0.6347 GB, free: 63.95 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001997/2.058, allocations: 1.448 MB / 0.6361 GB, free: 62.85 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000803/2.059, allocations: 162.5 kB / 0.6363 GB, free: 62.72 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005127/2.06, allocations: 0.6367 MB / 0.6369 GB, free: 62.27 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008232/2.068, allocations: 3.123 MB / 0.64 GB, free: 61.1 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01092/2.079, allocations: 6.821 MB / 0.6466 GB, free: 54.37 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01103/2.09, allocations: 4.662 MB / 0.6512 GB, free: 49.86 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000129/2.09, allocations: 36 kB / 0.6512 GB, free: 49.82 MB / 426.7 MB Notification: Performance of matching and sorting (n=1012) (initialization): time 0.0289/2.119, allocations: 10.73 MB / 0.6617 GB, free: 39.03 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000104/2.119, allocations: 60 kB / 0.6618 GB, free: 38.97 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002005/2.119, allocations: 132 kB / 0.6619 GB, free: 38.84 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004175/2.124, allocations: 0.9802 MB / 0.6628 GB, free: 37.85 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01256/2.136, allocations: 1.864 MB / 0.6647 GB, free: 35.98 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01715/2.153, allocations: 9.725 MB / 0.6742 GB, free: 25.86 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009019/2.162, allocations: 454.2 kB / 0.6746 GB, free: 25.42 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001742/2.164, allocations: 428 kB / 0.675 GB, free: 25 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 580 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (963): * Single equations (assignments): 958 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * 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: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0118/2.176, allocations: 4.472 MB / 0.6794 GB, free: 20.52 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001744/2.178, allocations: 0.575 MB / 0.6799 GB, free: 19.93 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01922/2.197, allocations: 6.76 MB / 0.6865 GB, free: 13.12 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.055e-05/2.197, allocations: 40 kB / 0.6866 GB, free: 13.09 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.942e-05/2.197, allocations: 8 kB / 0.6866 GB, free: 13.08 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001077/2.197, allocations: 23.92 kB / 0.6866 GB, free: 13.05 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04868/2.246, allocations: 16.54 MB / 0.7028 GB, free: 12.48 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.464e-05/2.246, allocations: 4 kB / 0.7028 GB, free: 12.47 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007668/2.254, allocations: 0.7962 MB / 0.7035 GB, free: 11.68 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004167/2.258, allocations: 0.7884 MB / 0.7043 GB, free: 10.87 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009312/2.259, allocations: 87.91 kB / 0.7044 GB, free: 10.79 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01835/2.277, allocations: 8.84 MB / 0.713 GB, free: 1.547 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.075e-05/2.277, allocations: 7.938 kB / 0.713 GB, free: 1.539 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03743/2.315, allocations: 10.43 MB / 0.7232 GB, free: 6.891 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004533/2.319, allocations: 1.142 MB / 0.7243 GB, free: 5.723 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002254/2.322, allocations: 75.98 kB / 0.7244 GB, free: 5.648 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007438/2.329, allocations: 227.8 kB / 0.7246 GB, free: 5.426 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001559/2.331, allocations: 286.8 kB / 0.7249 GB, free: 5.145 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006611/2.332, allocations: 120 kB / 0.725 GB, free: 5.027 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.02651/2.358, allocations: 3.608 MB / 0.7285 GB, free: 1.449 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.373e-06/2.358, allocations: 0 / 0.7285 GB, free: 1.449 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.02892/2.387, allocations: 2.042 MB / 0.7305 GB, free: 15.41 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.w,quadraticSpeedDependentTorqueQS.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (392): * Single equations (assignments): 387 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * 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: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001584/2.389, allocations: 257.1 kB / 0.7308 GB, free: 15.16 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02788/2.417, allocations: 8.236 MB / 0.7388 GB, free: 6.852 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.151e-05/2.417, allocations: 0 / 0.7388 GB, free: 6.852 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01065/2.427, allocations: 3.633 MB / 0.7424 GB, free: 3.141 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01079/2.438, allocations: 1.269 MB / 0.7436 GB, free: 1.879 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3749/2.813, allocations: 25.14 MB / 0.7682 GB, free: 183.4 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01844/2.832, allocations: 7.66 MB / 0.7756 GB, free: 182.5 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003385/2.835, allocations: 0.5113 MB / 0.7761 GB, free: 182.5 MB / 490.7 MB Notification: Performance of SimCode: time 1.583e-06/2.835, allocations: 0 / 0.7761 GB, free: 182.5 MB / 490.7 MB Notification: Performance of Templates: time 1.351/4.186, allocations: 460 MB / 1.225 GB, free: 62.7 MB / 490.7 MB 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 -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_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:29: ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSourceFunctions.cpp:113:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp638 = 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:113:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp638 = 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