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.844/1.844, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.381e-05/4.408e-05, allocations: 6.266 kB / 255.4 MB, free: 3.18 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08217/0.08224, allocations: 44.5 MB / 299.9 MB, free: 6.621 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3934/0.4757, allocations: 126.4 MB / 426.3 MB, free: 5.363 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002672/0.476, allocations: 97.5 kB / 426.4 MB, free: 5.34 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.549/2.025, allocations: 352.9 MB / 0.761 GB, free: 42.23 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.295e-06/2.025, allocations: 0 / 0.761 GB, free: 42.23 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006565/2.025, allocations: 230.5 kB / 0.7613 GB, free: 42.19 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.03875/2.064, allocations: 9.557 MB / 0.7706 GB, free: 35.46 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.473e-05/2.064, allocations: 12.03 kB / 0.7706 GB, free: 35.45 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0349/2.099, allocations: 4.917 MB / 0.7754 GB, free: 30.56 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02326/2.122, allocations: 8.171 MB / 0.7834 GB, free: 22.43 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001006/2.123, allocations: 0.7105 MB / 0.7841 GB, free: 21.73 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00426/2.128, allocations: 0.9229 MB / 0.785 GB, free: 20.81 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05149/2.179, allocations: 16.92 MB / 0.8015 GB, free: 3.621 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004484/2.18, allocations: 23.83 kB / 0.8015 GB, free: 3.598 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003946/2.184, allocations: 403.7 kB / 0.8019 GB, free: 3.215 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00117/2.185, allocations: 0.7067 MB / 0.8026 GB, free: 2.508 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3229/2.508, allocations: 15.54 MB / 0.8178 GB, free: 39.32 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1251/2.633, allocations: 55.3 MB / 0.8718 GB, free: 27.56 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02765/2.661, allocations: 19.19 MB / 0.8905 GB, free: 15.01 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01571/2.676, allocations: 7.53 MB / 0.8979 GB, free: 11.67 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06321/2.74, allocations: 25.13 MB / 0.9224 GB, free: 0 / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001523/2.74, allocations: 104 kB / 0.9225 GB, free: 15.91 MB / 426.7 MB Notification: Performance of pre-optimization done (n=749): time 1.318e-05/2.74, allocations: 2.953 kB / 0.9225 GB, free: 15.91 MB / 426.7 MB Notification: Performance of matching and sorting (n=754): time 0.09288/2.833, allocations: 26.25 MB / 0.9482 GB, free: 13.39 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001203/2.833, allocations: 120.2 kB / 0.9483 GB, free: 13.26 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008457/2.841, allocations: 3.173 MB / 0.9514 GB, free: 10.44 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001608/2.843, allocations: 125.7 kB / 0.9515 GB, free: 10.31 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003666/2.847, allocations: 3.42 MB / 0.9548 GB, free: 7.227 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004623/2.851, allocations: 2.482 MB / 0.9573 GB, free: 4.926 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001732/2.853, allocations: 126.1 kB / 0.9574 GB, free: 4.805 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.001176/2.854, allocations: 0.6083 MB / 0.958 GB, free: 4.273 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01278/2.867, allocations: 5.016 MB / 0.9629 GB, free: 15.78 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01491/2.882, allocations: 6.268 MB / 0.969 GB, free: 9.742 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01524/2.897, allocations: 6.077 MB / 0.9749 GB, free: 4.508 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.086e-05/2.898, allocations: 8 kB / 0.9749 GB, free: 4.5 MB / 458.7 MB Notification: Performance of matching and sorting (n=942) (initialization): time 0.3338/3.231, allocations: 14.26 MB / 0.9889 GB, free: 81.09 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.079e-05/3.231, allocations: 45.08 kB / 0.9889 GB, free: 81.05 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001031/3.232, allocations: 31.44 kB / 0.9889 GB, free: 81.05 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01234/3.244, allocations: 4.001 MB / 0.9928 GB, free: 80.98 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007204/3.251, allocations: 1.19 MB / 0.994 GB, free: 80.98 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01834/3.27, allocations: 12.53 MB / 1.006 GB, free: 76.52 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006833/3.276, allocations: 364 kB / 1.007 GB, free: 76.52 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002088/3.279, allocations: 286.5 kB / 1.007 GB, free: 76.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.003513/3.282, allocations: 447.4 kB / 1.007 GB, free: 76.42 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002448/3.285, allocations: 494.4 kB / 1.008 GB, free: 76.42 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03701/3.322, allocations: 14.17 MB / 1.022 GB, free: 76.06 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03098/3.353, allocations: 12.68 MB / 1.034 GB, free: 75.76 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.617e-05/3.353, allocations: 2.312 kB / 1.034 GB, free: 75.76 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001356/3.353, allocations: 30.8 kB / 1.034 GB, free: 75.76 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06769/3.421, allocations: 28.05 MB / 1.061 GB, free: 65.92 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001035/3.421, allocations: 2.438 kB / 1.061 GB, free: 65.92 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00617/3.427, allocations: 0.8873 MB / 1.062 GB, free: 65.89 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01079/3.438, allocations: 3.921 MB / 1.066 GB, free: 64.71 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001715/3.44, allocations: 164 kB / 1.066 GB, free: 64.62 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01775/3.457, allocations: 12.42 MB / 1.078 GB, free: 56.73 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.858e-06/3.457, allocations: 0 / 1.078 GB, free: 56.73 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04606/3.503, allocations: 21.44 MB / 1.099 GB, free: 40.38 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005341/3.509, allocations: 1.735 MB / 1.101 GB, free: 38.81 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002456/3.511, allocations: 105.5 kB / 1.101 GB, free: 38.71 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005325/3.517, allocations: 302.1 kB / 1.101 GB, free: 38.5 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002441/3.519, allocations: 0.5486 MB / 1.102 GB, free: 38.14 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001655/3.521, allocations: 200.8 kB / 1.102 GB, free: 37.97 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00549/3.526, allocations: 2.409 MB / 1.104 GB, free: 35.83 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.15e-06/3.526, allocations: 2.734 kB / 1.104 GB, free: 35.83 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01012/3.537, allocations: 1.827 MB / 1.106 GB, free: 34.03 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.003193/3.54, allocations: 0.7467 MB / 1.107 GB, free: 33.55 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02728/3.567, allocations: 12.35 MB / 1.119 GB, free: 22.48 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.756e-06/3.567, allocations: 0 / 1.119 GB, free: 22.48 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0153/3.582, allocations: 6.402 MB / 1.125 GB, free: 16.78 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006846/3.589, allocations: 0.8962 MB / 1.126 GB, free: 16.07 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3422/3.932, allocations: 19.26 MB / 1.145 GB, free: 84.31 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01677/3.948, allocations: 6.641 MB / 1.151 GB, free: 83.43 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003372/3.952, allocations: 406.2 kB / 1.152 GB, free: 83.43 MB / 458.7 MB Notification: Performance of SimCode: time 2.336e-06/3.952, allocations: 0 / 1.152 GB, free: 83.43 MB / 458.7 MB Notification: Performance of Templates: time 1.65/5.601, allocations: 0.6019 GB / 1.754 GB, free: 62.1 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@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_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