Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Itr|Iqs|loadInertiaM.phi|loadInertiaM.w|loadInertiaMQS.phi|loadInertiaMQS.w|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") Notification: Performance of loadModel(Modelica): time 2.139/2.139, allocations: 194.9 MB / 211.2 MB, free: 8.344 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.178e-05/3.171e-05, allocations: 7.984 kB / 258.8 MB, free: 8.676 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.31/0.31, allocations: 44.5 MB / 303.3 MB, free: 12.79 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.05251/0.3626, allocations: 29.69 MB / 333 MB, free: 15.92 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02637/0.389, allocations: 8.653 MB / 341.7 MB, free: 7.246 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007858/0.3969, allocations: 279.2 kB / 341.9 MB, free: 6.973 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008818/0.4058, allocations: 1.884 MB / 343.8 MB, free: 5.078 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01644/0.4223, allocations: 3.213 MB / 347 MB, free: 1.855 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008418/0.4308, allocations: 1.491 MB / 348.5 MB, free: 372 kB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.02465/0.4554, allocations: 9.215 MB / 357.7 MB, free: 7.133 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05248/0.508, allocations: 17.36 MB / 375.1 MB, free: 5.707 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01052/0.5185, allocations: 3.889 MB / 379 MB, free: 1.809 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01131/0.5299, allocations: 4.508 MB / 383.5 MB, free: 13.29 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005901/0.5359, allocations: 0.7105 MB / 384.2 MB, free: 12.57 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003659/0.5396, allocations: 412 kB / 384.6 MB, free: 12.17 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0046/0.5442, allocations: 2.016 MB / 386.6 MB, free: 10.15 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004936/0.5492, allocations: 0.9609 MB / 387.6 MB, free: 9.188 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03529/0.5845, allocations: 22.57 MB / 410.2 MB, free: 2.555 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.5846, allocations: 4 kB / 410.2 MB, free: 2.551 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.895e-06/0.5846, allocations: 0 / 410.2 MB, free: 2.551 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0007662/0.5854, allocations: 4 kB / 410.2 MB, free: 2.547 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: 3386 * Number of variables: 3386 Notification: Performance of Generate backend data structure: time 0.05569/0.6411, allocations: 12.83 MB / 423 MB, free: 5.609 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.611e-05/0.6412, allocations: 8.031 kB / 423 MB, free: 5.602 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5847/1.226, allocations: 7.284 MB / 430.3 MB, free: 83.7 MB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02371/1.25, allocations: 7.619 MB / 437.9 MB, free: 80.01 MB / 362.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001213/1.251, allocations: 0.9186 MB / 438.8 MB, free: 79.59 MB / 362.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005415/1.256, allocations: 1.209 MB / 440 MB, free: 79.2 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06467/1.321, allocations: 19.04 MB / 459.1 MB, free: 67.67 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007132/1.322, allocations: 23.75 kB / 459.1 MB, free: 67.65 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004325/1.326, allocations: 0.4991 MB / 459.6 MB, free: 67.16 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009328/1.327, allocations: 0.6881 MB / 460.3 MB, free: 66.48 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05226/1.379, allocations: 17.6 MB / 477.9 MB, free: 48.86 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1664/1.546, allocations: 63.93 MB / 0.5291 GB, free: 15.77 MB / 394.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.07782/1.624, allocations: 38.57 MB / 0.5668 GB, free: 4.434 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04099/1.665, allocations: 12.02 MB / 0.5785 GB, free: 8.402 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001271/1.665, allocations: 89.77 kB / 0.5786 GB, free: 8.305 MB / 442.8 MB Notification: Performance of pre-optimization done (n=413): time 1.445e-05/1.665, allocations: 0 / 0.5786 GB, free: 8.305 MB / 442.8 MB Notification: Performance of matching and sorting (n=423): time 0.3782/2.043, allocations: 20.44 MB / 0.5986 GB, free: 144.4 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.648e-05/2.043, allocations: 119.6 kB / 0.5987 GB, free: 144.3 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01065/2.054, allocations: 4.594 MB / 0.6032 GB, free: 142.6 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008213/2.055, allocations: 93.05 kB / 0.6033 GB, free: 142.5 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003813/2.059, allocations: 5.245 MB / 0.6084 GB, free: 138.4 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002021/2.061, allocations: 1.467 MB / 0.6098 GB, free: 137.3 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008618/2.062, allocations: 139.4 kB / 0.6099 GB, free: 137.2 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.0005395/2.062, allocations: 0.578 MB / 0.6105 GB, free: 136.8 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009651/2.072, allocations: 2.953 MB / 0.6134 GB, free: 135.6 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01292/2.085, allocations: 5.643 MB / 0.6189 GB, free: 131 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01443/2.1, allocations: 4.179 MB / 0.623 GB, free: 129.1 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001397/2.1, allocations: 25.88 kB / 0.623 GB, free: 129.1 MB / 442.8 MB Notification: Performance of matching and sorting (n=877) (initialization): time 0.03811/2.138, allocations: 9.804 MB / 0.6326 GB, free: 125 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001148/2.138, allocations: 44.12 kB / 0.6326 GB, free: 125 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002058/2.138, allocations: 92 kB / 0.6327 GB, free: 125 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007426/2.146, allocations: 1.142 MB / 0.6338 GB, free: 124.4 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01193/2.158, allocations: 1.535 MB / 0.6353 GB, free: 123.1 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0226/2.18, allocations: 12.74 MB / 0.6478 GB, free: 111.1 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008254/2.189, allocations: 371.1 kB / 0.6481 GB, free: 110.8 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001559/2.19, allocations: 343.3 kB / 0.6485 GB, free: 110.4 MB / 442.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 411 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (810): * Single equations (assignments): 801 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * 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: 4 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 1,(10,53.0%) 46} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01077/2.201, allocations: 4.273 MB / 0.6526 GB, free: 106.2 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001855/2.203, allocations: 0.5481 MB / 0.6532 GB, free: 105.7 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02194/2.225, allocations: 7.24 MB / 0.6602 GB, free: 98.34 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01149/2.236, allocations: 4.338 MB / 0.6645 GB, free: 93.95 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.871e-05/2.237, allocations: 12 kB / 0.6645 GB, free: 93.94 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001162/2.237, allocations: 19.92 kB / 0.6645 GB, free: 93.92 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04528/2.282, allocations: 17.21 MB / 0.6813 GB, free: 76.59 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.635e-05/2.282, allocations: 4.125 kB / 0.6813 GB, free: 76.58 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006294/2.288, allocations: 0.706 MB / 0.682 GB, free: 75.88 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005401/2.294, allocations: 1.17 MB / 0.6831 GB, free: 74.68 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008537/2.295, allocations: 104 kB / 0.6832 GB, free: 74.58 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0263/2.321, allocations: 16.25 MB / 0.6991 GB, free: 57.56 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.636e-06/2.321, allocations: 8.25 kB / 0.6991 GB, free: 57.55 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0316/2.353, allocations: 11.14 MB / 0.71 GB, free: 46.15 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004552/2.357, allocations: 1.142 MB / 0.7111 GB, free: 44.98 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00253/2.36, allocations: 80 kB / 0.7112 GB, free: 44.9 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005885/2.366, allocations: 227.9 kB / 0.7114 GB, free: 44.68 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001429/2.367, allocations: 308.1 kB / 0.7117 GB, free: 44.38 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007024/2.368, allocations: 124 kB / 0.7118 GB, free: 44.26 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.008679/2.377, allocations: 3.425 MB / 0.7152 GB, free: 40.85 MB / 442.8 MB Notification: Performance of sort global known variables: time 1.002e-06/2.377, allocations: 0 / 0.7152 GB, free: 40.85 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.01046/2.387, allocations: 1.983 MB / 0.7171 GB, free: 38.87 MB / 442.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smpmQS.inertiaRotor.w,smpmQS.rotorCage.port_p.reference.gamma,loadInertiaMQS.phi,smpm.inertiaRotor.w,smpm.stator.zeroInductor.i0,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (361): * Single equations (assignments): 351 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(10,53.0%) 46,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001382/2.389, allocations: 277.3 kB / 0.7174 GB, free: 38.61 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.02036/2.409, allocations: 7.937 MB / 0.7251 GB, free: 30.59 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 1.592e-05/2.409, allocations: 0 / 0.7251 GB, free: 30.59 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01142/2.421, allocations: 4.146 MB / 0.7292 GB, free: 26.37 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01119/2.432, allocations: 1.32 MB / 0.7305 GB, free: 25.05 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4195/2.851, allocations: 24.61 MB / 0.7545 GB, free: 132.8 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01653/2.868, allocations: 7.41 MB / 0.7617 GB, free: 131.9 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00301/2.871, allocations: 467.5 kB / 0.7622 GB, free: 131.9 MB / 442.8 MB Notification: Performance of SimCode: time 1.393e-06/2.871, allocations: 0 / 0.7622 GB, free: 131.9 MB / 442.8 MB Notification: Performance of Templates: time 1.413/4.284, allocations: 479.2 MB / 1.23 GB, free: 19.56 MB / 474.8 MB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.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_MainsCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsCalcHelperMain.cpp In file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsCalcHelperMain.cpp:29: ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsFunctions.cpp:221:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp707 = 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_MainsFunctions.cpp:221:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp707 = 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_MainsCalcHelperMain.o' failed make: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsCalcHelperMain.o] Error 1