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 1.767/1.767, allocations: 194.9 MB / 211.7 MB, free: 2.977 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003612/0.0003614, allocations: 8 kB / 264 MB, free: 13.53 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08229/0.08267, allocations: 44.5 MB / 308.5 MB, free: 0.9531 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4154/0.4981, allocations: 141.1 MB / 449.5 MB, free: 496 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002948/0.4985, allocations: 109.4 kB / 449.6 MB, free: 432 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.635/2.133, allocations: 352 MB / 0.7828 GB, free: 51.04 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.559e-06/2.133, allocations: 0 / 0.7828 GB, free: 51.04 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0008138/2.134, allocations: 255 kB / 0.783 GB, free: 50.99 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.04299/2.177, allocations: 10.94 MB / 0.7937 GB, free: 47.37 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/2.177, allocations: 10.44 kB / 0.7937 GB, free: 47.37 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03991/2.217, allocations: 5.412 MB / 0.799 GB, free: 46.63 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02765/2.245, allocations: 9.421 MB / 0.8082 GB, free: 39.47 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001065/2.246, allocations: 0.7905 MB / 0.809 GB, free: 38.68 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004728/2.251, allocations: 1.042 MB / 0.81 GB, free: 37.64 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05091/2.302, allocations: 17.93 MB / 0.8275 GB, free: 22.17 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004641/2.302, allocations: 27.73 kB / 0.8276 GB, free: 22.14 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003836/2.306, allocations: 452 kB / 0.828 GB, free: 21.7 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000855/2.307, allocations: 0.7366 MB / 0.8287 GB, free: 20.96 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04672/2.354, allocations: 16.73 MB / 0.845 GB, free: 4.199 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4204/2.774, allocations: 58.33 MB / 0.902 GB, free: 37.54 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02925/2.803, allocations: 23.47 MB / 0.9249 GB, free: 19.58 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05175/2.855, allocations: 21.62 MB / 0.946 GB, free: 8.699 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.312e-05/2.855, allocations: 105.6 kB / 0.9461 GB, free: 8.617 MB / 426.7 MB Notification: Performance of pre-optimization done (n=672): time 1.202e-05/2.855, allocations: 0 / 0.9461 GB, free: 8.617 MB / 426.7 MB Notification: Performance of matching and sorting (n=697): time 0.1126/2.968, allocations: 39.12 MB / 0.9843 GB, free: 5.355 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001187/2.968, allocations: 144.3 kB / 0.9845 GB, free: 5.254 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009475/2.978, allocations: 3.603 MB / 0.988 GB, free: 3.891 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001456/2.979, allocations: 123.5 kB / 0.9881 GB, free: 3.785 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00398/2.983, allocations: 4.001 MB / 0.992 GB, free: 0.6641 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003954/2.987, allocations: 2.321 MB / 0.9943 GB, free: 14.86 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001554/2.989, allocations: 133.2 kB / 0.9944 GB, free: 14.75 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0009634/2.99, allocations: 0.5999 MB / 0.995 GB, free: 14.31 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01178/3.002, allocations: 4.573 MB / 0.9995 GB, free: 11.25 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01439/3.016, allocations: 6.117 MB / 1.005 GB, free: 5.273 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01488/3.031, allocations: 5.588 MB / 1.011 GB, free: 260 kB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.358e-05/3.031, allocations: 12 kB / 1.011 GB, free: 248 kB / 458.7 MB Notification: Performance of matching and sorting (n=939) (initialization): time 0.04453/3.076, allocations: 13.99 MB / 1.025 GB, free: 4.977 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.869e-05/3.076, allocations: 20 kB / 1.025 GB, free: 4.957 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001104/3.076, allocations: 46.19 kB / 1.025 GB, free: 4.914 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01277/3.089, allocations: 4.039 MB / 1.029 GB, free: 1.637 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01212/3.101, allocations: 1.321 MB / 1.03 GB, free: 0.6172 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3309/3.432, allocations: 16.95 MB / 1.046 GB, free: 88.86 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006803/3.439, allocations: 356.3 kB / 1.047 GB, free: 88.86 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001994/3.441, allocations: 297.9 kB / 1.047 GB, free: 88.86 MB / 474.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.01135/3.452, allocations: 3.925 MB / 1.051 GB, free: 88.74 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002365/3.454, allocations: 0.5363 MB / 1.051 GB, free: 88.74 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03527/3.49, allocations: 13.4 MB / 1.064 GB, free: 88.15 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002169/3.49, allocations: 157.9 kB / 1.065 GB, free: 88.15 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.48e-05/3.49, allocations: 11.17 kB / 1.065 GB, free: 88.15 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001293/3.49, allocations: 34.25 kB / 1.065 GB, free: 88.15 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06545/3.556, allocations: 26.92 MB / 1.091 GB, free: 81.79 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.88e-05/3.556, allocations: 2.188 kB / 1.091 GB, free: 81.79 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005999/3.562, allocations: 0.8755 MB / 1.092 GB, free: 81.76 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01214/3.574, allocations: 3.922 MB / 1.096 GB, free: 80.58 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001517/3.576, allocations: 155 kB / 1.096 GB, free: 80.49 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0257/3.601, allocations: 20.9 MB / 1.116 GB, free: 65.13 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.96e-06/3.601, allocations: 5.094 kB / 1.116 GB, free: 65.13 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04479/3.646, allocations: 20.23 MB / 1.136 GB, free: 55.58 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005453/3.652, allocations: 1.665 MB / 1.138 GB, free: 54.6 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002501/3.654, allocations: 116.8 kB / 1.138 GB, free: 54.51 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006235/3.66, allocations: 302.5 kB / 1.138 GB, free: 54.43 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002152/3.663, allocations: 0.5099 MB / 1.138 GB, free: 54.33 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001185/3.664, allocations: 189.7 kB / 1.139 GB, free: 54.29 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.006575/3.67, allocations: 2.734 MB / 1.141 GB, free: 53.24 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.773e-06/3.67, allocations: 1.031 kB / 1.141 GB, free: 53.24 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01098/3.681, allocations: 1.993 MB / 1.143 GB, free: 53.03 MB / 474.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.00217/3.684, allocations: 0.5659 MB / 1.144 GB, free: 52.83 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02614/3.71, allocations: 11.84 MB / 1.155 GB, free: 44.4 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.855e-06/3.71, allocations: 0 / 1.155 GB, free: 44.4 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01504/3.725, allocations: 6.696 MB / 1.162 GB, free: 38.47 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009739/3.735, allocations: 1.172 MB / 1.163 GB, free: 37.59 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.106/3.841, allocations: 26.57 MB / 1.189 GB, free: 13.49 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02155/3.862, allocations: 6.915 MB / 1.196 GB, free: 8.258 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004721/3.867, allocations: 439.6 kB / 1.196 GB, free: 7.855 MB / 474.7 MB Notification: Performance of SimCode: time 2.635e-06/3.867, allocations: 2.516 kB / 1.196 GB, free: 7.855 MB / 474.7 MB Notification: Performance of Templates: time 2.968/6.835, allocations: 0.8942 GB / 2.09 GB, free: 113.8 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=2 -DSUNDIALS_MINOR_VERSION=6 -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: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'