Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) 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.842/1.842, allocations: 194.8 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005322/0.0005324, allocations: 12 kB / 264.5 MB, free: 13.59 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1763/0.1769, allocations: 44.5 MB / 309 MB, free: 1.027 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5296/0.7065, allocations: 126.5 MB / 435.5 MB, free: 13.18 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004163/0.707, allocations: 109.8 kB / 435.6 MB, free: 13.12 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.655/2.362, allocations: 353.2 MB / 0.7703 GB, free: 53.66 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.717e-06/2.362, allocations: 2.406 kB / 0.7703 GB, free: 53.66 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0008787/2.363, allocations: 215.6 kB / 0.7705 GB, free: 53.64 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: 2742 * Number of variables: 2742 Notification: Performance of Generate backend data structure: time 0.04928/2.412, allocations: 10.1 MB / 0.7804 GB, free: 50.38 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.776e-05/2.412, allocations: 7.281 kB / 0.7804 GB, free: 50.38 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04051/2.452, allocations: 4.953 MB / 0.7853 GB, free: 49.82 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02754/2.48, allocations: 8.207 MB / 0.7933 GB, free: 47.38 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001355/2.481, allocations: 0.7085 MB / 0.794 GB, free: 47.07 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005148/2.487, allocations: 0.928 MB / 0.7949 GB, free: 46.77 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0566/2.543, allocations: 17.2 MB / 0.8117 GB, free: 35.12 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000563/2.544, allocations: 15.84 kB / 0.8117 GB, free: 35.11 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004564/2.549, allocations: 407.3 kB / 0.8121 GB, free: 34.73 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001093/2.55, allocations: 0.7108 MB / 0.8128 GB, free: 34.09 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04769/2.597, allocations: 15.81 MB / 0.8282 GB, free: 19.93 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5133/3.111, allocations: 55.3 MB / 0.8822 GB, free: 37.85 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03649/3.147, allocations: 19.32 MB / 0.9011 GB, free: 45.53 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07224/3.22, allocations: 24.87 MB / 0.9254 GB, free: 39.59 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001158/3.22, allocations: 96.53 kB / 0.9254 GB, free: 39.5 MB / 442.7 MB Notification: Performance of pre-optimization done (n=749): time 1.307e-05/3.22, allocations: 3.625 kB / 0.9255 GB, free: 39.5 MB / 442.7 MB Notification: Performance of matching and sorting (n=754): time 0.2121/3.432, allocations: 46.21 MB / 0.9706 GB, free: 17.91 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.612e-05/3.432, allocations: 116.1 kB / 0.9707 GB, free: 17.84 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008804/3.441, allocations: 3.57 MB / 0.9742 GB, free: 16.59 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002027/3.443, allocations: 125.7 kB / 0.9743 GB, free: 16.48 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002815/3.446, allocations: 3.437 MB / 0.9776 GB, free: 13.9 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004402/3.45, allocations: 2.478 MB / 0.9801 GB, free: 11.97 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001785/3.452, allocations: 124.9 kB / 0.9802 GB, free: 11.87 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.001068/3.453, allocations: 0.6077 MB / 0.9808 GB, free: 11.43 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01451/3.468, allocations: 5.098 MB / 0.9858 GB, free: 9.289 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01704/3.485, allocations: 6.375 MB / 0.992 GB, free: 4.996 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0207/3.506, allocations: 6.275 MB / 0.9981 GB, free: 15.87 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.579e-05/3.506, allocations: 8 kB / 0.9981 GB, free: 15.86 MB / 458.7 MB Notification: Performance of matching and sorting (n=942) (initialization): time 0.04908/3.555, allocations: 14.44 MB / 1.012 GB, free: 3.281 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.117e-05/3.555, allocations: 46.33 kB / 1.012 GB, free: 3.23 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001168/3.555, allocations: 38.11 kB / 1.012 GB, free: 3.195 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3787/3.934, allocations: 4.035 MB / 1.016 GB, free: 84.34 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01038/3.944, allocations: 1.182 MB / 1.017 GB, free: 84.34 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02453/3.969, allocations: 12.58 MB / 1.03 GB, free: 79.91 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008256/3.977, allocations: 366.5 kB / 1.03 GB, free: 79.91 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002456/3.98, allocations: 283.5 kB / 1.03 GB, free: 79.91 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 () * Number of clocked 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.01377/3.993, allocations: 3.864 MB / 1.034 GB, free: 79.79 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003205/3.997, allocations: 494.7 kB / 1.035 GB, free: 79.79 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04853/4.045, allocations: 14.34 MB / 1.049 GB, free: 79.44 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03928/4.085, allocations: 12.84 MB / 1.061 GB, free: 79.14 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.288e-05/4.085, allocations: 0 / 1.061 GB, free: 79.14 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001644/4.085, allocations: 36.34 kB / 1.061 GB, free: 79.14 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08204/4.167, allocations: 28.2 MB / 1.089 GB, free: 68.91 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000141/4.167, allocations: 2.281 kB / 1.089 GB, free: 68.91 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008349/4.175, allocations: 0.886 MB / 1.09 GB, free: 68.88 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01416/4.19, allocations: 3.954 MB / 1.093 GB, free: 67.7 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002069/4.192, allocations: 161.3 kB / 1.094 GB, free: 67.61 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02104/4.213, allocations: 12.48 MB / 1.106 GB, free: 59.65 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.928e-06/4.213, allocations: 3.438 kB / 1.106 GB, free: 59.65 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05978/4.273, allocations: 21.55 MB / 1.127 GB, free: 47.86 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006449/4.279, allocations: 1.732 MB / 1.128 GB, free: 46.34 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003188/4.282, allocations: 111.1 kB / 1.129 GB, free: 46.23 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006965/4.289, allocations: 300.4 kB / 1.129 GB, free: 46.02 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002951/4.292, allocations: 0.547 MB / 1.129 GB, free: 45.67 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001885/4.294, allocations: 200.7 kB / 1.13 GB, free: 45.5 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.005627/4.3, allocations: 2.448 MB / 1.132 GB, free: 43.46 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.713e-06/4.3, allocations: 0 / 1.132 GB, free: 43.46 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01075/4.311, allocations: 1.821 MB / 1.134 GB, free: 41.67 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 () * Number of clocked 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.003178/4.314, allocations: 0.6942 MB / 1.134 GB, free: 41.25 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.03511/4.349, allocations: 12.5 MB / 1.147 GB, free: 30.36 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.035e-06/4.349, allocations: 0 / 1.147 GB, free: 30.36 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01983/4.369, allocations: 6.485 MB / 1.153 GB, free: 24.74 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009008/4.378, allocations: 0.9054 MB / 1.154 GB, free: 24.04 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4331/4.811, allocations: 25.78 MB / 1.179 GB, free: 76.86 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02251/4.834, allocations: 6.642 MB / 1.186 GB, free: 75.98 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005018/4.839, allocations: 405.3 kB / 1.186 GB, free: 75.98 MB / 458.7 MB Notification: Performance of SimCode: time 1.343e-06/4.839, allocations: 3 kB / 1.186 GB, free: 75.98 MB / 458.7 MB Notification: Performance of Templates: time 2.17/7.009, allocations: 0.6019 GB / 1.788 GB, free: 63.63 MB / 490.7 MB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.makefile b'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=5 -DSUNDIALS_MINOR_VERSION=4 -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\nIn file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesFunctions.cpp:559:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp363 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0)));\n ^\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesFunctions.cpp:559:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp363 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0)));\n ^\n2 errors generated.\n: recipe for target \'OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesCalcHelperMain.o] Error 1\n'