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_CurrentSource.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_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.919/1.919, allocations: 194.8 MB / 212.3 MB, free: 3.016 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003452/0.0003454, allocations: 12 kB / 264.5 MB, free: 13.59 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09762/0.09798, allocations: 44.5 MB / 309 MB, free: 1.023 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5475/0.6456, allocations: 156.3 MB / 465.3 MB, free: 15.93 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003813/0.646, allocations: 110.6 kB / 465.4 MB, free: 15.87 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.942/2.588, allocations: 397.2 MB / 0.8424 GB, free: 4.918 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.474e-06/2.588, allocations: 0 / 0.8424 GB, free: 4.918 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001164/2.59, allocations: 295.6 kB / 0.8427 GB, free: 4.629 MB / 426.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.8168/3.407, allocations: 11.99 MB / 0.8544 GB, free: 22.47 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.295e-05/3.407, allocations: 9.625 kB / 0.8544 GB, free: 22.47 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05506/3.462, allocations: 6.452 MB / 0.8607 GB, free: 21.79 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03647/3.498, allocations: 9.697 MB / 0.8702 GB, free: 20.66 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001888/3.5, allocations: 0.9513 MB / 0.8711 GB, free: 20.64 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007564/3.508, allocations: 1.234 MB / 0.8723 GB, free: 20.63 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07768/3.586, allocations: 20.99 MB / 0.8928 GB, free: 19.11 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008455/3.586, allocations: 23.28 kB / 0.8928 GB, free: 19.1 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006214/3.593, allocations: 0.5284 MB / 0.8934 GB, free: 19.1 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001434/3.594, allocations: 0.8543 MB / 0.8942 GB, free: 19.07 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06078/3.655, allocations: 18.93 MB / 0.9127 GB, free: 18.96 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1902/3.845, allocations: 65.84 MB / 0.977 GB, free: 4.312 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4709/4.316, allocations: 46.64 MB / 1.023 GB, free: 64.2 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07539/4.392, allocations: 23.95 MB / 1.046 GB, free: 63.2 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001189/4.392, allocations: 116.4 kB / 1.046 GB, free: 63.15 MB / 474.8 MB Notification: Performance of pre-optimization done (n=782): time 1.285e-05/4.392, allocations: 0 / 1.046 GB, free: 63.15 MB / 474.8 MB Notification: Performance of matching and sorting (n=824): time 0.1894/4.581, allocations: 46.82 MB / 1.092 GB, free: 54.71 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.784e-05/4.581, allocations: 120.9 kB / 1.092 GB, free: 54.64 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01069/4.592, allocations: 4.302 MB / 1.096 GB, free: 54.23 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.002009/4.594, allocations: 140.3 kB / 1.096 GB, free: 54.2 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004069/4.598, allocations: 4.836 MB / 1.101 GB, free: 51.36 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.004595/4.603, allocations: 2.738 MB / 1.104 GB, free: 49.23 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00216/4.605, allocations: 165 kB / 1.104 GB, free: 49.1 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.001165/4.606, allocations: 0.6823 MB / 1.104 GB, free: 48.62 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01452/4.621, allocations: 5.183 MB / 1.109 GB, free: 46.52 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01668/4.638, allocations: 7.67 MB / 1.117 GB, free: 41.37 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01716/4.655, allocations: 6.53 MB / 1.123 GB, free: 38.43 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000104/4.655, allocations: 20.06 kB / 1.123 GB, free: 38.43 MB / 474.8 MB Notification: Performance of matching and sorting (n=1175) (initialization): time 0.04538/4.7, allocations: 15.65 MB / 1.139 GB, free: 32.16 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 8.214e-05/4.7, allocations: 39.31 kB / 1.139 GB, free: 32.16 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001671/4.701, allocations: 73.62 kB / 1.139 GB, free: 32.16 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01388/4.715, allocations: 4.138 MB / 1.143 GB, free: 30.87 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01314/4.728, allocations: 1.685 MB / 1.144 GB, free: 30.81 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01987/4.748, allocations: 12.21 MB / 1.156 GB, free: 20.37 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01062/4.758, allocations: 456.2 kB / 1.157 GB, free: 20.02 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002708/4.761, allocations: 399.3 kB / 1.157 GB, free: 19.65 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 339 * 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 (877): * Single equations (assignments): 821 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.01455/4.776, allocations: 4.447 MB / 1.162 GB, free: 15.94 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002666/4.778, allocations: 0.6126 MB / 1.162 GB, free: 15.33 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04405/4.822, allocations: 14.57 MB / 1.176 GB, free: 2.809 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003236/4.823, allocations: 195.4 kB / 1.177 GB, free: 2.641 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.233e-05/4.823, allocations: 6.156 kB / 1.177 GB, free: 2.637 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001899/4.823, allocations: 38.45 kB / 1.177 GB, free: 2.633 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4883/5.311, allocations: 29.79 MB / 1.206 GB, free: 79.26 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001069/5.312, allocations: 2.781 kB / 1.206 GB, free: 79.26 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009976/5.322, allocations: 1.076 MB / 1.207 GB, free: 79.26 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01328/5.335, allocations: 4.018 MB / 1.211 GB, free: 79.15 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002113/5.337, allocations: 176.8 kB / 1.211 GB, free: 79.15 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01983/5.357, allocations: 12.06 MB / 1.223 GB, free: 74.58 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.224e-06/5.357, allocations: 5.875 kB / 1.223 GB, free: 74.58 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05742/5.414, allocations: 21.66 MB / 1.244 GB, free: 73.83 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007003/5.421, allocations: 1.786 MB / 1.246 GB, free: 73.73 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003315/5.425, allocations: 120 kB / 1.246 GB, free: 73.73 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008352/5.433, allocations: 343.5 kB / 1.246 GB, free: 73.73 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002874/5.436, allocations: 0.5755 MB / 1.247 GB, free: 73.72 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001538/5.438, allocations: 223.5 kB / 1.247 GB, free: 73.72 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.00786/5.446, allocations: 2.845 MB / 1.25 GB, free: 73.54 MB / 490.8 MB Notification: Performance of sort global known variables: time 6.52e-07/5.446, allocations: 2.297 kB / 1.25 GB, free: 73.54 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.01385/5.459, allocations: 2.221 MB / 1.252 GB, free: 73.54 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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 (562): * Single equations (assignments): 506 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.003063/5.463, allocations: 0.6967 MB / 1.252 GB, free: 73.41 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.03694/5.499, allocations: 13.24 MB / 1.265 GB, free: 70.79 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 9.137e-06/5.5, allocations: 3.312 kB / 1.265 GB, free: 70.79 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0207/5.52, allocations: 6.846 MB / 1.272 GB, free: 67.93 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01247/5.533, allocations: 1.27 MB / 1.273 GB, free: 67.58 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07995/5.613, allocations: 30.4 MB / 1.303 GB, free: 50.69 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01838/5.631, allocations: 7.846 MB / 1.311 GB, free: 44.81 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004401/5.636, allocations: 0.5074 MB / 1.311 GB, free: 44.34 MB / 490.8 MB Notification: Performance of SimCode: time 1.693e-06/5.636, allocations: 0 / 1.311 GB, free: 44.34 MB / 490.8 MB Notification: Performance of Templates: time 2.788/8.423, allocations: 0.7255 GB / 2.037 GB, free: 34.44 MB / 0.5105 GB 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/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_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:547:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp310 = 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:547:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp310 = 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'