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.891/1.891, allocations: 194.8 MB / 211.6 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000352/0.0003523, allocations: 8 kB / 263.9 MB, free: 13.59 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08476/0.08513, allocations: 44.52 MB / 308.4 MB, free: 1 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics): time 0.03002/0.1152, allocations: 20.71 MB / 329.1 MB, free: 12.22 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01686/0.1321, allocations: 6.895 MB / 336 MB, free: 5.309 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004684/0.1368, allocations: 147.5 kB / 336.1 MB, free: 5.164 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005793/0.1427, allocations: 1.504 MB / 337.6 MB, free: 3.652 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01067/0.1534, allocations: 2.516 MB / 340.1 MB, free: 1.129 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005469/0.1589, allocations: 1.186 MB / 341.3 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.02069/0.1796, allocations: 10.23 MB / 351.6 MB, free: 5.695 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04549/0.2251, allocations: 17.79 MB / 369.3 MB, free: 3.812 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2311/0.4563, allocations: 3.954 MB / 373.3 MB, free: 22.43 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008118/0.4645, allocations: 4.378 MB / 377.7 MB, free: 22.43 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003347/0.4678, allocations: 0.6437 MB / 378.3 MB, free: 22.43 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005573/0.4734, allocations: 0.927 MB / 379.3 MB, free: 22.43 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003975/0.4775, allocations: 1.89 MB / 381.1 MB, free: 22.43 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004419/0.4819, allocations: 2.076 MB / 383.2 MB, free: 22.4 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02131/0.5033, allocations: 18.96 MB / 402.2 MB, free: 13.2 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.882e-06/0.5033, allocations: 0 / 402.2 MB, free: 13.2 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.289e-06/0.5033, allocations: 2.125 kB / 402.2 MB, free: 13.2 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0005242/0.5039, allocations: 0 / 402.2 MB, free: 13.2 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: 2677 * Number of variables: 2677 Notification: Performance of Generate backend data structure: time 0.03526/0.5392, allocations: 10.86 MB / 413 MB, free: 7.867 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.5392, allocations: 7.5 kB / 413 MB, free: 7.867 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04896/0.5882, allocations: 7.091 MB / 420.1 MB, free: 3.695 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01382/0.6021, allocations: 6.077 MB / 426.2 MB, free: 188 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008226/0.6029, allocations: 0.708 MB / 426.9 MB, free: 15.78 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003532/0.6065, allocations: 0.9329 MB / 427.9 MB, free: 15.16 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05154/0.658, allocations: 16.15 MB / 444 MB, free: 3.195 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003089/0.6584, allocations: 14.06 kB / 444 MB, free: 3.184 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002726/0.6611, allocations: 400.2 kB / 444.4 MB, free: 2.805 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008031/0.6619, allocations: 0.5864 MB / 445 MB, free: 2.215 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04319/0.7051, allocations: 15.4 MB / 460.4 MB, free: 2.801 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1173/0.8225, allocations: 52.97 MB / 0.5013 GB, free: 13.41 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2643/1.087, allocations: 35.48 MB / 0.536 GB, free: 97.37 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02478/1.112, allocations: 10.27 MB / 0.546 GB, free: 94.75 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.09e-05/1.112, allocations: 75.25 kB / 0.5461 GB, free: 94.68 MB / 410.7 MB Notification: Performance of pre-optimization done (n=307): time 7.884e-06/1.112, allocations: 0 / 0.5461 GB, free: 94.68 MB / 410.7 MB Notification: Performance of matching and sorting (n=313): time 0.04459/1.156, allocations: 15.58 MB / 0.5613 GB, free: 88.14 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.182e-05/1.156, allocations: 92.25 kB / 0.5614 GB, free: 88.07 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007816/1.164, allocations: 3.828 MB / 0.5651 GB, free: 86.63 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005571/1.165, allocations: 77.45 kB / 0.5652 GB, free: 86.56 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002525/1.167, allocations: 4.132 MB / 0.5692 GB, free: 83.38 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001291/1.169, allocations: 1.089 MB / 0.5703 GB, free: 82.55 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005699/1.169, allocations: 107.5 kB / 0.5704 GB, free: 82.46 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003715/1.17, allocations: 0.5365 MB / 0.5709 GB, free: 82.06 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005528/1.175, allocations: 2.599 MB / 0.5735 GB, free: 81.06 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007145/1.183, allocations: 4.96 MB / 0.5783 GB, free: 76.93 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007353/1.19, allocations: 3.731 MB / 0.582 GB, free: 75.24 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.767e-05/1.19, allocations: 22.19 kB / 0.582 GB, free: 75.24 MB / 410.7 MB Notification: Performance of matching and sorting (n=706) (initialization): time 0.01953/1.21, allocations: 8.571 MB / 0.5903 GB, free: 68 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.076e-05/1.21, allocations: 40 kB / 0.5904 GB, free: 67.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001118/1.21, allocations: 80 kB / 0.5905 GB, free: 67.88 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004437/1.214, allocations: 1.222 MB / 0.5917 GB, free: 66.85 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005639/1.22, allocations: 1.236 MB / 0.5929 GB, free: 65.61 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01704/1.237, allocations: 9.435 MB / 0.6021 GB, free: 56.06 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005131/1.242, allocations: 339.4 kB / 0.6024 GB, free: 55.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001105/1.243, allocations: 284 kB / 0.6027 GB, free: 55.45 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 361 * 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 (645): * Single equations (assignments): 640 * 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%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007609/1.251, allocations: 3.736 MB / 0.6063 GB, free: 51.7 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000958/1.252, allocations: 383.2 kB / 0.6067 GB, free: 51.32 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01313/1.265, allocations: 5.931 MB / 0.6125 GB, free: 45.34 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01063/1.276, allocations: 4.87 MB / 0.6172 GB, free: 40.43 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.472e-05/1.276, allocations: 12 kB / 0.6172 GB, free: 40.42 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.595e-05/1.276, allocations: 15.94 kB / 0.6173 GB, free: 40.4 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.033/1.309, allocations: 13.93 MB / 0.6309 GB, free: 26.41 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.473e-05/1.309, allocations: 4 kB / 0.6309 GB, free: 26.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003768/1.313, allocations: 0.5738 MB / 0.6314 GB, free: 25.83 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003839/1.317, allocations: 1.078 MB / 0.6325 GB, free: 24.75 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005751/1.317, allocations: 72.61 kB / 0.6325 GB, free: 24.68 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01513/1.332, allocations: 8.344 MB / 0.6407 GB, free: 16.21 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.274e-06/1.332, allocations: 7.938 kB / 0.6407 GB, free: 16.2 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01721/1.35, allocations: 8.703 MB / 0.6492 GB, free: 7.379 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00255/1.352, allocations: 0.9022 MB / 0.6501 GB, free: 6.453 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009344/1.353, allocations: 63.94 kB / 0.6501 GB, free: 6.391 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002749/1.356, allocations: 191.8 kB / 0.6503 GB, free: 6.203 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007792/1.357, allocations: 230.6 kB / 0.6505 GB, free: 5.977 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003042/1.357, allocations: 95.97 kB / 0.6506 GB, free: 5.883 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.005106/1.362, allocations: 2.553 MB / 0.6531 GB, free: 3.344 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.392e-06/1.362, allocations: 0 / 0.6531 GB, free: 3.344 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007652/1.37, allocations: 1.556 MB / 0.6546 GB, free: 1.793 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * 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 (289): * Single equations (assignments): 284 * 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.8%) 44} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009323/1.371, allocations: 251.3 kB / 0.6549 GB, free: 1.543 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01585/1.387, allocations: 6.638 MB / 0.6614 GB, free: 10.89 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.628e-06/1.387, allocations: 0 / 0.6614 GB, free: 10.89 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008328/1.395, allocations: 3.05 MB / 0.6643 GB, free: 7.84 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004827/1.4, allocations: 0.8503 MB / 0.6652 GB, free: 7 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2559/1.656, allocations: 19.08 MB / 0.6838 GB, free: 144 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01203/1.668, allocations: 6.188 MB / 0.6899 GB, free: 143.1 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002003/1.67, allocations: 355.7 kB / 0.6902 GB, free: 143.1 MB / 426.7 MB Notification: Performance of SimCode: time 1.826e-06/1.67, allocations: 0 / 0.6902 GB, free: 143.1 MB / 426.7 MB Notification: Performance of Templates: time 0.4185/2.089, allocations: 150.3 MB / 0.837 GB, free: 142.8 MB / 426.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@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:220:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp114 = 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:220:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp114 = 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'