Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.775/1.775, allocations: 194.9 MB / 211.7 MB, free: 2.98 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000366/0.0003661, allocations: 12 kB / 264 MB, free: 13.54 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08305/0.08344, allocations: 44.5 MB / 308.5 MB, free: 0.9688 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3982/0.4817, allocations: 126.5 MB / 435 MB, free: 14.7 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003281/0.4821, allocations: 106.8 kB / 435.1 MB, free: 14.64 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.477/1.959, allocations: 353.2 MB / 0.7698 GB, free: 53.02 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.992e-06/1.959, allocations: 4 kB / 0.7698 GB, free: 53.02 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0006911/1.96, allocations: 221.7 kB / 0.77 GB, free: 53 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.04096/2.001, allocations: 10.1 MB / 0.7799 GB, free: 49.73 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/2.001, allocations: 7.531 kB / 0.7799 GB, free: 49.73 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03612/2.037, allocations: 4.953 MB / 0.7847 GB, free: 49.18 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02323/2.061, allocations: 8.192 MB / 0.7927 GB, free: 47.27 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001031/2.062, allocations: 0.7155 MB / 0.7934 GB, free: 46.95 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0043/2.066, allocations: 0.9174 MB / 0.7943 GB, free: 46.66 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04833/2.114, allocations: 17.13 MB / 0.8111 GB, free: 36.08 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004299/2.115, allocations: 19.81 kB / 0.8111 GB, free: 36.06 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003769/2.119, allocations: 403.7 kB / 0.8115 GB, free: 35.68 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008513/2.119, allocations: 0.7058 MB / 0.8122 GB, free: 35.05 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0378/2.157, allocations: 15.81 MB / 0.8276 GB, free: 21.27 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4424/2.6, allocations: 55.3 MB / 0.8816 GB, free: 36.41 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02942/2.629, allocations: 19.31 MB / 0.9005 GB, free: 44.08 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05747/2.687, allocations: 24.89 MB / 0.9248 GB, free: 39.15 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.156e-05/2.687, allocations: 95.22 kB / 0.9249 GB, free: 39.06 MB / 442.7 MB Notification: Performance of pre-optimization done (n=749): time 1.274e-05/2.687, allocations: 0 / 0.9249 GB, free: 39.06 MB / 442.7 MB Notification: Performance of matching and sorting (n=754): time 0.1387/2.826, allocations: 46.2 MB / 0.97 GB, free: 17.49 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.165e-05/2.826, allocations: 114.8 kB / 0.9701 GB, free: 17.42 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007936/2.834, allocations: 3.203 MB / 0.9732 GB, free: 16.3 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001655/2.835, allocations: 126.4 kB / 0.9733 GB, free: 16.2 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002474/2.838, allocations: 3.428 MB / 0.9767 GB, free: 13.61 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003824/2.842, allocations: 2.482 MB / 0.9791 GB, free: 11.67 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001756/2.843, allocations: 126.7 kB / 0.9792 GB, free: 11.57 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.001045/2.845, allocations: 0.6062 MB / 0.9798 GB, free: 11.14 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01173/2.856, allocations: 5.099 MB / 0.9848 GB, free: 8.992 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01477/2.871, allocations: 6.345 MB / 0.991 GB, free: 5.5 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01647/2.888, allocations: 6.147 MB / 0.997 GB, free: 0.6914 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.526e-05/2.888, allocations: 8 kB / 0.997 GB, free: 0.6836 MB / 442.7 MB Notification: Performance of matching and sorting (n=942) (initialization): time 0.06851/2.956, allocations: 15.94 MB / 1.013 GB, free: 8.098 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.381e-05/2.956, allocations: 48.38 kB / 1.013 GB, free: 8.047 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.845e-05/2.957, allocations: 32 kB / 1.013 GB, free: 8.016 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01262/2.969, allocations: 4.037 MB / 1.017 GB, free: 4.738 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007184/2.976, allocations: 1.191 MB / 1.018 GB, free: 3.832 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3192/3.296, allocations: 12.57 MB / 1.03 GB, free: 78.48 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006123/3.302, allocations: 367.4 kB / 1.03 GB, free: 78.48 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002746/3.305, allocations: 281.7 kB / 1.031 GB, free: 78.48 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.01193/3.317, allocations: 3.866 MB / 1.034 GB, free: 78.37 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002799/3.319, allocations: 495.4 kB / 1.035 GB, free: 78.37 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03925/3.359, allocations: 14.34 MB / 1.049 GB, free: 78.02 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03119/3.39, allocations: 12.83 MB / 1.061 GB, free: 77.72 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.322e-05/3.39, allocations: 0 / 1.061 GB, free: 77.72 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001368/3.39, allocations: 34.44 kB / 1.061 GB, free: 77.72 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06928/3.459, allocations: 28.21 MB / 1.089 GB, free: 69.27 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001071/3.46, allocations: 3.562 kB / 1.089 GB, free: 69.27 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006097/3.466, allocations: 0.8869 MB / 1.09 GB, free: 69.25 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01086/3.477, allocations: 3.943 MB / 1.094 GB, free: 68.07 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001784/3.478, allocations: 163.4 kB / 1.094 GB, free: 67.98 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01838/3.497, allocations: 12.48 MB / 1.106 GB, free: 60.02 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.207e-06/3.497, allocations: 6.391 kB / 1.106 GB, free: 60.02 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04823/3.545, allocations: 21.68 MB / 1.127 GB, free: 50.3 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005543/3.551, allocations: 1.73 MB / 1.129 GB, free: 49.37 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002482/3.553, allocations: 109.7 kB / 1.129 GB, free: 49.29 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00509/3.558, allocations: 300.1 kB / 1.129 GB, free: 49.21 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002373/3.561, allocations: 0.5514 MB / 1.13 GB, free: 49.09 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001595/3.562, allocations: 207.8 kB / 1.13 GB, free: 49.04 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.005556/3.568, allocations: 2.441 MB / 1.132 GB, free: 47.76 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.84e-07/3.568, allocations: 2.297 kB / 1.132 GB, free: 47.76 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01015/3.578, allocations: 1.823 MB / 1.134 GB, free: 45.96 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.002937/3.581, allocations: 0.697 MB / 1.135 GB, free: 45.55 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02834/3.61, allocations: 12.5 MB / 1.147 GB, free: 34.65 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.443e-06/3.61, allocations: 4 kB / 1.147 GB, free: 34.65 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02008/3.63, allocations: 6.48 MB / 1.153 GB, free: 29.04 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008068/3.638, allocations: 0.8954 MB / 1.154 GB, free: 28.34 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05773/3.696, allocations: 25.76 MB / 1.179 GB, free: 5.098 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3462/4.042, allocations: 6.792 MB / 1.186 GB, free: 76.31 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003327/4.045, allocations: 404 kB / 1.186 GB, free: 76.3 MB / 458.7 MB Notification: Performance of SimCode: time 1.918e-06/4.045, allocations: 0 / 1.186 GB, free: 76.3 MB / 458.7 MB Notification: Performance of Templates: time 1.616/5.661, allocations: 0.6019 GB / 1.788 GB, free: 66.12 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=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\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'