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_YD.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_YD,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD") Notification: Performance of loadModel(Modelica): time 1.742/1.742, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005739/0.0005742, allocations: 8 kB / 264 MB, free: 13.55 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08417/0.08477, allocations: 44.51 MB / 308.5 MB, free: 0.9648 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4417/0.5265, allocations: 147.8 MB / 456.3 MB, free: 9.777 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000344/0.5269, allocations: 104.8 kB / 456.4 MB, free: 9.719 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.122/2.649, allocations: 468.3 MB / 0.903 GB, free: 28.85 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.893e-06/2.649, allocations: 2.953 kB / 0.903 GB, free: 28.85 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.00103/2.65, allocations: 334.6 kB / 0.9033 GB, free: 28.81 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3951 * Number of variables: 3951 Notification: Performance of Generate backend data structure: time 0.05998/2.71, allocations: 14.41 MB / 0.9174 GB, free: 24.29 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/2.711, allocations: 10.31 kB / 0.9174 GB, free: 24.29 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04817/2.759, allocations: 6.746 MB / 0.924 GB, free: 23.48 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03379/2.793, allocations: 11.51 MB / 0.9352 GB, free: 22.14 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001492/2.794, allocations: 1.039 MB / 0.9362 GB, free: 22.11 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006352/2.8, allocations: 1.359 MB / 0.9376 GB, free: 22.1 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06962/2.87, allocations: 24.11 MB / 0.9611 GB, free: 20.41 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006521/2.871, allocations: 19.11 kB / 0.9611 GB, free: 20.41 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005471/2.876, allocations: 0.589 MB / 0.9617 GB, free: 20.41 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0012/2.878, allocations: 0.9349 MB / 0.9626 GB, free: 20.37 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05638/2.934, allocations: 22.05 MB / 0.9841 GB, free: 12.25 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5006/3.435, allocations: 77.42 MB / 1.06 GB, free: 27.22 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04067/3.475, allocations: 30.77 MB / 1.09 GB, free: 27.36 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07463/3.55, allocations: 32.67 MB / 1.122 GB, free: 24.52 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001066/3.55, allocations: 130.9 kB / 1.122 GB, free: 24.42 MB / 474.7 MB Notification: Performance of pre-optimization done (n=1021): time 1.6e-05/3.55, allocations: 0 / 1.122 GB, free: 24.42 MB / 474.7 MB Notification: Performance of matching and sorting (n=1029): time 0.6975/4.248, allocations: 94.41 MB / 1.214 GB, free: 54.73 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.7e-05/4.248, allocations: 169.3 kB / 1.214 GB, free: 54.62 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009692/4.257, allocations: 4.324 MB / 1.218 GB, free: 54.31 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002012/4.26, allocations: 168.5 kB / 1.219 GB, free: 54.28 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003469/4.263, allocations: 4.895 MB / 1.223 GB, free: 51.75 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004591/4.268, allocations: 3.367 MB / 1.227 GB, free: 49.56 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001341/4.269, allocations: 176.4 kB / 1.227 GB, free: 49.56 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0009087/4.27, allocations: 0.7106 MB / 1.227 GB, free: 49.23 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01434/4.284, allocations: 6.834 MB / 1.234 GB, free: 49.21 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01677/4.301, allocations: 8.545 MB / 1.243 GB, free: 47.53 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01804/4.319, allocations: 8.114 MB / 1.25 GB, free: 47.43 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.307e-05/4.319, allocations: 14.09 kB / 1.25 GB, free: 47.43 MB / 474.7 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.04894/4.368, allocations: 20.98 MB / 1.271 GB, free: 44.57 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.469e-05/4.368, allocations: 25.31 kB / 1.271 GB, free: 44.57 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001075/4.368, allocations: 39.47 kB / 1.271 GB, free: 44.57 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02429/4.393, allocations: 8.523 MB / 1.279 GB, free: 42.02 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008377/4.401, allocations: 1.408 MB / 1.281 GB, free: 41.98 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04521/4.446, allocations: 28.14 MB / 1.308 GB, free: 24.88 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00853/4.455, allocations: 426.3 kB / 1.309 GB, free: 24.74 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002582/4.458, allocations: 375.2 kB / 1.309 GB, free: 24.66 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: 12 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStepYDQS[1].y,booleanStepYDQS[2].y,booleanStepYDQS[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (735): * Single equations (assignments): 706 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 1} * Non-linear torn systems: 3 {6 9,6 9,46 263} Notification: Performance of prepare postOptimizeDAE: time 0.01482/4.472, allocations: 5.355 MB / 1.314 GB, free: 22.11 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003199/4.476, allocations: 0.6996 MB / 1.315 GB, free: 21.73 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05351/4.529, allocations: 21.43 MB / 1.336 GB, free: 11.16 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004081/4.53, allocations: 251.5 kB / 1.336 GB, free: 10.95 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.648e-05/4.53, allocations: 12 kB / 1.336 GB, free: 10.93 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000172/4.53, allocations: 44.12 kB / 1.336 GB, free: 10.93 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4402/4.97, allocations: 41.1 MB / 1.376 GB, free: 65.73 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001152/4.97, allocations: 4.344 kB / 1.376 GB, free: 65.73 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006878/4.977, allocations: 0.985 MB / 1.377 GB, free: 65.73 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02716/5.004, allocations: 8.614 MB / 1.386 GB, free: 65.53 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002217/5.007, allocations: 222.5 kB / 1.386 GB, free: 65.53 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05033/5.057, allocations: 32.51 MB / 1.418 GB, free: 54.74 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.374e-06/5.057, allocations: 3.812 kB / 1.418 GB, free: 54.74 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07139/5.128, allocations: 31.93 MB / 1.449 GB, free: 50.71 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007588/5.136, allocations: 2.376 MB / 1.451 GB, free: 49.75 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003466/5.14, allocations: 160.7 kB / 1.451 GB, free: 49.64 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00738/5.147, allocations: 396.5 kB / 1.452 GB, free: 49.52 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003245/5.15, allocations: 0.7952 MB / 1.452 GB, free: 49.36 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001763/5.152, allocations: 268.3 kB / 1.453 GB, free: 49.3 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.007655/5.16, allocations: 3.311 MB / 1.456 GB, free: 48.08 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.155e-06/5.16, allocations: 0 / 1.456 GB, free: 48.08 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01438/5.174, allocations: 2.656 MB / 1.458 GB, free: 47.8 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 10 (imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.zeroInductor.i0,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 12 (booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStepYDQS[1].y,booleanStepYDQS[2].y,booleanStepYDQS[3].y,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (520): * Single equations (assignments): 490 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 3 {6 9,6 9,46 263} Notification: Performance of Backend phase and start with SimCode phase: time 0.002925/5.177, allocations: 0.6128 MB / 1.459 GB, free: 47.57 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.04147/5.219, allocations: 17.82 MB / 1.476 GB, free: 40.37 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.504e-06/5.219, allocations: 0 / 1.476 GB, free: 40.37 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.03285/5.252, allocations: 10.34 MB / 1.487 GB, free: 35.89 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01614/5.268, allocations: 1.577 MB / 1.488 GB, free: 35.49 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08332/5.351, allocations: 36.32 MB / 1.524 GB, free: 4.75 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03832/5.389, allocations: 10.13 MB / 1.533 GB, free: 15.96 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003716/5.393, allocations: 0.5 MB / 1.534 GB, free: 15.5 MB / 0.4948 GB Notification: Performance of SimCode: time 1.984e-06/5.393, allocations: 0 / 1.534 GB, free: 15.5 MB / 0.4948 GB Notification: Performance of Templates: time 3.353/8.747, allocations: 1.047 GB / 2.581 GB, free: 47.18 MB / 0.5105 GB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.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_YDCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YDCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YDCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YDFunctions.cpp:417:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp250 = 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_YDFunctions.cpp:417:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp250 = 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_YDCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YDCalcHelperMain.o] Error 1\n'