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_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadModel(Modelica): time 2.083/2.083, allocations: 224.7 MB / 241.1 MB, free: 1.68 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.038e-05/3.038e-05, allocations: 7.984 kB / 294.6 MB, free: 11.36 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1144, allocations: 50.41 MB / 345 MB, free: 8.906 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.05601/0.1704, allocations: 31.86 MB / 376.9 MB, free: 8.926 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02959/0.2001, allocations: 9.532 MB / 386.4 MB, free: 15.37 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008702/0.2088, allocations: 351.1 kB / 386.7 MB, free: 15.02 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009604/0.2185, allocations: 2.047 MB / 388.8 MB, free: 12.96 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01681/0.2354, allocations: 3.38 MB / 392.2 MB, free: 9.574 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0105/0.2459, allocations: 1.781 MB / 394 MB, free: 7.793 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.331/0.5769, allocations: 8.313 MB / 402.3 MB, free: 7.059 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05019/0.6271, allocations: 17.08 MB / 419.3 MB, free: 5.137 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009205/0.6364, allocations: 3.655 MB / 423 MB, free: 5.133 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01073/0.6472, allocations: 4.398 MB / 427.4 MB, free: 5.129 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006024/0.6533, allocations: 0.6886 MB / 428.1 MB, free: 5.117 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003868/0.6572, allocations: 396.5 kB / 428.5 MB, free: 5.113 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005134/0.6624, allocations: 1.979 MB / 430.5 MB, free: 5.113 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005107/0.6675, allocations: 0.9344 MB / 431.4 MB, free: 5.113 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03212/0.6997, allocations: 22.04 MB / 453.4 MB, free: 3.91 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.6997, allocations: 3.938 kB / 453.4 MB, free: 3.906 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.046e-06/0.6998, allocations: 0 / 453.4 MB, free: 3.906 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0007748/0.7005, allocations: 0 / 453.4 MB, free: 3.906 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3414 * Number of variables: 3414 Notification: Performance of Generate backend data structure: time 0.05248/0.753, allocations: 12.31 MB / 465.7 MB, free: 8.824 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.208e-05/0.7531, allocations: 8.031 kB / 465.7 MB, free: 8.816 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05294/0.8061, allocations: 6.112 MB / 471.9 MB, free: 3.117 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02676/0.8329, allocations: 7.933 MB / 479.8 MB, free: 14.35 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001459/0.8344, allocations: 0.9319 MB / 480.7 MB, free: 13.6 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005809/0.8402, allocations: 1.229 MB / 482 MB, free: 12.38 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06784/0.9081, allocations: 18.82 MB / 0.489 GB, free: 9.496 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007494/0.9089, allocations: 19.8 kB / 0.4891 GB, free: 9.477 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004822/0.9137, allocations: 0.5096 MB / 0.4896 GB, free: 8.98 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001146/0.9149, allocations: 0.6621 MB / 0.4902 GB, free: 8.316 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05856/0.9735, allocations: 16.92 MB / 0.5067 GB, free: 7.395 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8492/1.823, allocations: 60.57 MB / 0.5659 GB, free: 114.3 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04788/1.871, allocations: 33.08 MB / 0.5982 GB, free: 86.08 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02957/1.9, allocations: 8.921 MB / 0.6069 GB, free: 85.35 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.515e-05/1.901, allocations: 72 kB / 0.607 GB, free: 85.31 MB / 458.8 MB Notification: Performance of pre-optimization done (n=370): time 7.053e-06/1.901, allocations: 0 / 0.607 GB, free: 85.31 MB / 458.8 MB Notification: Performance of matching and sorting (n=412): time 0.06127/1.962, allocations: 18.04 MB / 0.6246 GB, free: 80.25 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.586e-05/1.962, allocations: 97.23 kB / 0.6247 GB, free: 80.19 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01069/1.973, allocations: 4.519 MB / 0.6291 GB, free: 78.52 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008711/1.974, allocations: 91.73 kB / 0.6292 GB, free: 78.43 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004135/1.978, allocations: 5.379 MB / 0.6344 GB, free: 74.27 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002035/1.98, allocations: 1.431 MB / 0.6358 GB, free: 73.17 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007277/1.981, allocations: 140.5 kB / 0.636 GB, free: 73.06 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0004538/1.981, allocations: 0.5904 MB / 0.6365 GB, free: 72.63 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007533/1.989, allocations: 2.962 MB / 0.6394 GB, free: 71.5 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00997/1.999, allocations: 5.965 MB / 0.6453 GB, free: 66.39 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01025/2.009, allocations: 4.307 MB / 0.6495 GB, free: 64.38 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001274/2.009, allocations: 31.69 kB / 0.6495 GB, free: 64.38 MB / 458.8 MB Notification: Performance of matching and sorting (n=896) (initialization): time 0.02688/2.036, allocations: 9.801 MB / 0.6591 GB, free: 56.49 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 9.201e-05/2.036, allocations: 52 kB / 0.6591 GB, free: 56.44 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001715/2.036, allocations: 100 kB / 0.6592 GB, free: 56.34 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004089/2.04, allocations: 0.9511 MB / 0.6601 GB, free: 55.38 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01131/2.052, allocations: 1.638 MB / 0.6617 GB, free: 53.73 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0172/2.069, allocations: 9.684 MB / 0.6712 GB, free: 43.65 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008267/2.077, allocations: 419.3 kB / 0.6716 GB, free: 43.24 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001497/2.079, allocations: 360.1 kB / 0.6719 GB, free: 42.89 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 463 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (847): * Single equations (assignments): 842 * 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,59.4%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01064/2.09, allocations: 4.282 MB / 0.6761 GB, free: 38.59 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001673/2.091, allocations: 0.5452 MB / 0.6766 GB, free: 38.04 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01926/2.11, allocations: 6.734 MB / 0.6832 GB, free: 31.25 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.02e-05/2.111, allocations: 55.91 kB / 0.6833 GB, free: 31.2 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.703e-05/2.111, allocations: 12 kB / 0.6833 GB, free: 31.19 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.703e-05/2.111, allocations: 19.92 kB / 0.6833 GB, free: 31.17 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04633/2.157, allocations: 16.32 MB / 0.6992 GB, free: 14.81 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.377e-05/2.157, allocations: 4 kB / 0.6992 GB, free: 14.81 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006967/2.164, allocations: 0.7884 MB / 0.7 GB, free: 14.02 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003781/2.168, allocations: 0.7807 MB / 0.7008 GB, free: 13.22 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008748/2.169, allocations: 91.97 kB / 0.7009 GB, free: 13.13 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01537/2.184, allocations: 8.848 MB / 0.7095 GB, free: 3.887 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.851e-06/2.184, allocations: 7.938 kB / 0.7095 GB, free: 3.879 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02835/2.213, allocations: 10.39 MB / 0.7197 GB, free: 9.297 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004278/2.217, allocations: 1.113 MB / 0.7208 GB, free: 8.16 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002085/2.219, allocations: 72 kB / 0.7208 GB, free: 8.09 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005685/2.225, allocations: 231.8 kB / 0.721 GB, free: 7.863 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0013/2.226, allocations: 282.8 kB / 0.7213 GB, free: 7.586 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006385/2.227, allocations: 120 kB / 0.7214 GB, free: 7.469 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.009874/2.237, allocations: 3.375 MB / 0.7247 GB, free: 4.113 MB / 474.8 MB Notification: Performance of sort global known variables: time 7.42e-07/2.237, allocations: 4 kB / 0.7247 GB, free: 4.109 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01146/2.248, allocations: 1.928 MB / 0.7266 GB, free: 2.184 MB / 474.8 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 (393): * Single equations (assignments): 388 * 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,(8,59.4%) 38,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001311/2.25, allocations: 265.8 kB / 0.7269 GB, free: 1.922 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.02177/2.271, allocations: 7.862 MB / 0.7345 GB, free: 9.988 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.407e-05/2.272, allocations: 0 / 0.7345 GB, free: 9.988 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0112/2.283, allocations: 3.665 MB / 0.7381 GB, free: 6.246 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01098/2.294, allocations: 1.252 MB / 0.7393 GB, free: 5 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4085/2.702, allocations: 24.19 MB / 0.763 GB, free: 145.9 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01707/2.719, allocations: 7.406 MB / 0.7702 GB, free: 144.9 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00313/2.723, allocations: 480.5 kB / 0.7707 GB, free: 144.9 MB / 490.8 MB Notification: Performance of SimCode: time 1.422e-06/2.723, allocations: 0 / 0.7707 GB, free: 144.9 MB / 490.8 MB Notification: Performance of Templates: time 1.348/4.071, allocations: 445 MB / 1.205 GB, free: 84.36 MB / 0.4949 GB make -j1 -f Modelica_trunk_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_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSourceCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSourceCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSourceCalcHelperMain.cpp:29: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSourceFunctions.cpp:113:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp608 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSourceFunctions.cpp:113:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp608 = 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_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSourceCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSourceCalcHelperMain.o] Error 1