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.SynchronousMachines.SMR_CurrentSource.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.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|currentController.y.1.|currentController.y.2.|currentController.y.3.",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") Notification: Performance of loadModel(Modelica): time 1.911/1.911, allocations: 194.8 MB / 211.6 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003711/0.0003713, allocations: 8 kB / 263.9 MB, free: 13.59 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08346/0.08385, allocations: 44.51 MB / 308.4 MB, free: 1 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.05302/0.1369, allocations: 33.06 MB / 341.4 MB, free: 15.83 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02621/0.1632, allocations: 10.07 MB / 351.5 MB, free: 5.734 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008096/0.1713, allocations: 247.1 kB / 351.8 MB, free: 5.492 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00826/0.1796, allocations: 2.126 MB / 353.9 MB, free: 3.355 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01613/0.1958, allocations: 3.747 MB / 357.6 MB, free: 15.6 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008516/0.2043, allocations: 1.813 MB / 359.4 MB, free: 13.79 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.02171/0.2261, allocations: 10.44 MB / 369.9 MB, free: 3.32 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2714/0.4975, allocations: 19.75 MB / 389.6 MB, free: 10.12 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008189/0.5058, allocations: 4.711 MB / 394.4 MB, free: 10.12 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009056/0.5149, allocations: 5.582 MB / 399.9 MB, free: 10.11 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003639/0.5186, allocations: 0.7746 MB / 400.7 MB, free: 10.11 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005472/0.5241, allocations: 1.08 MB / 401.8 MB, free: 10.11 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00397/0.5281, allocations: 2.543 MB / 404.3 MB, free: 10.11 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004223/0.5324, allocations: 2.595 MB / 406.9 MB, free: 10.08 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02707/0.5595, allocations: 22.06 MB / 429 MB, free: 9.566 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.275e-06/0.5595, allocations: 0 / 429 MB, free: 9.566 MB / 330.7 MB Notification: Performance of FrontEnd: time 6.812e-06/0.5595, allocations: 4 kB / 429 MB, free: 9.562 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0005589/0.5601, allocations: 0 / 429 MB, free: 9.562 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3509 * Number of variables: 3509 Notification: Performance of Generate backend data structure: time 0.0429/0.603, allocations: 12.93 MB / 441.9 MB, free: 14.03 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/0.6031, allocations: 8.031 kB / 441.9 MB, free: 14.02 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06567/0.6688, allocations: 9.032 MB / 451 MB, free: 5.609 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01889/0.6877, allocations: 7.338 MB / 458.3 MB, free: 1.23 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001279/0.689, allocations: 0.9409 MB / 459.2 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004716/0.6938, allocations: 1.245 MB / 460.5 MB, free: 15.53 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05893/0.7527, allocations: 20.03 MB / 480.5 MB, free: 11.48 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005441/0.7533, allocations: 27.8 kB / 480.5 MB, free: 11.45 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003736/0.7571, allocations: 0.511 MB / 481 MB, free: 10.95 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001053/0.7582, allocations: 0.741 MB / 481.8 MB, free: 10.21 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05413/0.8123, allocations: 18.85 MB / 0.4889 GB, free: 7.352 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7424/1.555, allocations: 63.53 MB / 0.551 GB, free: 99.61 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04734/1.602, allocations: 56.88 MB / 0.6065 GB, free: 47.31 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02793/1.63, allocations: 11.55 MB / 0.6178 GB, free: 43.61 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.31e-05/1.63, allocations: 73.06 kB / 0.6178 GB, free: 43.54 MB / 426.8 MB Notification: Performance of pre-optimization done (n=358): time 7.107e-06/1.63, allocations: 0 / 0.6178 GB, free: 43.54 MB / 426.8 MB Notification: Performance of matching and sorting (n=398): time 0.05016/1.68, allocations: 18.14 MB / 0.6356 GB, free: 33.47 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.018e-05/1.681, allocations: 97.8 kB / 0.6357 GB, free: 33.4 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01067/1.691, allocations: 5.395 MB / 0.6409 GB, free: 30.54 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006359/1.692, allocations: 93.31 kB / 0.641 GB, free: 30.46 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003461/1.695, allocations: 5.649 MB / 0.6465 GB, free: 25.47 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00161/1.697, allocations: 1.401 MB / 0.6479 GB, free: 24.27 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007102/1.698, allocations: 156.9 kB / 0.648 GB, free: 24.15 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0004747/1.698, allocations: 0.6186 MB / 0.6486 GB, free: 23.61 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006643/1.705, allocations: 3.074 MB / 0.6516 GB, free: 21.98 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008584/1.713, allocations: 6.722 MB / 0.6582 GB, free: 14.86 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008317/1.722, allocations: 4.585 MB / 0.6627 GB, free: 10.25 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001009/1.722, allocations: 40 kB / 0.6627 GB, free: 10.21 MB / 426.8 MB Notification: Performance of matching and sorting (n=987) (initialization): time 0.02434/1.746, allocations: 10.52 MB / 0.673 GB, free: 15.64 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001408/1.747, allocations: 67.78 kB / 0.6731 GB, free: 15.57 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002134/1.747, allocations: 124 kB / 0.6732 GB, free: 15.45 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003648/1.75, allocations: 0.9863 MB / 0.6741 GB, free: 14.45 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009104/1.76, allocations: 1.825 MB / 0.6759 GB, free: 12.62 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01782/1.777, allocations: 9.783 MB / 0.6855 GB, free: 2.441 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007612/1.785, allocations: 439.3 kB / 0.6859 GB, free: 2.012 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001507/1.787, allocations: 423.9 kB / 0.6863 GB, free: 1.598 MB / 442.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 568 * 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 (938): * Single equations (assignments): 933 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01135/1.798, allocations: 4.459 MB / 0.6907 GB, free: 13.12 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001569/1.8, allocations: 0.544 MB / 0.6912 GB, free: 12.57 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01769/1.817, allocations: 6.595 MB / 0.6976 GB, free: 5.93 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.042e-05/1.817, allocations: 40 kB / 0.6977 GB, free: 5.891 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.278e-05/1.817, allocations: 12 kB / 0.6977 GB, free: 5.879 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.484e-05/1.818, allocations: 19.92 kB / 0.6977 GB, free: 5.859 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2936/2.111, allocations: 16.11 MB / 0.7134 GB, free: 147.3 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.077e-05/2.111, allocations: 5.594 kB / 0.7134 GB, free: 147.3 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004835/2.116, allocations: 0.7716 MB / 0.7142 GB, free: 147.3 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003049/2.119, allocations: 0.787 MB / 0.715 GB, free: 147.1 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007236/2.12, allocations: 88.52 kB / 0.715 GB, free: 147 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01307/2.133, allocations: 8.875 MB / 0.7237 GB, free: 140.9 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.533e-06/2.133, allocations: 3.969 kB / 0.7237 GB, free: 140.9 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02058/2.154, allocations: 9.614 MB / 0.7331 GB, free: 136.9 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003427/2.157, allocations: 1.113 MB / 0.7342 GB, free: 136.5 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001563/2.159, allocations: 71.31 kB / 0.7343 GB, free: 136.5 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004011/2.163, allocations: 234.8 kB / 0.7345 GB, free: 136.4 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009488/2.164, allocations: 268.1 kB / 0.7347 GB, free: 136.4 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000447/2.164, allocations: 110.9 kB / 0.7348 GB, free: 136.4 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.008275/2.173, allocations: 3.552 MB / 0.7383 GB, free: 135.1 MB / 458.8 MB Notification: Performance of sort global known variables: time 8.85e-07/2.173, allocations: 2.734 kB / 0.7383 GB, free: 135.1 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.01008/2.183, allocations: 1.989 MB / 0.7403 GB, free: 134.9 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.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 (377): * Single equations (assignments): 372 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001033/2.184, allocations: 249.3 kB / 0.7405 GB, free: 134.7 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.01677/2.201, allocations: 8.073 MB / 0.7484 GB, free: 131.4 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 9.11e-06/2.201, allocations: 0 / 0.7484 GB, free: 131.4 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.007586/2.208, allocations: 3.578 MB / 0.7519 GB, free: 129.7 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00704/2.215, allocations: 1.186 MB / 0.753 GB, free: 129.3 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04619/2.262, allocations: 24.56 MB / 0.777 GB, free: 107.7 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01386/2.275, allocations: 7.569 MB / 0.7844 GB, free: 100.4 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002473/2.278, allocations: 499.3 kB / 0.7849 GB, free: 99.89 MB / 458.8 MB Notification: Performance of SimCode: time 1.849e-06/2.278, allocations: 0 / 0.7849 GB, free: 99.89 MB / 458.8 MB Notification: Performance of Templates: time 1.436/3.714, allocations: 448.8 MB / 1.223 GB, free: 133.9 MB / 458.8 MB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.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.SynchronousMachines.SMR_CurrentSourceCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSourceCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSourceCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSourceFunctions.cpp:112:42: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp97 = 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.SynchronousMachines.SMR_CurrentSourceFunctions.cpp:112:85: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp97 = 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.SynchronousMachines.SMR_CurrentSourceCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSourceCalcHelperMain.o] Error 1\n'