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_OpenCircuit.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_OpenCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Vtr|Vqs",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") Notification: Performance of loadModel(Modelica): time 1.913/1.913, allocations: 194.9 MB / 211.7 MB, free: 2.984 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003888/0.0003889, allocations: 8 kB / 264 MB, free: 13.54 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08271/0.08313, allocations: 44.51 MB / 308.5 MB, free: 0.957 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4153/0.4984, allocations: 142.9 MB / 451.3 MB, free: 14.8 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002956/0.4988, allocations: 109.2 kB / 451.5 MB, free: 14.74 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9345/1.433, allocations: 232.8 MB / 0.6682 GB, free: 18.01 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.021e-06/1.433, allocations: 3.938 kB / 0.6682 GB, free: 18.01 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004925/1.434, allocations: 163.8 kB / 0.6684 GB, free: 17.85 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.02688/1.461, allocations: 7.258 MB / 0.6754 GB, free: 10.5 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.894e-05/1.461, allocations: 12.03 kB / 0.6755 GB, free: 10.48 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02588/1.487, allocations: 3.678 MB / 0.6791 GB, free: 6.793 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01773/1.504, allocations: 5.959 MB / 0.6849 GB, free: 0.75 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007201/1.505, allocations: 0.5256 MB / 0.6854 GB, free: 228 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.3069/1.812, allocations: 0.6838 MB / 0.6861 GB, free: 35.99 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03511/1.847, allocations: 11.45 MB / 0.6972 GB, free: 35.19 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004163/1.848, allocations: 18.05 kB / 0.6972 GB, free: 35.19 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00265/1.85, allocations: 300.9 kB / 0.6975 GB, free: 35.19 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007645/1.851, allocations: 492.8 kB / 0.698 GB, free: 35.18 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.029/1.88, allocations: 10.66 MB / 0.7084 GB, free: 35.11 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07905/1.959, allocations: 38.31 MB / 0.7458 GB, free: 26.8 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01933/1.979, allocations: 18.48 MB / 0.7639 GB, free: 11.23 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0325/2.011, allocations: 13.71 MB / 0.7773 GB, free: 4.465 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.856e-05/2.011, allocations: 69.75 kB / 0.7773 GB, free: 4.398 MB / 410.7 MB Notification: Performance of pre-optimization done (n=404): time 8.183e-06/2.011, allocations: 0 / 0.7773 GB, free: 4.398 MB / 410.7 MB Notification: Performance of matching and sorting (n=420): time 0.06438/2.076, allocations: 22.48 MB / 0.7993 GB, free: 10.4 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002903/2.079, allocations: 1.96 MB / 0.8012 GB, free: 8.656 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007361/2.086, allocations: 2.972 MB / 0.8041 GB, free: 7.508 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008475/2.087, allocations: 85.17 kB / 0.8042 GB, free: 7.434 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003071/2.09, allocations: 3.011 MB / 0.8071 GB, free: 5.059 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002332/2.092, allocations: 1.418 MB / 0.8085 GB, free: 3.965 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006479/2.093, allocations: 102.2 kB / 0.8086 GB, free: 3.887 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000623/2.094, allocations: 0.5323 MB / 0.8091 GB, free: 3.477 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006811/2.101, allocations: 2.902 MB / 0.812 GB, free: 2.289 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009216/2.11, allocations: 4.9 MB / 0.8168 GB, free: 14.55 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008914/2.119, allocations: 3.791 MB / 0.8205 GB, free: 12.85 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.579e-05/2.119, allocations: 19.06 kB / 0.8205 GB, free: 12.85 MB / 442.7 MB Notification: Performance of matching and sorting (n=720) (initialization): time 0.02405/2.143, allocations: 9.252 MB / 0.8295 GB, free: 7.188 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.454e-05/2.143, allocations: 32 kB / 0.8295 GB, free: 7.156 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001384/2.143, allocations: 71 kB / 0.8296 GB, free: 7.09 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007519/2.151, allocations: 2.475 MB / 0.832 GB, free: 5.031 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005464/2.156, allocations: 1.064 MB / 0.8331 GB, free: 4.203 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01068/2.167, allocations: 5.425 MB / 0.8384 GB, free: 15.34 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005595/2.173, allocations: 315.2 kB / 0.8387 GB, free: 15.08 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001375/2.174, allocations: 267.6 kB / 0.8389 GB, free: 14.83 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 297 * 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 (564): * Single equations (assignments): 542 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * 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: 0 * Non-linear torn systems: 2 {6 9,11 79} Notification: Performance of prepare postOptimizeDAE: time 0.007547/2.182, allocations: 2.508 MB / 0.8414 GB, free: 12.7 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001363/2.183, allocations: 414.4 kB / 0.8418 GB, free: 12.3 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02155/2.205, allocations: 7.913 MB / 0.8495 GB, free: 5.531 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001569/2.205, allocations: 102.3 kB / 0.8496 GB, free: 5.441 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.171e-05/2.205, allocations: 2.906 kB / 0.8496 GB, free: 5.441 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.34e-05/2.205, allocations: 15.98 kB / 0.8496 GB, free: 5.441 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.33/2.535, allocations: 19.96 MB / 0.8691 GB, free: 75.96 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.453e-05/2.535, allocations: 6.438 kB / 0.8691 GB, free: 75.96 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003436/2.539, allocations: 0.5444 MB / 0.8696 GB, free: 75.96 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007362/2.546, allocations: 2.44 MB / 0.872 GB, free: 75.91 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009226/2.547, allocations: 98.02 kB / 0.8721 GB, free: 75.91 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0117/2.559, allocations: 7.189 MB / 0.8791 GB, free: 73.58 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002253/2.561, allocations: 1.909 MB / 0.881 GB, free: 72.19 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02579/2.587, allocations: 12.4 MB / 0.8931 GB, free: 70.87 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00363/2.59, allocations: 1.088 MB / 0.8942 GB, free: 70.78 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001748/2.592, allocations: 73.5 kB / 0.8942 GB, free: 70.78 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00381/2.596, allocations: 200.1 kB / 0.8944 GB, free: 70.78 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001277/2.597, allocations: 323.4 kB / 0.8947 GB, free: 70.77 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007028/2.598, allocations: 123.6 kB / 0.8949 GB, free: 70.77 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00546/2.604, allocations: 2.196 MB / 0.897 GB, free: 70.62 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.083e-06/2.604, allocations: 0 / 0.897 GB, free: 70.62 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008027/2.612, allocations: 1.376 MB / 0.8983 GB, free: 70.62 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 1 ($STATESET1.x) * 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 (286): * Single equations (assignments): 264 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * 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: 0 * Non-linear torn systems: 3 {3 3,6 9,11 79} Notification: Performance of Backend phase and start with SimCode phase: time 0.001793/2.614, allocations: 0.599 MB / 0.8989 GB, free: 70.51 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01652/2.63, allocations: 7.344 MB / 0.9061 GB, free: 70.2 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.197e-06/2.63, allocations: 0 / 0.9061 GB, free: 70.2 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009017/2.639, allocations: 3.648 MB / 0.9097 GB, free: 69.94 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006115/2.645, allocations: 0.8871 MB / 0.9105 GB, free: 69.92 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03613/2.682, allocations: 16.87 MB / 0.927 GB, free: 63.7 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008868/2.69, allocations: 4.558 MB / 0.9315 GB, free: 62.83 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001852/2.692, allocations: 330.9 kB / 0.9318 GB, free: 62.82 MB / 458.7 MB Notification: Performance of SimCode: time 1.879e-06/2.692, allocations: 0 / 0.9318 GB, free: 62.82 MB / 458.7 MB Notification: Performance of Templates: time 0.5629/3.255, allocations: 234.6 MB / 1.161 GB, free: 15.04 MB / 458.7 MB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.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.SynchronousMachines.SMPM_OpenCircuitCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitFunctions.cpp:534:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp169 = 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_OpenCircuitFunctions.cpp:534:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp169 = 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_OpenCircuitCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitCalcHelperMain.o] Error 1\n'