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_YD.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_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.847/1.847, allocations: 194.8 MB / 212.3 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000344/0.000344, allocations: 12 kB / 264.5 MB, free: 13.6 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09134/0.0917, allocations: 44.49 MB / 309 MB, free: 1.035 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4929/0.5846, allocations: 147.8 MB / 456.8 MB, free: 8.297 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003551/0.585, allocations: 108.8 kB / 456.9 MB, free: 8.234 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.322/2.907, allocations: 468.3 MB / 0.9035 GB, free: 29.65 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.845e-06/2.907, allocations: 0 / 0.9035 GB, free: 29.65 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001271/2.908, allocations: 332 kB / 0.9038 GB, free: 29.61 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.07174/2.98, allocations: 14.41 MB / 0.9179 GB, free: 25.1 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/2.98, allocations: 11.38 kB / 0.9179 GB, free: 25.1 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05494/3.035, allocations: 6.749 MB / 0.9245 GB, free: 24.29 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03907/3.074, allocations: 11.51 MB / 0.9357 GB, free: 22.94 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00179/3.076, allocations: 1.044 MB / 0.9367 GB, free: 22.91 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007567/3.083, allocations: 1.359 MB / 0.9381 GB, free: 22.9 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08027/3.164, allocations: 24.23 MB / 0.9617 GB, free: 21.21 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007344/3.164, allocations: 22.5 kB / 0.9618 GB, free: 21.21 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005645/3.17, allocations: 0.5774 MB / 0.9623 GB, free: 21.21 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001415/3.171, allocations: 0.9366 MB / 0.9632 GB, free: 21.18 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06546/3.237, allocations: 22.06 MB / 0.9848 GB, free: 12.2 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5694/3.806, allocations: 77.56 MB / 1.061 GB, free: 27.77 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04746/3.854, allocations: 30.76 MB / 1.091 GB, free: 27.91 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08933/3.943, allocations: 32.67 MB / 1.122 GB, free: 24.29 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001334/3.944, allocations: 129.2 kB / 1.123 GB, free: 24.19 MB / 474.7 MB Notification: Performance of pre-optimization done (n=1021): time 1.547e-05/3.944, allocations: 0 / 1.123 GB, free: 24.19 MB / 474.7 MB Notification: Performance of matching and sorting (n=1029): time 0.8977/4.841, allocations: 94.44 MB / 1.215 GB, free: 55.78 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001132/4.841, allocations: 173 kB / 1.215 GB, free: 55.68 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01114/4.853, allocations: 4.86 MB / 1.22 GB, free: 55.34 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002317/4.855, allocations: 168 kB / 1.22 GB, free: 55.3 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003766/4.859, allocations: 4.892 MB / 1.225 GB, free: 52.79 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.005501/4.864, allocations: 3.369 MB / 1.228 GB, free: 50.59 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002074/4.866, allocations: 171.2 kB / 1.228 GB, free: 50.59 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001074/4.867, allocations: 0.7127 MB / 1.229 GB, free: 50.26 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01781/4.885, allocations: 6.831 MB / 1.235 GB, free: 50.24 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02031/4.906, allocations: 8.585 MB / 1.244 GB, free: 48.56 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02078/4.926, allocations: 8.115 MB / 1.252 GB, free: 48.45 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.002e-05/4.927, allocations: 9.688 kB / 1.252 GB, free: 48.45 MB / 474.7 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.05782/4.984, allocations: 20.98 MB / 1.272 GB, free: 44.88 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.063e-05/4.985, allocations: 25.44 kB / 1.272 GB, free: 44.88 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001388/4.985, allocations: 40.88 kB / 1.272 GB, free: 44.88 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02938/5.014, allocations: 8.518 MB / 1.281 GB, free: 42.34 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01132/5.025, allocations: 1.408 MB / 1.282 GB, free: 42.29 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05048/5.076, allocations: 28.15 MB / 1.31 GB, free: 25.19 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01102/5.087, allocations: 428 kB / 1.31 GB, free: 25.05 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002976/5.09, allocations: 377.8 kB / 1.31 GB, free: 24.97 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.01707/5.107, allocations: 5.36 MB / 1.316 GB, free: 22.41 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003641/5.111, allocations: 0.6998 MB / 1.316 GB, free: 22.04 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06208/5.173, allocations: 21.42 MB / 1.337 GB, free: 11.05 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003447/5.173, allocations: 250.2 kB / 1.337 GB, free: 10.83 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.13e-05/5.173, allocations: 14.73 kB / 1.337 GB, free: 10.82 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002165/5.174, allocations: 49.47 kB / 1.337 GB, free: 10.82 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4911/5.665, allocations: 41.33 MB / 1.378 GB, free: 66.99 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001522/5.665, allocations: 5.828 kB / 1.378 GB, free: 66.99 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009082/5.674, allocations: 0.9899 MB / 1.379 GB, free: 66.99 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03069/5.705, allocations: 8.603 MB / 1.387 GB, free: 66.79 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002602/5.707, allocations: 222.7 kB / 1.387 GB, free: 66.79 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05687/5.764, allocations: 32.51 MB / 1.419 GB, free: 56 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.001e-06/5.764, allocations: 4.641 kB / 1.419 GB, free: 56 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08438/5.849, allocations: 31.49 MB / 1.45 GB, free: 51.88 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.008823/5.858, allocations: 2.374 MB / 1.452 GB, free: 50.93 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004446/5.862, allocations: 160 kB / 1.452 GB, free: 50.81 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009826/5.872, allocations: 394.1 kB / 1.453 GB, free: 50.7 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003927/5.876, allocations: 0.7961 MB / 1.454 GB, free: 50.53 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002487/5.879, allocations: 274.4 kB / 1.454 GB, free: 50.46 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.008425/5.887, allocations: 3.302 MB / 1.457 GB, free: 49.25 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.51e-07/5.887, allocations: 3.125 kB / 1.457 GB, free: 49.25 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01591/5.903, allocations: 2.652 MB / 1.46 GB, free: 48.97 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.003558/5.907, allocations: 0.6271 MB / 1.46 GB, free: 48.74 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.04882/5.955, allocations: 17.8 MB / 1.478 GB, free: 41.54 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.013e-05/5.955, allocations: 3.969 kB / 1.478 GB, free: 41.54 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.03006/5.986, allocations: 10.35 MB / 1.488 GB, free: 37.05 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01428/6, allocations: 1.578 MB / 1.489 GB, free: 36.65 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08911/6.089, allocations: 36.19 MB / 1.525 GB, free: 5.797 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02824/6.117, allocations: 9.683 MB / 1.534 GB, free: 15.96 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004247/6.122, allocations: 0.5018 MB / 1.535 GB, free: 15.5 MB / 0.4948 GB Notification: Performance of SimCode: time 1.393e-06/6.122, allocations: 0 / 1.535 GB, free: 15.5 MB / 0.4948 GB Notification: Performance of Templates: time 3.726/9.848, allocations: 1.045 GB / 2.579 GB, free: 67.99 MB / 0.5261 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=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_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'