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.IMC_Initialize.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.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 1.863/1.863, allocations: 194.8 MB / 212.3 MB, free: 3.016 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005591/0.0005595, allocations: 8 kB / 264.5 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1323/0.1328, allocations: 44.51 MB / 309 MB, free: 1.031 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5467/0.6796, allocations: 141.1 MB / 450.1 MB, free: 14.95 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004853/0.6802, allocations: 108.9 kB / 450.2 MB, free: 14.89 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.737/2.417, allocations: 351.9 MB / 0.7833 GB, free: 50.99 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.635e-06/2.417, allocations: 0 / 0.7833 GB, free: 50.99 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0009612/2.418, allocations: 251.5 kB / 0.7835 GB, free: 50.95 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: 3009 * Number of variables: 3009 Notification: Performance of Generate backend data structure: time 0.05361/2.472, allocations: 10.94 MB / 0.7942 GB, free: 47.27 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.653e-05/2.472, allocations: 10.88 kB / 0.7942 GB, free: 47.27 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04524/2.517, allocations: 5.404 MB / 0.7995 GB, free: 46.15 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03261/2.55, allocations: 9.429 MB / 0.8087 GB, free: 38.68 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001222/2.551, allocations: 0.7905 MB / 0.8095 GB, free: 37.89 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005638/2.557, allocations: 1.042 MB / 0.8105 GB, free: 36.85 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.061/2.618, allocations: 18.03 MB / 0.8281 GB, free: 20.64 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000601/2.619, allocations: 19.75 kB / 0.8281 GB, free: 20.62 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00452/2.623, allocations: 455.6 kB / 0.8286 GB, free: 20.18 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001053/2.624, allocations: 0.7327 MB / 0.8293 GB, free: 19.44 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0545/2.679, allocations: 16.73 MB / 0.8456 GB, free: 2.68 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5192/3.198, allocations: 58.34 MB / 0.9026 GB, free: 36.59 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03841/3.236, allocations: 23.48 MB / 0.9255 GB, free: 18.62 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06073/3.297, allocations: 21.62 MB / 0.9466 GB, free: 7.746 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.068e-05/3.297, allocations: 98.81 kB / 0.9467 GB, free: 7.664 MB / 426.7 MB Notification: Performance of pre-optimization done (n=672): time 1.118e-05/3.297, allocations: 0 / 0.9467 GB, free: 7.664 MB / 426.7 MB Notification: Performance of matching and sorting (n=697): time 0.1575/3.455, allocations: 39.12 MB / 0.9849 GB, free: 4.102 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001289/3.455, allocations: 147.9 kB / 0.9851 GB, free: 3.996 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01025/3.465, allocations: 4.048 MB / 0.989 GB, free: 2.469 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001891/3.467, allocations: 127.3 kB / 0.9891 GB, free: 2.359 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004443/3.472, allocations: 3.997 MB / 0.9931 GB, free: 15.24 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004695/3.477, allocations: 2.317 MB / 0.9953 GB, free: 13.44 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001266/3.478, allocations: 130.8 kB / 0.9954 GB, free: 13.34 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0007803/3.479, allocations: 0.5987 MB / 0.996 GB, free: 12.9 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01326/3.492, allocations: 4.568 MB / 1 GB, free: 9.875 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01565/3.508, allocations: 6.153 MB / 1.006 GB, free: 3.863 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.4011/3.909, allocations: 5.776 MB / 1.012 GB, free: 78.48 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.569e-05/3.909, allocations: 10.81 kB / 1.012 GB, free: 78.48 MB / 458.7 MB Notification: Performance of matching and sorting (n=939) (initialization): time 0.04403/3.953, allocations: 13.77 MB / 1.026 GB, free: 78.2 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.79e-05/3.953, allocations: 25.84 kB / 1.026 GB, free: 78.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001181/3.953, allocations: 41.56 kB / 1.026 GB, free: 78.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01508/3.968, allocations: 4.027 MB / 1.03 GB, free: 78.12 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01083/3.979, allocations: 1.322 MB / 1.031 GB, free: 78.12 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02916/4.008, allocations: 16.96 MB / 1.047 GB, free: 71.67 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00899/4.017, allocations: 355.9 kB / 1.048 GB, free: 71.67 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002305/4.02, allocations: 300.2 kB / 1.048 GB, free: 71.67 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 197 * 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 (675): * Single equations (assignments): 636 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 31 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(7,59.2%) 28,(1,100.0%) 1} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,12 76} Notification: Performance of prepare postOptimizeDAE: time 0.01376/4.034, allocations: 3.927 MB / 1.052 GB, free: 71.56 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002963/4.037, allocations: 0.5332 MB / 1.052 GB, free: 71.56 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04121/4.078, allocations: 13.42 MB / 1.066 GB, free: 70.39 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002369/4.078, allocations: 157 kB / 1.066 GB, free: 70.31 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.499e-05/4.078, allocations: 14.3 kB / 1.066 GB, free: 70.31 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001575/4.078, allocations: 30.38 kB / 1.066 GB, free: 70.31 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07648/4.155, allocations: 26.92 MB / 1.092 GB, free: 58.16 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001294/4.155, allocations: 2.75 kB / 1.092 GB, free: 58.16 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008085/4.163, allocations: 0.8766 MB / 1.093 GB, free: 58.14 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01417/4.177, allocations: 3.92 MB / 1.097 GB, free: 56.95 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001848/4.179, allocations: 156.6 kB / 1.097 GB, free: 56.87 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0298/4.209, allocations: 20.89 MB / 1.117 GB, free: 41.5 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.021e-06/4.209, allocations: 6.5 kB / 1.117 GB, free: 41.5 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0516/4.261, allocations: 19.86 MB / 1.137 GB, free: 28.73 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005992/4.267, allocations: 1.663 MB / 1.138 GB, free: 27.22 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003427/4.27, allocations: 109.8 kB / 1.138 GB, free: 27.11 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00761/4.278, allocations: 306.2 kB / 1.139 GB, free: 26.89 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00259/4.281, allocations: 0.5183 MB / 1.139 GB, free: 26.57 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001215/4.282, allocations: 199.2 kB / 1.139 GB, free: 26.4 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.006942/4.289, allocations: 2.726 MB / 1.142 GB, free: 24.11 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.21e-07/4.289, allocations: 0 / 1.142 GB, free: 24.11 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01171/4.301, allocations: 1.992 MB / 1.144 GB, free: 22.13 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 10 (imcQS.inertiaRotor.phi,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.w,imc.inertiaRotor.phi,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.strayReluctance.Phi.re,imc.stator.strayReluctance.Phi.im,imc.stator.zeroInductor.i0,loadInertia.w) * 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 (455): * Single equations (assignments): 413 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 31 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(2,100.0%) 12,(1,100.0%) 1,(1,100.0%) 12,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,12 76} Notification: Performance of Backend phase and start with SimCode phase: time 0.002579/4.303, allocations: 0.556 MB / 1.145 GB, free: 21.73 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.03182/4.335, allocations: 11.84 MB / 1.156 GB, free: 11.41 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.919e-06/4.335, allocations: 0 / 1.156 GB, free: 11.41 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01879/4.354, allocations: 6.693 MB / 1.163 GB, free: 5.461 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01064/4.365, allocations: 1.179 MB / 1.164 GB, free: 4.543 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.469/4.834, allocations: 26.95 MB / 1.19 GB, free: 84.04 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02175/4.855, allocations: 6.911 MB / 1.197 GB, free: 83.17 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004198/4.86, allocations: 440.7 kB / 1.197 GB, free: 83.17 MB / 474.7 MB Notification: Performance of SimCode: time 2.384e-06/4.86, allocations: 0 / 1.197 GB, free: 83.17 MB / 474.7 MB Notification: Performance of Templates: time 3.629/8.489, allocations: 0.8941 GB / 2.091 GB, free: 109.2 MB / 0.4948 GB 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/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.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:418:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp234 = 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:418:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp234 = 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'