Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD") Notification: Performance of loadModel(Modelica): time 1.828/1.828, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.954e-05/2.968e-05, allocations: 7.984 kB / 255.4 MB, free: 3.172 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07829/0.07834, allocations: 44.49 MB / 299.9 MB, free: 6.621 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4149/0.4933, allocations: 147.7 MB / 447.6 MB, free: 484 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002978/0.4937, allocations: 104.8 kB / 447.7 MB, free: 428 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.278/2.772, allocations: 468.1 MB / 0.8943 GB, free: 32.14 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.215e-06/2.772, allocations: 0 / 0.8943 GB, free: 32.14 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001007/2.773, allocations: 334.6 kB / 0.8946 GB, free: 32.09 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: 3951 * Number of variables: 3951 Notification: Performance of Generate backend data structure: time 0.05615/2.829, allocations: 13.57 MB / 0.9079 GB, free: 28 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/2.829, allocations: 7.375 kB / 0.9079 GB, free: 28 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04798/2.877, allocations: 6.712 MB / 0.9144 GB, free: 27.19 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03295/2.91, allocations: 11.47 MB / 0.9256 GB, free: 25.65 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001458/2.912, allocations: 1.042 MB / 0.9266 GB, free: 25.62 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006294/2.918, allocations: 1.353 MB / 0.928 GB, free: 25.61 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07083/2.989, allocations: 23.8 MB / 0.9512 GB, free: 5.473 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006247/2.99, allocations: 27.17 kB / 0.9512 GB, free: 5.449 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005602/2.995, allocations: 0.5817 MB / 0.9518 GB, free: 4.883 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001469/2.997, allocations: 0.9336 MB / 0.9527 GB, free: 4.039 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06126/3.058, allocations: 21.67 MB / 0.9739 GB, free: 0.5 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4851/3.543, allocations: 77.39 MB / 1.049 GB, free: 27.06 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03726/3.58, allocations: 30.55 MB / 1.079 GB, free: 5.082 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02228/3.603, allocations: 10.66 MB / 1.09 GB, free: 0.5352 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08023/3.683, allocations: 33.26 MB / 1.122 GB, free: 192 kB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000133/3.683, allocations: 127.4 kB / 1.122 GB, free: 88 kB / 458.7 MB Notification: Performance of pre-optimization done (n=1011): time 1.589e-05/3.683, allocations: 0.6562 kB / 1.122 GB, free: 88 kB / 458.7 MB Notification: Performance of matching and sorting (n=1019): time 0.423/4.106, allocations: 37.77 MB / 1.159 GB, free: 72.84 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001148/4.106, allocations: 169.2 kB / 1.159 GB, free: 72.74 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0106/4.117, allocations: 4.281 MB / 1.164 GB, free: 72.4 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001988/4.119, allocations: 166.5 kB / 1.164 GB, free: 72.37 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003473/4.123, allocations: 4.91 MB / 1.169 GB, free: 69.8 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004675/4.127, allocations: 3.341 MB / 1.172 GB, free: 67.63 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002051/4.129, allocations: 177.2 kB / 1.172 GB, free: 67.63 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001183/4.131, allocations: 0.7034 MB / 1.173 GB, free: 67.3 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01448/4.145, allocations: 6.657 MB / 1.179 GB, free: 67.28 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01701/4.162, allocations: 8.381 MB / 1.187 GB, free: 65.59 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01746/4.18, allocations: 7.961 MB / 1.195 GB, free: 65.46 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.199e-05/4.18, allocations: 12.88 kB / 1.195 GB, free: 65.46 MB / 474.7 MB Notification: Performance of matching and sorting (n=1251) (initialization): time 0.05039/4.23, allocations: 20.62 MB / 1.215 GB, free: 62.3 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.164e-05/4.23, allocations: 25.53 kB / 1.215 GB, free: 62.3 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001053/4.23, allocations: 43.5 kB / 1.215 GB, free: 62.3 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02555/4.256, allocations: 8.442 MB / 1.224 GB, free: 59.79 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008766/4.265, allocations: 1.394 MB / 1.225 GB, free: 59.74 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04418/4.309, allocations: 27.78 MB / 1.252 GB, free: 42.88 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008431/4.318, allocations: 421.9 kB / 1.252 GB, free: 42.75 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00252/4.32, allocations: 376.8 kB / 1.253 GB, free: 42.67 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 199 * Number of states: 0 () * Number of discrete variables: 12 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStepYDQS[1].y,booleanStepYDQS[2].y,booleanStepYDQS[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (727): * Single equations (assignments): 698 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 8 * 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: 5 {(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 13,(1,100.0%) 1} * Non-linear torn systems: 3 {6 9,6 9,46 263} Notification: Performance of prepare postOptimizeDAE: time 0.003976/4.324, allocations: 0.5702 MB / 1.253 GB, free: 42.27 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002829/4.327, allocations: 0.6907 MB / 1.254 GB, free: 41.9 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04994/4.377, allocations: 21.01 MB / 1.275 GB, free: 29.95 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003404/4.377, allocations: 243.9 kB / 1.275 GB, free: 29.74 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.958e-05/4.377, allocations: 12 kB / 1.275 GB, free: 29.73 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001657/4.378, allocations: 40.31 kB / 1.275 GB, free: 29.73 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1083/4.486, allocations: 40.52 MB / 1.314 GB, free: 13.91 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001426/4.486, allocations: 14.55 kB / 1.314 GB, free: 13.91 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006883/4.493, allocations: 0.9709 MB / 1.315 GB, free: 13.16 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.363/4.856, allocations: 8.609 MB / 1.324 GB, free: 90.77 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002344/4.858, allocations: 223.9 kB / 1.324 GB, free: 90.77 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05071/4.909, allocations: 32.02 MB / 1.355 GB, free: 80.04 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.364e-06/4.909, allocations: 5.094 kB / 1.355 GB, free: 80.04 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0727/4.982, allocations: 31.28 MB / 1.386 GB, free: 76.88 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.008306/4.99, allocations: 2.354 MB / 1.388 GB, free: 75.93 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003749/4.994, allocations: 165.7 kB / 1.388 GB, free: 75.82 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007534/5.002, allocations: 393.8 kB / 1.389 GB, free: 75.71 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003406/5.005, allocations: 0.7891 MB / 1.389 GB, free: 75.54 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002293/5.007, allocations: 269 kB / 1.39 GB, free: 75.48 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.008399/5.016, allocations: 3.262 MB / 1.393 GB, free: 74.24 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.209e-06/5.016, allocations: 0 / 1.393 GB, free: 74.24 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01481/5.031, allocations: 2.648 MB / 1.395 GB, free: 73.96 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 10 (imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.zeroInductor.i0,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 12 (booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStepYDQS[1].y,booleanStepYDQS[2].y,booleanStepYDQS[3].y,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (510): * Single equations (assignments): 480 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 13,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 3 {6 9,6 9,46 263} Notification: Performance of Backend phase and start with SimCode phase: time 0.003129/5.034, allocations: 0.7321 MB / 1.396 GB, free: 73.7 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.04061/5.075, allocations: 17.41 MB / 1.413 GB, free: 66.55 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.552e-06/5.075, allocations: 0 / 1.413 GB, free: 66.55 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02504/5.1, allocations: 10.12 MB / 1.423 GB, free: 61.01 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01121/5.111, allocations: 1.584 MB / 1.425 GB, free: 59.81 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07587/5.187, allocations: 26.81 MB / 1.451 GB, free: 35.97 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02308/5.21, allocations: 9.233 MB / 1.46 GB, free: 28.99 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003939/5.214, allocations: 0.4907 MB / 1.46 GB, free: 28.53 MB / 490.7 MB Notification: Performance of SimCode: time 2.49e-06/5.214, allocations: 0 / 1.46 GB, free: 28.53 MB / 490.7 MB Notification: Performance of Templates: time 3.313/8.527, allocations: 1.044 GB / 2.505 GB, free: 68.03 MB / 0.5105 GB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.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@2/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YDCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YDCalcHelperMain.cpp In file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YDCalcHelperMain.cpp:28: ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YDFunctions.cpp:417:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp250 = 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.InductionMachines.IMC_YDFunctions.cpp:417:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp250 = 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.InductionMachines.IMC_YDCalcHelperMain.o' failed make: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YDCalcHelperMain.o] Error 1