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.SynchronousMachines.SMPM_OpenCircuit.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.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.926/1.926, allocations: 194.8 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003558/0.000356, allocations: 11.98 kB / 264.5 MB, free: 13.59 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09343/0.09381, allocations: 44.5 MB / 309 MB, free: 1.031 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5394/0.6333, allocations: 142.9 MB / 451.9 MB, free: 13.29 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003931/0.6338, allocations: 111.1 kB / 452 MB, free: 13.23 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.052/1.685, allocations: 232.8 MB / 0.6687 GB, free: 16.45 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.547e-06/1.686, allocations: 4 kB / 0.6687 GB, free: 16.45 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005895/1.686, allocations: 163.8 kB / 0.6689 GB, free: 16.29 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.03368/1.72, allocations: 7.262 MB / 0.676 GB, free: 8.934 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.572e-05/1.72, allocations: 11.97 kB / 0.676 GB, free: 8.922 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03021/1.75, allocations: 3.682 MB / 0.6796 GB, free: 5.227 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.6971/2.447, allocations: 5.953 MB / 0.6854 GB, free: 33 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.008558/2.456, allocations: 0.523 MB / 0.6859 GB, free: 32.98 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009137/2.465, allocations: 0.6901 MB / 0.6866 GB, free: 32.98 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05877/2.524, allocations: 11.51 MB / 0.6978 GB, free: 32.19 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000549/2.525, allocations: 17.86 kB / 0.6978 GB, free: 32.19 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003378/2.528, allocations: 299.2 kB / 0.6981 GB, free: 32.19 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001006/2.529, allocations: 494 kB / 0.6986 GB, free: 32.17 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03589/2.565, allocations: 10.66 MB / 0.709 GB, free: 32.11 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0983/2.663, allocations: 38.33 MB / 0.7464 GB, free: 23.18 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.025/2.688, allocations: 18.46 MB / 0.7644 GB, free: 23.61 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04135/2.73, allocations: 13.71 MB / 0.7778 GB, free: 16.84 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.718e-05/2.73, allocations: 68.47 kB / 0.7779 GB, free: 16.77 MB / 426.8 MB Notification: Performance of pre-optimization done (n=404): time 8.466e-06/2.73, allocations: 1.781 kB / 0.7779 GB, free: 16.77 MB / 426.8 MB Notification: Performance of matching and sorting (n=420): time 0.08204/2.812, allocations: 22.48 MB / 0.7998 GB, free: 6.785 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003197/2.815, allocations: 1.98 MB / 0.8018 GB, free: 5.039 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008029/2.823, allocations: 3.342 MB / 0.805 GB, free: 3.762 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001073/2.824, allocations: 79.92 kB / 0.8051 GB, free: 3.688 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003232/2.828, allocations: 3.009 MB / 0.8081 GB, free: 1.309 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002703/2.83, allocations: 1.421 MB / 0.8094 GB, free: 224 kB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006597/2.831, allocations: 98.91 kB / 0.8095 GB, free: 144 kB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0006089/2.832, allocations: 0.5356 MB / 0.8101 GB, free: 15.73 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007813/2.84, allocations: 2.9 MB / 0.8129 GB, free: 14.54 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01111/2.851, allocations: 4.917 MB / 0.8177 GB, free: 10.8 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01318/2.864, allocations: 3.794 MB / 0.8214 GB, free: 9.105 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001057/2.864, allocations: 18.97 kB / 0.8214 GB, free: 9.105 MB / 442.8 MB Notification: Performance of matching and sorting (n=720) (initialization): time 0.03644/2.901, allocations: 9.25 MB / 0.8305 GB, free: 3.117 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001104/2.901, allocations: 35.7 kB / 0.8305 GB, free: 3.086 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002044/2.901, allocations: 64 kB / 0.8306 GB, free: 3.023 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01204/2.913, allocations: 2.483 MB / 0.833 GB, free: 0.9609 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01034/2.923, allocations: 1.061 MB / 0.834 GB, free: 136 kB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01298/2.936, allocations: 5.421 MB / 0.8393 GB, free: 11.26 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006797/2.943, allocations: 319.4 kB / 0.8396 GB, free: 11 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001607/2.945, allocations: 270.9 kB / 0.8399 GB, free: 10.74 MB / 458.8 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.009126/2.954, allocations: 2.505 MB / 0.8423 GB, free: 8.625 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001683/2.956, allocations: 414.6 kB / 0.8427 GB, free: 8.219 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02628/2.982, allocations: 7.915 MB / 0.8504 GB, free: 1.445 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000169/2.982, allocations: 98.69 kB / 0.8505 GB, free: 1.359 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.149e-05/2.982, allocations: 0 / 0.8505 GB, free: 1.359 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.923e-05/2.982, allocations: 18.66 kB / 0.8505 GB, free: 1.359 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4313/3.414, allocations: 19.61 MB / 0.8697 GB, free: 74.8 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.472e-05/3.414, allocations: 9.812 kB / 0.8697 GB, free: 74.8 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005358/3.419, allocations: 0.5399 MB / 0.8702 GB, free: 74.8 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01005/3.429, allocations: 2.451 MB / 0.8726 GB, free: 74.74 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001396/3.431, allocations: 97.27 kB / 0.8727 GB, free: 74.74 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0151/3.446, allocations: 7.186 MB / 0.8797 GB, free: 72.41 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002732/3.449, allocations: 1.902 MB / 0.8816 GB, free: 71.02 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03429/3.483, allocations: 11.8 MB / 0.8931 GB, free: 70.41 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004997/3.488, allocations: 1.095 MB / 0.8942 GB, free: 70.31 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002863/3.491, allocations: 68.91 kB / 0.8943 GB, free: 70.31 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005687/3.497, allocations: 206.6 kB / 0.8945 GB, free: 70.31 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001782/3.499, allocations: 323 kB / 0.8948 GB, free: 70.3 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001212/3.5, allocations: 124.5 kB / 0.8949 GB, free: 70.3 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.007165/3.507, allocations: 2.194 MB / 0.897 GB, free: 70.16 MB / 458.8 MB Notification: Performance of sort global known variables: time 1.313e-06/3.507, allocations: 0 / 0.897 GB, free: 70.16 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.01046/3.518, allocations: 1.371 MB / 0.8984 GB, free: 70.16 MB / 458.8 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.002332/3.52, allocations: 0.5905 MB / 0.8989 GB, free: 70.04 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.0208/3.541, allocations: 7.347 MB / 0.9061 GB, free: 69.73 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.393e-05/3.541, allocations: 0 / 0.9061 GB, free: 69.73 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0118/3.553, allocations: 3.657 MB / 0.9097 GB, free: 69.47 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009122/3.562, allocations: 0.8911 MB / 0.9106 GB, free: 69.45 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04663/3.609, allocations: 16.88 MB / 0.927 GB, free: 62.15 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01007/3.619, allocations: 4.552 MB / 0.9315 GB, free: 60.48 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002476/3.622, allocations: 328 kB / 0.9318 GB, free: 60.46 MB / 458.8 MB Notification: Performance of SimCode: time 3.266e-06/3.622, allocations: 0 / 0.9318 GB, free: 60.46 MB / 458.8 MB Notification: Performance of Templates: time 0.7469/4.368, allocations: 234.6 MB / 1.161 GB, free: 4.645 MB / 458.8 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=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.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'