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_Initialize.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_Initialize,tolerance=1e-06,outputFormat="empty",numberOfIntervals=300000,variableFilter="",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize") Notification: Performance of loadModel(Modelica): time 2.008/2.008, allocations: 194.9 MB / 211.7 MB, free: 2.984 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003698/0.00037, allocations: 8 kB / 263.9 MB, free: 13.57 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08155/0.08195, allocations: 44.51 MB / 308.4 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize): time 0.04005/0.122, allocations: 27.1 MB / 335.5 MB, free: 5.805 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02164/0.1437, allocations: 8.578 MB / 344.1 MB, free: 13.21 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006623/0.1504, allocations: 187.3 kB / 344.2 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007105/0.1575, allocations: 1.827 MB / 346.1 MB, free: 11.19 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01386/0.1715, allocations: 3.241 MB / 349.3 MB, free: 7.938 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006907/0.1784, allocations: 1.43 MB / 350.7 MB, free: 6.508 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.02411/0.2025, allocations: 11.82 MB / 362.6 MB, free: 10.67 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2671/0.4697, allocations: 17.42 MB / 380 MB, free: 14.23 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008453/0.4782, allocations: 4.556 MB / 384.5 MB, free: 14.23 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008784/0.4871, allocations: 5.111 MB / 389.7 MB, free: 14.22 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003034/0.4902, allocations: 0.7309 MB / 390.4 MB, free: 14.22 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00494/0.4951, allocations: 1.011 MB / 391.4 MB, free: 14.22 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00355/0.4987, allocations: 2.324 MB / 393.7 MB, free: 14.22 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004196/0.503, allocations: 2.414 MB / 396.1 MB, free: 14.19 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02328/0.5263, allocations: 21.06 MB / 417.2 MB, free: 2.641 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.5263, allocations: 0 / 417.2 MB, free: 2.641 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.81e-06/0.5264, allocations: 0 / 417.2 MB, free: 2.641 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0005066/0.5269, allocations: 0 / 417.2 MB, free: 2.641 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: 3009 * Number of variables: 3009 Notification: Performance of Generate backend data structure: time 0.04119/0.5681, allocations: 12.42 MB / 429.6 MB, free: 8.086 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.5681, allocations: 8.031 kB / 429.6 MB, free: 8.078 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05746/0.6256, allocations: 7.697 MB / 437.3 MB, free: 0.9648 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01939/0.645, allocations: 7.196 MB / 444.5 MB, free: 12.75 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001086/0.6462, allocations: 0.7997 MB / 445.3 MB, free: 12.3 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004248/0.6504, allocations: 1.063 MB / 446.4 MB, free: 11.59 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05338/0.7039, allocations: 17.6 MB / 464 MB, free: 12.95 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005164/0.7044, allocations: 11.91 kB / 464 MB, free: 12.94 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003528/0.708, allocations: 442.8 kB / 464.4 MB, free: 12.52 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001034/0.709, allocations: 0.6669 MB / 465.1 MB, free: 11.84 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04919/0.7583, allocations: 16.91 MB / 482 MB, free: 10.91 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1364/0.8947, allocations: 57.28 MB / 0.5266 GB, free: 1.254 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3898/1.285, allocations: 40 MB / 0.5657 GB, free: 95.54 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02757/1.312, allocations: 12.5 MB / 0.5779 GB, free: 89.55 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.502e-05/1.312, allocations: 81.58 kB / 0.578 GB, free: 89.48 MB / 426.7 MB Notification: Performance of pre-optimization done (n=410): time 8.096e-06/1.312, allocations: 0 / 0.578 GB, free: 89.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=435): time 0.05947/1.372, allocations: 22.3 MB / 0.5998 GB, free: 79.46 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.413e-05/1.372, allocations: 123.5 kB / 0.5999 GB, free: 79.37 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009523/1.382, allocations: 4.735 MB / 0.6045 GB, free: 77.59 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007527/1.382, allocations: 97.48 kB / 0.6046 GB, free: 77.5 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002996/1.385, allocations: 4.563 MB / 0.6091 GB, free: 73.96 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001762/1.387, allocations: 1.497 MB / 0.6105 GB, free: 72.8 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007031/1.388, allocations: 127.2 kB / 0.6106 GB, free: 72.71 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004149/1.388, allocations: 0.5621 MB / 0.6112 GB, free: 72.28 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006428/1.395, allocations: 3 MB / 0.6141 GB, free: 71.02 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007853/1.403, allocations: 5.253 MB / 0.6192 GB, free: 64.9 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007947/1.411, allocations: 4.102 MB / 0.6233 GB, free: 60.78 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.853e-05/1.411, allocations: 20 kB / 0.6233 GB, free: 60.76 MB / 426.7 MB Notification: Performance of matching and sorting (n=811) (initialization): time 0.0233/1.434, allocations: 9.845 MB / 0.6329 GB, free: 50.86 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.397e-05/1.434, allocations: 40.61 kB / 0.6329 GB, free: 50.82 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001049/1.434, allocations: 76 kB / 0.633 GB, free: 50.75 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005992/1.44, allocations: 1.683 MB / 0.6346 GB, free: 49.05 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007/1.447, allocations: 1.416 MB / 0.636 GB, free: 47.64 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0282/1.476, allocations: 16.94 MB / 0.6526 GB, free: 30.16 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006431/1.482, allocations: 343.8 kB / 0.6529 GB, free: 29.83 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001372/1.483, allocations: 304 kB / 0.6532 GB, free: 29.53 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 331 * 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 (718): * Single equations (assignments): 714 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(7,69.4%) 28,(1,100.0%) 1,(14,41.8%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009076/1.493, allocations: 3.954 MB / 0.6571 GB, free: 25.56 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001479/1.494, allocations: 0.4978 MB / 0.6575 GB, free: 25.06 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02023/1.514, allocations: 7.942 MB / 0.6653 GB, free: 17.02 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.671e-05/1.514, allocations: 44 kB / 0.6653 GB, free: 16.97 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.564e-05/1.515, allocations: 20 kB / 0.6654 GB, free: 16.95 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.793e-05/1.515, allocations: 19.92 kB / 0.6654 GB, free: 16.93 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04314/1.558, allocations: 17.77 MB / 0.6827 GB, free: 15.01 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.858e-05/1.558, allocations: 7.953 kB / 0.6827 GB, free: 15 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004844/1.563, allocations: 0.7575 MB / 0.6835 GB, free: 14.25 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006305/1.569, allocations: 1.566 MB / 0.685 GB, free: 12.66 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009271/1.57, allocations: 99.97 kB / 0.6851 GB, free: 12.57 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2841/1.854, allocations: 19.92 MB / 0.7046 GB, free: 129.7 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.378e-06/1.854, allocations: 12.47 kB / 0.7046 GB, free: 129.7 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02629/1.881, allocations: 11.66 MB / 0.716 GB, free: 125.5 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003726/1.884, allocations: 1.186 MB / 0.7171 GB, free: 125.1 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001637/1.886, allocations: 97.39 kB / 0.7172 GB, free: 125 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004487/1.891, allocations: 249 kB / 0.7174 GB, free: 124.9 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00137/1.892, allocations: 331.8 kB / 0.7178 GB, free: 124.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005993/1.893, allocations: 134.3 kB / 0.7179 GB, free: 124.9 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.007253/1.9, allocations: 3.182 MB / 0.721 GB, free: 123.7 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.106e-06/1.9, allocations: 0 / 0.721 GB, free: 123.7 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01011/1.91, allocations: 1.899 MB / 0.7229 GB, free: 123.5 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,imc.inertiaRotor.w,imc.stator.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.strayReluctance.Phi.re,imc.stator.strayReluctance.Phi.im,loadInertia.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 (376): * Single equations (assignments): 369 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 1,(14,41.3%) 44,(2,100.0%) 12,(1,100.0%) 12,(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001196/1.911, allocations: 274 kB / 0.7231 GB, free: 123.3 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01859/1.93, allocations: 8.326 MB / 0.7312 GB, free: 119.9 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.18e-05/1.93, allocations: 2.953 kB / 0.7312 GB, free: 119.9 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0106/1.941, allocations: 4.739 MB / 0.7359 GB, free: 117.5 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007042/1.948, allocations: 1.191 MB / 0.737 GB, free: 117.1 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04688/1.995, allocations: 23.03 MB / 0.7595 GB, free: 103 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0133/2.008, allocations: 6.829 MB / 0.7662 GB, free: 97.8 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002457/2.01, allocations: 442.2 kB / 0.7666 GB, free: 97.39 MB / 442.7 MB Notification: Performance of SimCode: time 1.988e-06/2.01, allocations: 4 kB / 0.7666 GB, free: 97.39 MB / 442.7 MB Notification: Performance of Templates: time 1.228/3.238, allocations: 436.6 MB / 1.193 GB, free: 136.2 MB / 442.7 MB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.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_InitializeCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_InitializeCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_InitializeCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_InitializeFunctions.cpp:112:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp106 = 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_InitializeFunctions.cpp:112:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp106 = 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_InitializeCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_InitializeCalcHelperMain.o] Error 1\n'