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.IMS_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.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.98/1.98, allocations: 194.8 MB / 211.6 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003668/0.0003669, allocations: 12 kB / 263.9 MB, free: 13.56 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0826/0.08299, allocations: 44.51 MB / 308.4 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics): time 0.03277/0.1158, allocations: 22.47 MB / 330.9 MB, free: 10.44 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01876/0.1346, allocations: 7.554 MB / 338.4 MB, free: 2.867 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005089/0.1398, allocations: 163.4 kB / 338.6 MB, free: 2.707 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006317/0.1461, allocations: 1.652 MB / 340.2 MB, free: 1.047 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0117/0.1579, allocations: 2.836 MB / 343.1 MB, free: 14.2 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005848/0.1637, allocations: 1.283 MB / 344.3 MB, free: 12.92 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0222/0.186, allocations: 11.2 MB / 355.5 MB, free: 1.703 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2724/0.4585, allocations: 19.62 MB / 375.2 MB, free: 17.81 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008291/0.4668, allocations: 4.451 MB / 379.6 MB, free: 17.81 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009668/0.4765, allocations: 5.006 MB / 384.6 MB, free: 17.81 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003364/0.4799, allocations: 0.7215 MB / 385.3 MB, free: 17.81 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00565/0.4856, allocations: 1.005 MB / 386.3 MB, free: 17.81 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003809/0.4895, allocations: 2.201 MB / 388.5 MB, free: 17.81 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004458/0.494, allocations: 2.335 MB / 390.9 MB, free: 17.78 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02951/0.5235, allocations: 20.88 MB / 411.8 MB, free: 6.785 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.469e-06/0.5236, allocations: 0 / 411.8 MB, free: 6.785 MB / 314.7 MB Notification: Performance of FrontEnd: time 4.806e-06/0.5236, allocations: 4.094 kB / 411.8 MB, free: 6.785 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0006054/0.5242, allocations: 6.891 kB / 411.8 MB, free: 6.781 MB / 314.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.07204/0.5963, allocations: 12.32 MB / 424.1 MB, free: 408 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.293e-05/0.5964, allocations: 12.03 kB / 424.1 MB, free: 396 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1165/0.7129, allocations: 9.257 MB / 433.4 MB, free: 7.801 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01848/0.7314, allocations: 6.8 MB / 440.2 MB, free: 3.785 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001163/0.7326, allocations: 0.8252 MB / 441 MB, free: 3.316 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004398/0.7371, allocations: 1.07 MB / 442.1 MB, free: 2.605 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06447/0.8016, allocations: 18.67 MB / 460.7 MB, free: 2.109 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006577/0.8023, allocations: 27.17 kB / 460.7 MB, free: 2.086 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004604/0.8069, allocations: 457.8 kB / 461.2 MB, free: 1.656 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001147/0.8081, allocations: 0.6949 MB / 461.9 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05505/0.8632, allocations: 18.15 MB / 480 MB, free: 14.81 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3999/1.263, allocations: 60.12 MB / 0.5275 GB, free: 93.57 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0387/1.302, allocations: 46.68 MB / 0.5731 GB, free: 54.01 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03051/1.332, allocations: 12.59 MB / 0.5854 GB, free: 51.93 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.419e-05/1.333, allocations: 76.95 kB / 0.5855 GB, free: 51.86 MB / 410.7 MB Notification: Performance of pre-optimization done (n=395): time 8.182e-06/1.333, allocations: 0 / 0.5855 GB, free: 51.86 MB / 410.7 MB Notification: Performance of matching and sorting (n=401): time 0.05739/1.39, allocations: 19.77 MB / 0.6048 GB, free: 42.71 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.368e-05/1.39, allocations: 93.38 kB / 0.6048 GB, free: 42.64 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00874/1.399, allocations: 4.276 MB / 0.609 GB, free: 40.33 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006989/1.4, allocations: 93.55 kB / 0.6091 GB, free: 40.25 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002886/1.402, allocations: 4.665 MB / 0.6137 GB, free: 36.14 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001601/1.404, allocations: 1.376 MB / 0.615 GB, free: 34.96 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000654/1.405, allocations: 131 kB / 0.6151 GB, free: 34.86 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004744/1.405, allocations: 0.5727 MB / 0.6157 GB, free: 34.35 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006568/1.412, allocations: 3.166 MB / 0.6188 GB, free: 32.64 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008548/1.42, allocations: 5.792 MB / 0.6244 GB, free: 27.32 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008563/1.429, allocations: 4.444 MB / 0.6288 GB, free: 22.87 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.997e-05/1.429, allocations: 24 kB / 0.6288 GB, free: 22.85 MB / 410.7 MB Notification: Performance of matching and sorting (n=832) (initialization): time 0.02386/1.453, allocations: 10.17 MB / 0.6387 GB, free: 12.66 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.259e-05/1.453, allocations: 44 kB / 0.6388 GB, free: 12.62 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001195/1.453, allocations: 91.95 kB / 0.6389 GB, free: 12.53 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004765/1.458, allocations: 1.412 MB / 0.6402 GB, free: 11.11 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007111/1.465, allocations: 1.478 MB / 0.6417 GB, free: 9.629 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02098/1.486, allocations: 10.88 MB / 0.6523 GB, free: 14.62 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006578/1.493, allocations: 403.3 kB / 0.6527 GB, free: 14.23 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001604/1.495, allocations: 332 kB / 0.653 GB, free: 13.9 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 396 * 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 (759): * Single equations (assignments): 754 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(14,41.8%) 56} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01118/1.506, allocations: 4.18 MB / 0.6571 GB, free: 9.707 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00146/1.507, allocations: 450.5 kB / 0.6575 GB, free: 9.262 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02197/1.529, allocations: 7.478 MB / 0.6648 GB, free: 1.742 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01672/1.546, allocations: 6.139 MB / 0.6708 GB, free: 11.58 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.302e-05/1.546, allocations: 12 kB / 0.6708 GB, free: 11.57 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.646e-05/1.546, allocations: 19.92 kB / 0.6709 GB, free: 11.55 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2948/1.841, allocations: 16.55 MB / 0.687 GB, free: 137.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.569e-05/1.841, allocations: 0 / 0.687 GB, free: 137.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004737/1.846, allocations: 0.735 MB / 0.6877 GB, free: 137.3 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004918/1.851, allocations: 1.247 MB / 0.689 GB, free: 137.3 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008236/1.852, allocations: 91.14 kB / 0.689 GB, free: 137.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01979/1.871, allocations: 9.646 MB / 0.6985 GB, free: 133.6 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.718e-06/1.872, allocations: 7.891 kB / 0.6985 GB, free: 133.6 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0241/1.896, allocations: 10.72 MB / 0.7089 GB, free: 129.3 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003373/1.899, allocations: 1.064 MB / 0.71 GB, free: 128.9 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001546/1.901, allocations: 73.8 kB / 0.71 GB, free: 128.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003823/1.904, allocations: 261.9 kB / 0.7103 GB, free: 128.8 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001204/1.906, allocations: 276.6 kB / 0.7106 GB, free: 128.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004369/1.906, allocations: 116.5 kB / 0.7107 GB, free: 128.7 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.006486/1.913, allocations: 2.85 MB / 0.7135 GB, free: 127.7 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.485e-06/1.913, allocations: 0 / 0.7135 GB, free: 127.7 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.009262/1.922, allocations: 1.847 MB / 0.7153 GB, free: 127.5 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (imsQS.rotor.strayReluctance.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 (367): * Single equations (assignments): 362 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(14,40.3%) 56} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001168/1.923, allocations: 265.5 kB / 0.7155 GB, free: 127.3 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01781/1.941, allocations: 8.03 MB / 0.7234 GB, free: 124.3 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.507e-06/1.941, allocations: 0 / 0.7234 GB, free: 124.3 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009108/1.95, allocations: 3.715 MB / 0.727 GB, free: 122.8 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006256/1.957, allocations: 0.9775 MB / 0.7279 GB, free: 122.4 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04384/2, allocations: 22.22 MB / 0.7496 GB, free: 103 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01308/2.014, allocations: 6.999 MB / 0.7565 GB, free: 97.71 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002382/2.016, allocations: 424.7 kB / 0.7569 GB, free: 97.32 MB / 442.7 MB Notification: Performance of SimCode: time 1.942e-06/2.016, allocations: 0 / 0.7569 GB, free: 97.32 MB / 442.7 MB Notification: Performance of Templates: time 0.4801/2.496, allocations: 172.1 MB / 0.9249 GB, free: 72.71 MB / 442.7 MB 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@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.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:220:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp135 = 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:220:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp135 = 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'