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.SMPM_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.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|terminalBoxQS.plugSupply.pin.1..v.re|terminalBoxQS.plugSupply.pin.1..v.im|terminalBoxQS.plugSupply.pin.1..i.re|terminalBoxQS.plugSupply.pin.1..i.im|terminalBoxQS.plugSupply.pin.2..v.re|terminalBoxQS.plugSupply.pin.2..v.im|terminalBoxQS.plugSupply.pin.2..i.re|terminalBoxQS.plugSupply.pin.2..i.im|terminalBoxQS.plugSupply.pin.3..v.re|terminalBoxQS.plugSupply.pin.3..v.im|terminalBoxQS.plugSupply.pin.3..i.re|terminalBoxQS.plugSupply.pin.3..i.im",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadModel(Modelica): time 1.871/1.871, allocations: 194.8 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003566/0.0003568, allocations: 8 kB / 263.9 MB, free: 13.58 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08013/0.08052, 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.SMPM_CurrentSource): time 0.05221/0.1328, allocations: 34.46 MB / 342.8 MB, free: 14.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02744/0.1602, allocations: 10.59 MB / 353.4 MB, free: 3.812 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009015/0.1693, allocations: 251.1 kB / 353.7 MB, free: 3.566 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008809/0.1782, allocations: 2.242 MB / 355.9 MB, free: 1.312 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01705/0.1953, allocations: 3.907 MB / 359.8 MB, free: 13.39 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009171/0.2045, allocations: 1.854 MB / 361.7 MB, free: 11.54 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.02224/0.2267, allocations: 10.75 MB / 372.4 MB, free: 0.7734 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2724/0.4992, allocations: 20.07 MB / 392.5 MB, free: 9.32 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008/0.5072, allocations: 4.842 MB / 397.3 MB, free: 9.316 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008693/0.5159, allocations: 5.726 MB / 403.1 MB, free: 9.309 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003063/0.519, allocations: 0.791 MB / 403.9 MB, free: 9.309 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005142/0.5242, allocations: 1.099 MB / 405 MB, free: 9.309 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003778/0.528, allocations: 2.599 MB / 407.6 MB, free: 9.309 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004145/0.5322, allocations: 2.67 MB / 410.2 MB, free: 9.254 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02784/0.5601, allocations: 22.5 MB / 432.7 MB, free: 6.367 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.234e-06/0.5601, allocations: 0 / 432.7 MB, free: 6.367 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.386e-06/0.5602, allocations: 0 / 432.7 MB, free: 6.367 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0005035/0.5607, allocations: 0 / 432.7 MB, free: 6.367 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: 3594 * Number of variables: 3594 Notification: Performance of Generate backend data structure: time 0.04255/0.6032, allocations: 13.27 MB / 446 MB, free: 10.52 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.486e-05/0.6033, allocations: 8.031 kB / 446 MB, free: 10.52 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06511/0.6684, allocations: 9.112 MB / 455.1 MB, free: 2.027 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02007/0.6886, allocations: 7.569 MB / 462.7 MB, free: 13.34 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001459/0.6901, allocations: 0.9703 MB / 463.7 MB, free: 12.39 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004776/0.6949, allocations: 1.28 MB / 464.9 MB, free: 11.12 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05993/0.7548, allocations: 20.4 MB / 485.3 MB, free: 6.672 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000593/0.7555, allocations: 23.45 kB / 485.4 MB, free: 6.652 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003729/0.7592, allocations: 0.5259 MB / 485.9 MB, free: 6.141 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001091/0.7603, allocations: 0.7494 MB / 486.6 MB, free: 5.391 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05478/0.8151, allocations: 19.12 MB / 0.4939 GB, free: 2.27 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3815/1.197, allocations: 65.15 MB / 0.5575 GB, free: 99.67 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03689/1.234, allocations: 57.16 MB / 0.6134 GB, free: 47.17 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02675/1.26, allocations: 11.82 MB / 0.6249 GB, free: 41.47 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.564e-05/1.261, allocations: 75.09 kB / 0.625 GB, free: 41.4 MB / 426.7 MB Notification: Performance of pre-optimization done (n=370): time 8.849e-06/1.261, allocations: 3.984 kB / 0.625 GB, free: 41.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=412): time 0.0449/1.305, allocations: 18.02 MB / 0.6426 GB, free: 31.01 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001196/1.306, allocations: 100 kB / 0.6427 GB, free: 30.95 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02324/1.329, allocations: 5.578 MB / 0.6481 GB, free: 27.99 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001207/1.33, allocations: 96.45 kB / 0.6482 GB, free: 27.9 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.007238/1.337, allocations: 5.776 MB / 0.6538 GB, free: 22.8 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003078/1.341, allocations: 1.449 MB / 0.6553 GB, free: 21.56 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001404/1.342, allocations: 159.8 kB / 0.6554 GB, free: 21.43 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.001056/1.343, allocations: 0.6217 MB / 0.656 GB, free: 20.8 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01455/1.358, allocations: 3.142 MB / 0.6591 GB, free: 17.66 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01873/1.377, allocations: 6.864 MB / 0.6658 GB, free: 9.07 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01489/1.391, allocations: 4.666 MB / 0.6703 GB, free: 4.438 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.887e-05/1.392, allocations: 36 kB / 0.6704 GB, free: 4.402 MB / 426.7 MB Notification: Performance of matching and sorting (n=1012) (initialization): time 0.02576/1.417, allocations: 10.75 MB / 0.6809 GB, free: 9.598 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001398/1.418, allocations: 60 kB / 0.6809 GB, free: 9.539 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002133/1.418, allocations: 128 kB / 0.6811 GB, free: 9.414 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003572/1.421, allocations: 0.9897 MB / 0.682 GB, free: 8.41 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009175/1.431, allocations: 1.872 MB / 0.6838 GB, free: 6.535 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3062/1.737, allocations: 9.745 MB / 0.6934 GB, free: 129.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008239/1.745, allocations: 445.9 kB / 0.6938 GB, free: 129.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001717/1.747, allocations: 428.5 kB / 0.6942 GB, free: 129.9 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 579 * 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 (963): * Single equations (assignments): 958 * 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.758, allocations: 4.517 MB / 0.6986 GB, free: 129.8 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001659/1.76, allocations: 0.5708 MB / 0.6992 GB, free: 129.8 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01823/1.778, allocations: 6.776 MB / 0.7058 GB, free: 127.7 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.505e-05/1.778, allocations: 42.28 kB / 0.7058 GB, free: 127.7 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.24e-05/1.778, allocations: 8.312 kB / 0.7058 GB, free: 127.7 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001028/1.778, allocations: 26.83 kB / 0.7059 GB, free: 127.7 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03973/1.818, allocations: 16.61 MB / 0.7221 GB, free: 121 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.403e-05/1.818, allocations: 3.875 kB / 0.7221 GB, free: 121 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004949/1.823, allocations: 0.8032 MB / 0.7229 GB, free: 121 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003132/1.826, allocations: 0.7881 MB / 0.7236 GB, free: 120.8 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007253/1.827, allocations: 90.88 kB / 0.7237 GB, free: 120.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0122/1.839, allocations: 8.867 MB / 0.7324 GB, free: 114.6 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.855e-06/1.839, allocations: 7.719 kB / 0.7324 GB, free: 114.6 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02404/1.864, allocations: 9.913 MB / 0.7421 GB, free: 110.5 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006373/1.87, allocations: 1.149 MB / 0.7432 GB, free: 110.1 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002947/1.873, allocations: 76.94 kB / 0.7433 GB, free: 110 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007931/1.881, allocations: 229.1 kB / 0.7435 GB, free: 110 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001661/1.883, allocations: 285.3 kB / 0.7438 GB, free: 109.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009014/1.884, allocations: 115.8 kB / 0.7439 GB, free: 109.9 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.01507/1.899, allocations: 3.654 MB / 0.7474 GB, free: 108.6 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.477e-06/1.899, allocations: 3.812 kB / 0.7474 GB, free: 108.6 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01951/1.918, allocations: 2.05 MB / 0.7494 GB, free: 108 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.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 (393): * Single equations (assignments): 388 * 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,62.5%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001726/1.92, allocations: 268.9 kB / 0.7497 GB, free: 107.7 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02716/1.947, allocations: 8.241 MB / 0.7577 GB, free: 99.89 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.536e-06/1.947, allocations: 0 / 0.7577 GB, free: 99.89 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007333/1.955, allocations: 3.667 MB / 0.7613 GB, free: 96.14 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007224/1.962, allocations: 1.285 MB / 0.7626 GB, free: 94.88 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0479/2.01, allocations: 25.19 MB / 0.7872 GB, free: 69.6 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0145/2.024, allocations: 7.667 MB / 0.7947 GB, free: 61.89 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002575/2.027, allocations: 0.5071 MB / 0.7952 GB, free: 61.39 MB / 442.7 MB Notification: Performance of SimCode: time 1.911e-06/2.027, allocations: 0 / 0.7952 GB, free: 61.39 MB / 442.7 MB Notification: Performance of Templates: time 1.412/3.44, allocations: 460.4 MB / 1.245 GB, free: 89.97 MB / 442.7 MB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_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.SMPM_CurrentSourceCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSourceCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSourceCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSourceFunctions.cpp:112:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp101 = 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.SMPM_CurrentSourceFunctions.cpp:112:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp101 = 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.SMPM_CurrentSourceCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSourceCalcHelperMain.o] Error 1\n'