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 2.126/2.126, allocations: 194.9 MB / 211.2 MB, free: 8.344 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.719e-05/2.71e-05, allocations: 0 / 258.8 MB, free: 8.672 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3043/0.3043, allocations: 44.5 MB / 303.3 MB, free: 12.76 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD): time 0.05071/0.3551, allocations: 29.11 MB / 332.4 MB, free: 0.4922 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02607/0.3812, allocations: 8.439 MB / 340.9 MB, free: 8.031 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008069/0.3893, allocations: 271.2 kB / 341.1 MB, free: 7.766 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008689/0.3981, allocations: 1.842 MB / 343 MB, free: 5.914 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01598/0.4141, allocations: 3.24 MB / 346.2 MB, free: 2.664 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008705/0.4229, allocations: 1.551 MB / 347.8 MB, free: 1.117 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.02997/0.4529, allocations: 11.5 MB / 359.3 MB, free: 5.598 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06189/0.5148, allocations: 20.7 MB / 380 MB, free: 0.8164 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01192/0.5268, allocations: 4.645 MB / 384.6 MB, free: 12.16 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01336/0.5402, allocations: 5.338 MB / 390 MB, free: 6.805 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006979/0.5473, allocations: 0.7691 MB / 390.7 MB, free: 6.035 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004304/0.5516, allocations: 488 kB / 391.2 MB, free: 5.559 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006137/0.5578, allocations: 2.467 MB / 393.7 MB, free: 3.082 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006608/0.5645, allocations: 1.121 MB / 394.8 MB, free: 1.961 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.04479/0.6093, allocations: 27.88 MB / 422.7 MB, free: 6 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.6094, allocations: 0 / 422.7 MB, free: 6 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.678e-06/0.6094, allocations: 0 / 422.7 MB, free: 6 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.001146/0.6106, allocations: 0 / 422.7 MB, free: 6 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: 3951 * Number of variables: 3951 Notification: Performance of Generate backend data structure: time 0.6174/1.228, allocations: 15.47 MB / 438.1 MB, free: 79.63 MB / 362.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.637e-05/1.228, allocations: 7.906 kB / 438.2 MB, free: 79.63 MB / 362.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1055/1.334, allocations: 9.629 MB / 447.8 MB, free: 73.41 MB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03006/1.364, allocations: 9.299 MB / 457.1 MB, free: 64.13 MB / 362.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001414/1.365, allocations: 1.067 MB / 458.1 MB, free: 63.07 MB / 362.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006551/1.372, allocations: 1.405 MB / 459.6 MB, free: 61.68 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07683/1.449, allocations: 23.36 MB / 482.9 MB, free: 38.24 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008032/1.449, allocations: 19.81 kB / 482.9 MB, free: 38.22 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005585/1.455, allocations: 0.5775 MB / 483.5 MB, free: 37.66 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00112/1.456, allocations: 0.8046 MB / 484.3 MB, free: 36.86 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06774/1.524, allocations: 22.13 MB / 0.4946 GB, free: 14.71 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2019/1.726, allocations: 75.18 MB / 0.568 GB, free: 2.539 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4109/2.137, allocations: 38.01 MB / 0.6051 GB, free: 111.4 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07334/2.21, allocations: 17.62 MB / 0.6223 GB, free: 103.7 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001859/2.211, allocations: 98.77 kB / 0.6224 GB, free: 103.6 MB / 442.8 MB Notification: Performance of pre-optimization done (n=587): time 1.363e-05/2.211, allocations: 0 / 0.6224 GB, free: 103.6 MB / 442.8 MB Notification: Performance of matching and sorting (n=595): time 0.2223/2.433, allocations: 36.46 MB / 0.658 GB, free: 83.25 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001317/2.433, allocations: 138.5 kB / 0.6581 GB, free: 83.1 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01947/2.453, allocations: 5.325 MB / 0.6633 GB, free: 77.76 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001616/2.454, allocations: 121.7 kB / 0.6635 GB, free: 77.64 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.006516/2.461, allocations: 5.823 MB / 0.6692 GB, free: 71.79 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.004003/2.465, allocations: 2.028 MB / 0.6711 GB, free: 69.78 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00199/2.467, allocations: 168 kB / 0.6713 GB, free: 69.61 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.001156/2.468, allocations: 0.6381 MB / 0.6719 GB, free: 68.96 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01659/2.485, allocations: 4.244 MB / 0.6761 GB, free: 64.71 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0196/2.504, allocations: 7.126 MB / 0.683 GB, free: 56.25 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02047/2.525, allocations: 5.677 MB / 0.6886 GB, free: 50.57 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001523/2.525, allocations: 28 kB / 0.6886 GB, free: 50.54 MB / 442.8 MB Notification: Performance of matching and sorting (n=1055) (initialization): time 0.05858/2.584, allocations: 13.99 MB / 0.7023 GB, free: 36.5 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001284/2.584, allocations: 44.94 kB / 0.7023 GB, free: 36.45 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002091/2.584, allocations: 92.84 kB / 0.7024 GB, free: 36.36 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0184/2.603, allocations: 2.779 MB / 0.7051 GB, free: 33.57 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01691/2.62, allocations: 1.696 MB / 0.7068 GB, free: 31.87 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08987/2.71, allocations: 30.29 MB / 0.7363 GB, free: 0.8008 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01467/2.724, allocations: 447.6 kB / 0.7368 GB, free: 372 kB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002762/2.727, allocations: 388 kB / 0.7371 GB, free: 15.98 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 427 * Number of states: 0 () * Number of discrete variables: 12 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],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 (885): * Single equations (assignments): 878 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 6 * 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: 6 {(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 1,(24,33.0%) 96} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.02282/2.75, allocations: 5.398 MB / 0.7424 GB, free: 10.57 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003963/2.754, allocations: 0.6405 MB / 0.743 GB, free: 9.922 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3789/3.133, allocations: 11.67 MB / 0.7544 GB, free: 140.5 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.973e-05/3.133, allocations: 59.12 kB / 0.7545 GB, free: 140.5 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001113/3.133, allocations: 29.81 kB / 0.7545 GB, free: 140.5 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000173/3.133, allocations: 30.05 kB / 0.7545 GB, free: 140.5 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08269/3.216, allocations: 24.54 MB / 0.7785 GB, free: 132.4 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001136/3.216, allocations: 3.969 kB / 0.7785 GB, free: 132.4 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01077/3.227, allocations: 0.8813 MB / 0.7794 GB, free: 132.4 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01325/3.24, allocations: 2.804 MB / 0.7821 GB, free: 131.6 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001375/3.242, allocations: 138.4 kB / 0.7822 GB, free: 131.5 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06518/3.307, allocations: 32.86 MB / 0.8143 GB, free: 110.8 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.009e-05/3.307, allocations: 15.75 kB / 0.8143 GB, free: 110.7 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04713/3.354, allocations: 17.92 MB / 0.8318 GB, free: 93.79 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005687/3.36, allocations: 1.586 MB / 0.8334 GB, free: 92.52 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003287/3.363, allocations: 116 kB / 0.8335 GB, free: 92.41 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007718/3.371, allocations: 329.6 kB / 0.8338 GB, free: 92.09 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002339/3.373, allocations: 0.4929 MB / 0.8343 GB, free: 91.6 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001396/3.375, allocations: 172.2 kB / 0.8345 GB, free: 91.43 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.01037/3.385, allocations: 4.01 MB / 0.8384 GB, free: 87.42 MB / 458.8 MB Notification: Performance of sort global known variables: time 2.224e-06/3.385, allocations: 6.719 kB / 0.8384 GB, free: 87.42 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.01389/3.399, allocations: 2.596 MB / 0.8409 GB, free: 84.82 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,quadraticLoadTorqueQS.phi,imc.inertiaRotor.w,imc.stator.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,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,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (452): * Single equations (assignments): 444 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(1,100.0%) 1,(24,33.0%) 96,(1,100.0%) 13,(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001832/3.401, allocations: 311 kB / 0.8412 GB, free: 84.53 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.03033/3.432, allocations: 11.98 MB / 0.8529 GB, free: 72.51 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.43e-05/3.432, allocations: 0 / 0.8529 GB, free: 72.51 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01855/3.45, allocations: 7.038 MB / 0.8598 GB, free: 65.44 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01238/3.463, allocations: 1.563 MB / 0.8613 GB, free: 63.87 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07028/3.533, allocations: 30.75 MB / 0.8913 GB, free: 33.02 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01865/3.552, allocations: 9.094 MB / 0.9002 GB, free: 23.89 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003863/3.556, allocations: 0.5189 MB / 0.9007 GB, free: 23.37 MB / 458.8 MB Notification: Performance of SimCode: time 1.903e-06/3.556, allocations: 0 / 0.9007 GB, free: 23.37 MB / 458.8 MB Notification: Performance of Templates: time 2.803/6.359, allocations: 0.723 GB / 1.624 GB, free: 147.9 MB / 490.8 MB 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 -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.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:29: ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YDFunctions.cpp:112:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp799 = 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:112:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp799 = 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