Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200000,variableFilter="",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses") Notification: Performance of loadModel(Modelica): time 1.846/1.846, allocations: 194.9 MB / 208.4 MB, free: 3.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.679e-05/2.698e-05, allocations: 0 / 255.4 MB, free: 3.152 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07766/0.07772, allocations: 44.5 MB / 299.9 MB, free: 6.59 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3936/0.4714, allocations: 126.4 MB / 426.3 MB, free: 5.305 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000323/0.4717, allocations: 100.8 kB / 426.4 MB, free: 5.25 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.49/1.962, allocations: 352.9 MB / 0.7611 GB, free: 42.11 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.501e-06/1.962, allocations: 4 kB / 0.7611 GB, free: 42.11 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007127/1.963, allocations: 224.3 kB / 0.7613 GB, free: 42.07 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2742 * Number of variables: 2742 Notification: Performance of Generate backend data structure: time 0.03869/2.001, allocations: 9.562 MB / 0.7706 GB, free: 35.35 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/2.001, allocations: 12.03 kB / 0.7706 GB, free: 35.34 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03587/2.037, allocations: 4.92 MB / 0.7754 GB, free: 30.45 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02324/2.061, allocations: 8.172 MB / 0.7834 GB, free: 22.31 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001052/2.062, allocations: 0.7085 MB / 0.7841 GB, free: 21.61 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004347/2.066, allocations: 0.9205 MB / 0.785 GB, free: 20.7 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05187/2.118, allocations: 16.81 MB / 0.8014 GB, free: 3.621 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004518/2.119, allocations: 11.91 kB / 0.8014 GB, free: 3.609 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003972/2.123, allocations: 407.8 kB / 0.8018 GB, free: 3.227 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001237/2.124, allocations: 0.7108 MB / 0.8025 GB, free: 2.512 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04419/2.168, allocations: 15.42 MB / 0.8176 GB, free: 3.086 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.414/2.582, allocations: 55.31 MB / 0.8716 GB, free: 45.42 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02721/2.609, allocations: 19.12 MB / 0.8903 GB, free: 32.89 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01623/2.626, allocations: 7.54 MB / 0.8976 GB, free: 29.56 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05804/2.684, allocations: 24.89 MB / 0.9219 GB, free: 16.95 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.462e-05/2.684, allocations: 102 kB / 0.922 GB, free: 16.86 MB / 426.7 MB Notification: Performance of pre-optimization done (n=749): time 1.3e-05/2.684, allocations: 0 / 0.922 GB, free: 16.86 MB / 426.7 MB Notification: Performance of matching and sorting (n=754): time 0.06636/2.75, allocations: 25.11 MB / 0.9466 GB, free: 5.719 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.723e-05/2.75, allocations: 119.2 kB / 0.9467 GB, free: 5.645 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007625/2.758, allocations: 3.175 MB / 0.9498 GB, free: 4.027 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001563/2.76, allocations: 124.6 kB / 0.9499 GB, free: 3.902 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002362/2.762, allocations: 3.431 MB / 0.9532 GB, free: 0.832 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004261/2.766, allocations: 2.48 MB / 0.9557 GB, free: 14.59 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001715/2.768, allocations: 124 kB / 0.9558 GB, free: 14.46 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.001088/2.769, allocations: 0.6093 MB / 0.9564 GB, free: 13.93 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01247/2.782, allocations: 5.016 MB / 0.9613 GB, free: 9.445 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01469/2.796, allocations: 6.226 MB / 0.9673 GB, free: 3.453 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02157/2.818, allocations: 6.432 MB / 0.9736 GB, free: 15.12 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.007e-05/2.818, allocations: 8 kB / 0.9736 GB, free: 15.11 MB / 458.7 MB Notification: Performance of matching and sorting (n=942) (initialization): time 0.04044/2.859, allocations: 14.17 MB / 0.9875 GB, free: 2.719 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.859e-05/2.859, allocations: 45.7 kB / 0.9875 GB, free: 2.668 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.285e-05/2.859, allocations: 31.28 kB / 0.9875 GB, free: 2.641 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3084/3.167, allocations: 4.111 MB / 0.9916 GB, free: 83.96 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007278/3.175, allocations: 1.178 MB / 0.9927 GB, free: 83.96 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01957/3.194, allocations: 12.53 MB / 1.005 GB, free: 79.52 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006396/3.201, allocations: 364 kB / 1.005 GB, free: 79.52 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002198/3.203, allocations: 280.9 kB / 1.006 GB, free: 79.52 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 141 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (637): * Single equations (assignments): 560 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 69 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 6} * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,6 9,12 86} Notification: Performance of prepare postOptimizeDAE: time 0.003523/3.206, allocations: 446.6 kB / 1.006 GB, free: 79.41 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002533/3.209, allocations: 498.3 kB / 1.006 GB, free: 79.41 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03864/3.248, allocations: 14.17 MB / 1.02 GB, free: 79.07 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03072/3.278, allocations: 12.68 MB / 1.033 GB, free: 78.78 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.256e-05/3.279, allocations: 0 / 1.033 GB, free: 78.78 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001317/3.279, allocations: 37.8 kB / 1.033 GB, free: 78.78 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06801/3.347, allocations: 28.03 MB / 1.06 GB, free: 72.65 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001087/3.347, allocations: 0 / 1.06 GB, free: 72.65 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005804/3.353, allocations: 0.8908 MB / 1.061 GB, free: 72.63 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01075/3.363, allocations: 3.918 MB / 1.065 GB, free: 71.45 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001724/3.365, allocations: 160.2 kB / 1.065 GB, free: 71.36 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01681/3.382, allocations: 12.42 MB / 1.077 GB, free: 63.46 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.685e-06/3.382, allocations: 4.969 kB / 1.077 GB, free: 63.46 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04664/3.429, allocations: 21.44 MB / 1.098 GB, free: 51.66 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005355/3.434, allocations: 1.727 MB / 1.1 GB, free: 50.1 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002498/3.437, allocations: 111.3 kB / 1.1 GB, free: 49.99 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005301/3.442, allocations: 300.1 kB / 1.1 GB, free: 49.78 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00242/3.445, allocations: 0.5485 MB / 1.101 GB, free: 49.43 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001712/3.446, allocations: 201.8 kB / 1.101 GB, free: 49.25 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.005594/3.452, allocations: 2.409 MB / 1.103 GB, free: 47.11 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.91e-07/3.452, allocations: 0 / 1.103 GB, free: 47.11 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01026/3.462, allocations: 1.825 MB / 1.105 GB, free: 45.31 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,PIQS.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (480): * Single equations (assignments): 404 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 69 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 6} * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,6 9,12 86} Notification: Performance of Backend phase and start with SimCode phase: time 0.003078/3.465, allocations: 0.7496 MB / 1.106 GB, free: 44.84 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02724/3.493, allocations: 12.23 MB / 1.118 GB, free: 33.86 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.127e-06/3.493, allocations: 1.312 kB / 1.118 GB, free: 33.86 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01523/3.508, allocations: 6.364 MB / 1.124 GB, free: 28.21 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006617/3.515, allocations: 0.8978 MB / 1.125 GB, free: 27.51 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05609/3.571, allocations: 19.24 MB / 1.144 GB, free: 10.46 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01468/3.586, allocations: 6.644 MB / 1.15 GB, free: 5.348 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003291/3.589, allocations: 398.8 kB / 1.15 GB, free: 4.984 MB / 458.7 MB Notification: Performance of SimCode: time 3.296e-06/3.589, allocations: 0 / 1.15 GB, free: 4.984 MB / 458.7 MB Notification: Performance of Templates: time 1.979/5.568, allocations: 0.6011 GB / 1.751 GB, free: 81.96 MB / 490.7 MB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.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/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -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_withLossesCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesCalcHelperMain.cpp In file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesCalcHelperMain.cpp:28: ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesFunctions.cpp:559:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp363 = 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_withLossesFunctions.cpp:559:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp363 = 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_withLossesCalcHelperMain.o' failed make: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesCalcHelperMain.o] Error 1