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_Characteristics.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_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 1.854/1.854, allocations: 194.8 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005682/0.0005684, allocations: 12 kB / 264 MB, free: 13.54 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1226, allocations: 44.51 MB / 308.5 MB, free: 0.957 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3924/0.515, allocations: 121.3 MB / 429.8 MB, free: 3.82 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002717/0.5153, allocations: 109.1 kB / 429.9 MB, free: 3.758 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.448/1.963, allocations: 339.8 MB / 0.7516 GB, free: 53.3 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.543e-06/1.963, allocations: 7.562 kB / 0.7516 GB, free: 53.3 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005911/1.964, allocations: 210.3 kB / 0.7518 GB, free: 53.28 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.03789/2.002, allocations: 9.484 MB / 0.7611 GB, free: 50.35 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/2.002, allocations: 9.469 kB / 0.7611 GB, free: 50.35 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03583/2.038, allocations: 4.89 MB / 0.7659 GB, free: 49.82 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02292/2.061, allocations: 7.901 MB / 0.7736 GB, free: 48.7 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001046/2.062, allocations: 0.697 MB / 0.7743 GB, free: 48.68 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004143/2.066, allocations: 0.8944 MB / 0.7752 GB, free: 48.68 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0474/2.113, allocations: 16.71 MB / 0.7915 GB, free: 42.99 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003908/2.114, allocations: 13.78 kB / 0.7915 GB, free: 42.98 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003616/2.117, allocations: 396.7 kB / 0.7919 GB, free: 42.69 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009049/2.118, allocations: 0.691 MB / 0.7925 GB, free: 42.53 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03907/2.157, allocations: 15.44 MB / 0.8076 GB, free: 33.44 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3965/2.554, allocations: 53.86 MB / 0.8602 GB, free: 35.69 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02702/2.581, allocations: 18.86 MB / 0.8786 GB, free: 42.77 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05238/2.633, allocations: 22.71 MB / 0.9008 GB, free: 42.05 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.79e-05/2.634, allocations: 95.95 kB / 0.9009 GB, free: 42 MB / 442.7 MB Notification: Performance of pre-optimization done (n=686): time 1.183e-05/2.634, allocations: 0 / 0.9009 GB, free: 42 MB / 442.7 MB Notification: Performance of matching and sorting (n=692): time 0.1054/2.739, allocations: 39.99 MB / 0.94 GB, free: 28.81 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.856e-05/2.739, allocations: 109.9 kB / 0.9401 GB, free: 28.74 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005215/2.744, allocations: 2.466 MB / 0.9425 GB, free: 27.82 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001386/2.746, allocations: 114.7 kB / 0.9426 GB, free: 27.71 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002134/2.748, allocations: 3.3 MB / 0.9458 GB, free: 25.23 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003132/2.751, allocations: 2.279 MB / 0.948 GB, free: 23.46 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001188/2.752, allocations: 117.8 kB / 0.9481 GB, free: 23.37 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0008084/2.753, allocations: 0.5921 MB / 0.9487 GB, free: 22.93 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01068/2.764, allocations: 4.729 MB / 0.9533 GB, free: 20.96 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01197/2.776, allocations: 6.057 MB / 0.9593 GB, free: 17.52 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01247/2.788, allocations: 5.716 MB / 0.9648 GB, free: 14.94 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.783e-05/2.789, allocations: 7.438 kB / 0.9648 GB, free: 14.94 MB / 442.7 MB Notification: Performance of matching and sorting (n=885) (initialization): time 0.03206/2.821, allocations: 13.5 MB / 0.978 GB, free: 9.281 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.416e-05/2.821, allocations: 27.78 kB / 0.978 GB, free: 9.277 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.137e-05/2.821, allocations: 35.12 kB / 0.9781 GB, free: 9.277 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01126/2.832, allocations: 3.87 MB / 0.9819 GB, free: 8.102 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006336/2.838, allocations: 1.132 MB / 0.983 GB, free: 8.062 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02819/2.867, allocations: 10.71 MB / 0.9934 GB, free: 14.82 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009372/2.876, allocations: 343.6 kB / 0.9938 GB, free: 14.56 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002696/2.879, allocations: 276.5 kB / 0.994 GB, free: 14.31 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.01703/2.896, allocations: 3.698 MB / 0.9976 GB, free: 11.21 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003337/2.899, allocations: 425 kB / 0.998 GB, free: 10.79 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3239/3.223, allocations: 13.25 MB / 1.011 GB, free: 76.77 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02966/3.253, allocations: 11.9 MB / 1.023 GB, free: 76.5 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-05/3.253, allocations: 3.281 kB / 1.023 GB, free: 76.5 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001275/3.253, allocations: 30.97 kB / 1.023 GB, free: 76.5 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06169/3.315, allocations: 26.44 MB / 1.048 GB, free: 75.65 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.309e-05/3.315, allocations: 3.953 kB / 1.048 GB, free: 75.64 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005517/3.32, allocations: 0.8097 MB / 1.049 GB, free: 75.64 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01082/3.331, allocations: 3.785 MB / 1.053 GB, free: 75.57 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001463/3.333, allocations: 143.1 kB / 1.053 GB, free: 75.57 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01527/3.348, allocations: 10.57 MB / 1.063 GB, free: 71.57 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.122e-06/3.348, allocations: 0 / 1.063 GB, free: 71.57 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04328/3.391, allocations: 20 MB / 1.083 GB, free: 62.7 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004668/3.396, allocations: 1.551 MB / 1.084 GB, free: 62.04 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002021/3.398, allocations: 90.38 kB / 1.085 GB, free: 61.97 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004971/3.403, allocations: 284.4 kB / 1.085 GB, free: 61.9 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002221/3.405, allocations: 0.5045 MB / 1.085 GB, free: 61.79 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001569/3.407, allocations: 182 kB / 1.085 GB, free: 61.75 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004417/3.412, allocations: 1.864 MB / 1.087 GB, free: 61.02 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.08e-06/3.412, allocations: 0 / 1.087 GB, free: 61.02 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.009549/3.421, allocations: 1.684 MB / 1.089 GB, free: 60.84 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.002297/3.423, allocations: 0.4976 MB / 1.089 GB, free: 60.66 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02586/3.449, allocations: 11.53 MB / 1.101 GB, free: 56.12 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.247e-06/3.449, allocations: 3.75 kB / 1.101 GB, free: 56.12 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01435/3.464, allocations: 5.954 MB / 1.106 GB, free: 53.74 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006301/3.47, allocations: 0.8394 MB / 1.107 GB, free: 53.51 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04953/3.52, allocations: 23.82 MB / 1.131 GB, free: 39.29 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01275/3.532, allocations: 6.336 MB / 1.137 GB, free: 34.39 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002353/3.535, allocations: 350.1 kB / 1.137 GB, free: 34.07 MB / 458.7 MB Notification: Performance of SimCode: time 2.099e-06/3.535, allocations: 0 / 1.137 GB, free: 34.07 MB / 458.7 MB Notification: Performance of Templates: time 1.794/5.329, allocations: 0.5767 GB / 1.714 GB, free: 101.7 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=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_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'