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_Characteristics.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_Characteristics,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics") Notification: Performance of loadModel(Modelica): time 2.062/2.062, allocations: 194.9 MB / 212.3 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003565/0.0003566, allocations: 8 kB / 264.5 MB, free: 13.6 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1045, allocations: 44.51 MB / 309 MB, free: 1.027 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4598/0.5643, allocations: 121.3 MB / 430.3 MB, free: 2.297 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003112/0.5647, allocations: 104.9 kB / 430.4 MB, free: 2.238 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.63/2.195, allocations: 339.8 MB / 0.7522 GB, free: 53.57 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.446e-06/2.195, allocations: 2.938 kB / 0.7522 GB, free: 53.57 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0008577/2.196, allocations: 204.2 kB / 0.7524 GB, free: 53.55 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: 2677 * Number of variables: 2677 Notification: Performance of Generate backend data structure: time 0.04721/2.243, allocations: 9.489 MB / 0.7616 GB, free: 50.62 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.445e-05/2.243, allocations: 10.44 kB / 0.7616 GB, free: 50.62 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04036/2.284, allocations: 4.882 MB / 0.7664 GB, free: 50.1 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02725/2.311, allocations: 7.909 MB / 0.7741 GB, free: 48.95 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001311/2.312, allocations: 0.6902 MB / 0.7748 GB, free: 48.93 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005294/2.318, allocations: 0.8947 MB / 0.7757 GB, free: 48.92 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05717/2.375, allocations: 16.78 MB / 0.7921 GB, free: 42.88 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006519/2.376, allocations: 13.41 kB / 0.7921 GB, free: 42.88 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004807/2.38, allocations: 399.9 kB / 0.7925 GB, free: 42.59 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001142/2.382, allocations: 0.6939 MB / 0.7931 GB, free: 42.42 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04595/2.428, allocations: 15.44 MB / 0.8082 GB, free: 32.54 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5004/2.928, allocations: 53.86 MB / 0.8608 GB, free: 34.14 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03498/2.963, allocations: 18.86 MB / 0.8792 GB, free: 41.22 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06644/3.03, allocations: 22.71 MB / 0.9014 GB, free: 40.48 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.956e-05/3.03, allocations: 90.34 kB / 0.9015 GB, free: 40.44 MB / 442.7 MB Notification: Performance of pre-optimization done (n=686): time 1.126e-05/3.03, allocations: 3.188 kB / 0.9015 GB, free: 40.44 MB / 442.7 MB Notification: Performance of matching and sorting (n=692): time 0.1378/3.168, allocations: 39.98 MB / 0.9405 GB, free: 26.81 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001016/3.168, allocations: 110.1 kB / 0.9406 GB, free: 26.74 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007263/3.175, allocations: 2.775 MB / 0.9433 GB, free: 25.7 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001796/3.177, allocations: 111.7 kB / 0.9435 GB, free: 25.6 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002648/3.18, allocations: 3.309 MB / 0.9467 GB, free: 23.11 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004172/3.184, allocations: 2.277 MB / 0.9489 GB, free: 21.34 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001947/3.186, allocations: 122.6 kB / 0.949 GB, free: 21.25 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.001047/3.187, allocations: 0.5909 MB / 0.9496 GB, free: 20.81 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01326/3.2, allocations: 4.73 MB / 0.9542 GB, free: 18.84 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01387/3.214, allocations: 6.074 MB / 0.9602 GB, free: 15.4 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.016/3.23, allocations: 5.725 MB / 0.9657 GB, free: 12.82 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.872e-05/3.23, allocations: 11 kB / 0.9658 GB, free: 12.82 MB / 442.7 MB Notification: Performance of matching and sorting (n=885) (initialization): time 0.0421/3.273, allocations: 13.49 MB / 0.9789 GB, free: 7.172 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.798e-05/3.273, allocations: 19.78 kB / 0.9789 GB, free: 7.172 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000108/3.273, allocations: 38.34 kB / 0.979 GB, free: 7.172 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01352/3.286, allocations: 3.877 MB / 0.9828 GB, free: 5.988 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009102/3.295, allocations: 1.128 MB / 0.9839 GB, free: 5.953 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02265/3.318, allocations: 10.69 MB / 0.9943 GB, free: 13.12 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007488/3.326, allocations: 352.3 kB / 0.9947 GB, free: 12.86 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001983/3.328, allocations: 275.5 kB / 0.9949 GB, free: 12.61 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 161 * 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 (603): * Single equations (assignments): 535 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 62 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,6 9,12 76} Notification: Performance of prepare postOptimizeDAE: time 0.01181/3.34, allocations: 3.695 MB / 0.9985 GB, free: 9.508 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002111/3.342, allocations: 434.2 kB / 0.9989 GB, free: 9.082 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4171/3.759, allocations: 13.35 MB / 1.012 GB, free: 76.95 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.038/3.797, allocations: 11.9 MB / 1.024 GB, free: 76.69 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.804e-05/3.797, allocations: 1.281 kB / 1.024 GB, free: 76.69 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001596/3.797, allocations: 29.34 kB / 1.024 GB, free: 76.69 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07999/3.877, allocations: 26.43 MB / 1.049 GB, free: 75.83 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001338/3.877, allocations: 2.5 kB / 1.049 GB, free: 75.83 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007418/3.885, allocations: 0.8186 MB / 1.05 GB, free: 75.82 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01309/3.898, allocations: 3.78 MB / 1.054 GB, free: 75.75 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001708/3.9, allocations: 143.4 kB / 1.054 GB, free: 75.75 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01751/3.917, allocations: 10.57 MB / 1.064 GB, free: 71.12 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.898e-06/3.917, allocations: 0 / 1.064 GB, free: 71.12 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05136/3.969, allocations: 19.99 MB / 1.084 GB, free: 62.28 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005284/3.974, allocations: 1.548 MB / 1.085 GB, free: 61.62 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002182/3.976, allocations: 96.08 kB / 1.086 GB, free: 61.55 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00575/3.982, allocations: 287.2 kB / 1.086 GB, free: 61.48 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002252/3.984, allocations: 0.4986 MB / 1.086 GB, free: 61.37 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009362/3.985, allocations: 186.1 kB / 1.086 GB, free: 61.32 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0043/3.99, allocations: 1.864 MB / 1.088 GB, free: 60.6 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.52e-07/3.99, allocations: 3.344 kB / 1.088 GB, free: 60.6 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01096/4.001, allocations: 1.678 MB / 1.09 GB, free: 60.42 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (imcQS.rotorCage.port_p.reference.gamma,speed.phi) * 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 (438): * Single equations (assignments): 370 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 62 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,6 9,12 76} Notification: Performance of Backend phase and start with SimCode phase: time 0.002963/4.004, allocations: 0.493 MB / 1.09 GB, free: 60.24 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.03368/4.037, allocations: 11.54 MB / 1.102 GB, free: 55.7 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.402e-06/4.037, allocations: 0 / 1.102 GB, free: 55.7 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01817/4.056, allocations: 5.949 MB / 1.107 GB, free: 53.32 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008762/4.064, allocations: 0.8443 MB / 1.108 GB, free: 53.09 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06158/4.126, allocations: 23.81 MB / 1.132 GB, free: 37.66 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01561/4.142, allocations: 6.334 MB / 1.138 GB, free: 32.77 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003361/4.145, allocations: 355.6 kB / 1.138 GB, free: 32.45 MB / 458.7 MB Notification: Performance of SimCode: time 2.043e-06/4.145, allocations: 0 / 1.138 GB, free: 32.45 MB / 458.7 MB Notification: Performance of Templates: time 2.236/6.382, allocations: 0.5771 GB / 1.715 GB, free: 100.4 MB / 490.7 MB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics.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_CharacteristicsCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_CharacteristicsCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_CharacteristicsCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_CharacteristicsFunctions.cpp:455:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp325 = 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_CharacteristicsFunctions.cpp:455:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp325 = 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_CharacteristicsCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_CharacteristicsCalcHelperMain.o] Error 1\n'