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.IMS_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.IMS_Characteristics,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics") Notification: Performance of loadModel(Modelica): time 1.821/1.821, allocations: 194.9 MB / 212.3 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005344/0.0005345, allocations: 8 kB / 264.5 MB, free: 13.59 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1133, allocations: 44.5 MB / 309 MB, free: 1.02 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5295/0.6429, allocations: 125.9 MB / 434.9 MB, free: 14.02 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004833/0.6434, allocations: 106.5 kB / 435 MB, free: 13.96 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.816/2.459, allocations: 381.5 MB / 0.7974 GB, free: 48.18 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.825e-06/2.459, allocations: 0 / 0.7974 GB, free: 48.18 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001022/2.461, allocations: 243.8 kB / 0.7976 GB, free: 48.14 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: 3092 * Number of variables: 3092 Notification: Performance of Generate backend data structure: time 0.05336/2.514, allocations: 10.77 MB / 0.8081 GB, free: 40.67 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/2.514, allocations: 12.03 kB / 0.8081 GB, free: 40.66 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05232/2.566, allocations: 6.321 MB / 0.8143 GB, free: 34.38 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0306/2.597, allocations: 8.786 MB / 0.8229 GB, free: 25.61 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001349/2.598, allocations: 0.8018 MB / 0.8237 GB, free: 24.82 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00563/2.604, allocations: 1.023 MB / 0.8247 GB, free: 23.82 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06944/2.673, allocations: 19.33 MB / 0.8435 GB, free: 4.168 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006567/2.674, allocations: 11.89 kB / 0.8436 GB, free: 4.156 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005175/2.679, allocations: 453 kB / 0.844 GB, free: 3.727 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001651/2.681, allocations: 0.8228 MB / 0.8448 GB, free: 2.902 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4087/3.09, allocations: 18.11 MB / 0.8625 GB, free: 43.74 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1627/3.253, allocations: 61.27 MB / 0.9223 GB, free: 29.55 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03898/3.292, allocations: 25.08 MB / 0.9468 GB, free: 12.22 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09352/3.385, allocations: 26.66 MB / 0.9728 GB, free: 0 / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002196/3.386, allocations: 109.2 kB / 0.9729 GB, free: 15.91 MB / 442.7 MB Notification: Performance of pre-optimization done (n=834): time 1.929e-05/3.386, allocations: 3.594 kB / 0.9729 GB, free: 15.91 MB / 442.7 MB Notification: Performance of matching and sorting (n=840): time 0.5903/3.976, allocations: 49.71 MB / 1.021 GB, free: 71.66 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001248/3.976, allocations: 126.8 kB / 1.022 GB, free: 71.59 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008346/3.984, allocations: 3.048 MB / 1.025 GB, free: 71.37 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002207/3.987, allocations: 136.9 kB / 1.025 GB, free: 71.34 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003272/3.99, allocations: 3.712 MB / 1.028 GB, free: 70.61 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.005388/3.995, allocations: 2.762 MB / 1.031 GB, free: 68.81 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002049/3.997, allocations: 143.7 kB / 1.031 GB, free: 68.81 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.001049/3.999, allocations: 0.6373 MB / 1.032 GB, free: 68.48 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0169/4.015, allocations: 5.594 MB / 1.037 GB, free: 68.46 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01798/4.033, allocations: 7.091 MB / 1.044 GB, free: 67 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01839/4.052, allocations: 6.74 MB / 1.051 GB, free: 66.92 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.983e-05/4.052, allocations: 11.22 kB / 1.051 GB, free: 66.92 MB / 458.7 MB Notification: Performance of matching and sorting (n=1046) (initialization): time 0.05082/4.103, allocations: 16.05 MB / 1.066 GB, free: 66.49 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.823e-05/4.103, allocations: 22.19 kB / 1.066 GB, free: 66.49 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001312/4.103, allocations: 40.41 kB / 1.067 GB, free: 66.49 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01657/4.12, allocations: 5.018 MB / 1.071 GB, free: 66.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01121/4.131, allocations: 1.344 MB / 1.073 GB, free: 66.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0231/4.154, allocations: 12.37 MB / 1.085 GB, free: 63.16 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0087/4.163, allocations: 422.5 kB / 1.085 GB, free: 63.15 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002452/4.165, allocations: 321.4 kB / 1.086 GB, free: 63.15 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 172 * 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 (706): * Single equations (assignments): 640 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 60 * 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,18 115} Notification: Performance of prepare postOptimizeDAE: time 0.01309/4.179, allocations: 4.139 MB / 1.09 GB, free: 61.54 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002059/4.181, allocations: 0.5011 MB / 1.09 GB, free: 61.27 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05036/4.231, allocations: 16.05 MB / 1.106 GB, free: 54.36 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04237/4.273, allocations: 14.44 MB / 1.12 GB, free: 48.23 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.519e-05/4.274, allocations: 0 / 1.12 GB, free: 48.23 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001768/4.274, allocations: 35.77 kB / 1.12 GB, free: 48.23 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08675/4.36, allocations: 30.88 MB / 1.15 GB, free: 27.64 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001159/4.361, allocations: 4 kB / 1.15 GB, free: 27.63 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009109/4.37, allocations: 1.028 MB / 1.151 GB, free: 26.86 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01595/4.386, allocations: 4.832 MB / 1.156 GB, free: 22.89 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002399/4.388, allocations: 176.8 kB / 1.156 GB, free: 22.74 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0217/4.41, allocations: 12.18 MB / 1.168 GB, free: 11.65 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.237e-06/4.41, allocations: 0 / 1.168 GB, free: 11.65 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4453/4.855, allocations: 24.15 MB / 1.191 GB, free: 66.4 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.008059/4.863, allocations: 1.806 MB / 1.193 GB, free: 66.3 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003808/4.867, allocations: 118.2 kB / 1.193 GB, free: 66.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009795/4.877, allocations: 374.5 kB / 1.194 GB, free: 66.3 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003834/4.881, allocations: 0.5992 MB / 1.194 GB, free: 66.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00231/4.883, allocations: 225.3 kB / 1.194 GB, free: 66.3 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01993/4.903, allocations: 2.045 MB / 1.196 GB, free: 66.15 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.152e-06/4.903, allocations: 1.969 kB / 1.196 GB, free: 66.15 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.03508/4.939, allocations: 1.997 MB / 1.198 GB, free: 66.15 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (speed.phi,resistor.resistor[1].pin_p.reference.gamma) * 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 (540): * Single equations (assignments): 474 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 60 * 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,17 116} Notification: Performance of Backend phase and start with SimCode phase: time 0.003643/4.942, allocations: 0.5683 MB / 1.199 GB, free: 66.06 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.03985/4.982, allocations: 13.62 MB / 1.212 GB, free: 65.75 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.414e-06/4.982, allocations: 1.156 kB / 1.212 GB, free: 65.75 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02318/5.005, allocations: 7.102 MB / 1.219 GB, free: 65.58 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01052/5.016, allocations: 0.9756 MB / 1.22 GB, free: 65.55 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07444/5.09, allocations: 27.69 MB / 1.247 GB, free: 56.5 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01636/5.107, allocations: 7.167 MB / 1.254 GB, free: 55.49 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003927/5.111, allocations: 431.4 kB / 1.255 GB, free: 55.48 MB / 458.7 MB Notification: Performance of SimCode: time 2.254e-06/5.111, allocations: 0 / 1.255 GB, free: 55.48 MB / 458.7 MB Notification: Performance of Templates: time 2.182/7.293, allocations: 0.5939 GB / 1.848 GB, free: 24.58 MB / 0.4948 GB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_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.IMS_CharacteristicsCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_CharacteristicsCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_CharacteristicsCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_CharacteristicsFunctions.cpp:516:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp356 = 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.IMS_CharacteristicsFunctions.cpp:516:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp356 = 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.IMS_CharacteristicsCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_CharacteristicsCalcHelperMain.o] Error 1\n'