Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|Ptr|Pqs|smee.excitation.electroMagneticConverter.Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee.stator.strayReluctance.port_p.Phi.im|smee.stator.strayReluctance.port_p.Phi.re|smeeQS.short.port_p.reference.gamma",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") Notification: Performance of loadModel(Modelica): time 2.159/2.159, allocations: 194.9 MB / 211.2 MB, free: 8.348 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.608e-05/3.614e-05, allocations: 4 kB / 258.8 MB, free: 8.676 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3628/0.3629, allocations: 44.5 MB / 303.3 MB, free: 12.78 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.05729/0.4202, allocations: 32.74 MB / 336.1 MB, free: 12.86 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.03211/0.4524, allocations: 9.589 MB / 345.6 MB, free: 3.246 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009934/0.4624, allocations: 327.1 kB / 346 MB, free: 2.926 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01269/0.4751, allocations: 2.005 MB / 348 MB, free: 0.9102 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02089/0.4961, allocations: 3.509 MB / 351.5 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01109/0.5072, allocations: 1.64 MB / 353.1 MB, free: 11.75 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0255/0.5327, allocations: 7.987 MB / 361.1 MB, free: 3.754 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04518/0.578, allocations: 15.59 MB / 376.7 MB, free: 4.094 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008651/0.5867, allocations: 3.464 MB / 380.2 MB, free: 0.6211 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01019/0.5969, allocations: 4.134 MB / 384.3 MB, free: 12.47 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005393/0.6024, allocations: 0.6871 MB / 385 MB, free: 11.79 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003229/0.6057, allocations: 372 kB / 385.3 MB, free: 11.42 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004788/0.6105, allocations: 1.844 MB / 387.2 MB, free: 9.57 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005122/0.6157, allocations: 0.875 MB / 388.1 MB, free: 8.695 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03306/0.6488, allocations: 20.13 MB / 408.2 MB, free: 4.508 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.6489, allocations: 0 / 408.2 MB, free: 4.508 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.655e-06/0.6489, allocations: 0 / 408.2 MB, free: 4.508 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0007114/0.6496, allocations: 0 / 408.2 MB, free: 4.508 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: 3109 * Number of variables: 3109 Notification: Performance of Generate backend data structure: time 0.04919/0.6989, allocations: 11.51 MB / 419.7 MB, free: 8.898 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.39e-05/0.6989, allocations: 8.031 kB / 419.7 MB, free: 8.891 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05399/0.7529, allocations: 6.053 MB / 425.8 MB, free: 2.816 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.5735/1.326, allocations: 6.876 MB / 432.6 MB, free: 84.3 MB / 362.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001287/1.328, allocations: 0.8389 MB / 433.5 MB, free: 83.92 MB / 362.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005147/1.333, allocations: 1.111 MB / 434.6 MB, free: 83.56 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05844/1.391, allocations: 17 MB / 451.6 MB, free: 75.91 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005923/1.392, allocations: 19.52 kB / 451.6 MB, free: 75.9 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004137/1.396, allocations: 472.3 kB / 452.1 MB, free: 75.54 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008795/1.397, allocations: 0.61 MB / 452.7 MB, free: 75.43 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04912/1.446, allocations: 15.51 MB / 468.2 MB, free: 60.48 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1392/1.586, allocations: 58.75 MB / 0.5146 GB, free: 408 kB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0367/1.622, allocations: 20.85 MB / 0.5349 GB, free: 8.957 MB / 394.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03201/1.654, allocations: 9.774 MB / 0.5445 GB, free: 15.13 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.072e-05/1.655, allocations: 69.56 kB / 0.5446 GB, free: 15.05 MB / 410.8 MB Notification: Performance of pre-optimization done (n=327): time 7.584e-06/1.655, allocations: 0 / 0.5446 GB, free: 15.05 MB / 410.8 MB Notification: Performance of matching and sorting (n=354): time 0.06443/1.719, allocations: 17.48 MB / 0.5616 GB, free: 13.28 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001079/1.719, allocations: 116.4 kB / 0.5617 GB, free: 13.15 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01428/1.734, allocations: 4.768 MB / 0.5664 GB, free: 8.398 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008343/1.734, allocations: 81.7 kB / 0.5665 GB, free: 8.312 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005887/1.74, allocations: 5.111 MB / 0.5715 GB, free: 3.18 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002337/1.743, allocations: 1.244 MB / 0.5727 GB, free: 1.945 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000991/1.744, allocations: 143.9 kB / 0.5728 GB, free: 1.805 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.000687/1.744, allocations: 0.5879 MB / 0.5734 GB, free: 1.207 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.3102/2.055, allocations: 2.81 MB / 0.5761 GB, free: 133.9 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01108/2.066, allocations: 5.821 MB / 0.5818 GB, free: 129.2 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01031/2.076, allocations: 4.071 MB / 0.5858 GB, free: 127.4 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001205/2.076, allocations: 31.62 kB / 0.5858 GB, free: 127.4 MB / 426.8 MB Notification: Performance of matching and sorting (n=877) (initialization): time 0.0281/2.105, allocations: 9.559 MB / 0.5952 GB, free: 123.6 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001025/2.105, allocations: 50.81 kB / 0.5952 GB, free: 123.6 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002023/2.105, allocations: 101.3 kB / 0.5953 GB, free: 123.6 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004173/2.109, allocations: 0.9444 MB / 0.5962 GB, free: 123.4 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01277/2.122, allocations: 1.602 MB / 0.5978 GB, free: 123.2 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02334/2.145, allocations: 9.945 MB / 0.6075 GB, free: 116.4 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009734/2.155, allocations: 442 kB / 0.6079 GB, free: 116.2 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001599/2.157, allocations: 369.1 kB / 0.6083 GB, free: 116.2 MB / 426.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 466 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (825): * Single equations (assignments): 817 * 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: 3 * 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: 3 {(8,67.2%) 26,(2,100.0%) 8,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01065/2.167, allocations: 3.798 MB / 0.612 GB, free: 114.3 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001817/2.169, allocations: 0.518 MB / 0.6125 GB, free: 114.3 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01918/2.189, allocations: 6.114 MB / 0.6185 GB, free: 111.7 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008929/2.198, allocations: 3.213 MB / 0.6216 GB, free: 108.9 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.141e-05/2.198, allocations: 12 kB / 0.6216 GB, free: 108.9 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001369/2.198, allocations: 21.84 kB / 0.6216 GB, free: 108.9 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05182/2.25, allocations: 15.04 MB / 0.6363 GB, free: 95.15 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.127e-05/2.25, allocations: 4 kB / 0.6363 GB, free: 95.14 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007146/2.257, allocations: 0.6292 MB / 0.6369 GB, free: 94.52 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005625/2.263, allocations: 0.9052 MB / 0.6378 GB, free: 93.6 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008652/2.263, allocations: 75.98 kB / 0.6379 GB, free: 93.52 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0217/2.285, allocations: 13.09 MB / 0.6507 GB, free: 79.9 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.592e-06/2.285, allocations: 8.062 kB / 0.6507 GB, free: 79.89 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02351/2.309, allocations: 9.62 MB / 0.6601 GB, free: 70.28 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003826/2.313, allocations: 1.046 MB / 0.6611 GB, free: 69.21 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00198/2.315, allocations: 68 kB / 0.6612 GB, free: 69.14 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005339/2.32, allocations: 216.2 kB / 0.6614 GB, free: 68.93 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001022/2.321, allocations: 258.5 kB / 0.6616 GB, free: 68.68 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000352/2.321, allocations: 107.9 kB / 0.6617 GB, free: 68.57 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.008727/2.33, allocations: 3.512 MB / 0.6652 GB, free: 65.08 MB / 426.8 MB Notification: Performance of sort global known variables: time 9.32e-07/2.33, allocations: 3.938 kB / 0.6652 GB, free: 65.07 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.01012/2.34, allocations: 1.84 MB / 0.667 GB, free: 63.24 MB / 426.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (smee.phiMechanical,smee.stator.zeroInductor.i0,smee.stator.core.Phi.im,smee.excitation.electroMagneticConverter.Phi.re,smeeQS.short.port_p.reference.gamma,mechanicalPowerSensorQS.relSpeedSensor.phi_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (309): * Single equations (assignments): 300 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 8,(1,100.0%) 4,(1,100.0%) 8,(3,77.8%) 4,(8,65.6%) 26} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001192/2.342, allocations: 267.8 kB / 0.6672 GB, free: 62.99 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.01953/2.361, allocations: 7.262 MB / 0.6743 GB, free: 55.67 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 1.182e-05/2.361, allocations: 0 / 0.6743 GB, free: 55.67 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.009824/2.371, allocations: 3.514 MB / 0.6777 GB, free: 52.09 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008365/2.38, allocations: 1.082 MB / 0.6788 GB, free: 51.02 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05053/2.43, allocations: 21.86 MB / 0.7001 GB, free: 29.05 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01265/2.443, allocations: 6.647 MB / 0.7066 GB, free: 22.36 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002831/2.446, allocations: 451.3 kB / 0.7071 GB, free: 21.92 MB / 426.8 MB Notification: Performance of SimCode: time 1.623e-06/2.446, allocations: 0 / 0.7071 GB, free: 21.92 MB / 426.8 MB Notification: Performance of Templates: time 1.455/3.901, allocations: 373.8 MB / 1.072 GB, free: 142.4 MB / 458.8 MB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.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.SMEE_GeneratorCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorCalcHelperMain.cpp In file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorCalcHelperMain.cpp:29: ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorFunctions.cpp:221:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp609 = 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.SMEE_GeneratorFunctions.cpp:221:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp609 = 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.SMEE_GeneratorCalcHelperMain.o' failed make: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorCalcHelperMain.o] Error 1