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.SMEE_Generator.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.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|Ptr|Pqs|smee.excitation.electroMagneticConverter.Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee.stator.strayReluctance.port_p.Phi.im|smee.stator.strayReluctance.port_p.Phi.re|smeeQS.short.port_p.reference.gamma",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") Notification: Performance of loadModel(Modelica): time 1.904/1.904, allocations: 194.9 MB / 211.7 MB, free: 2.98 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003604/0.0003605, allocations: 8 kB / 264 MB, free: 13.54 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08339/0.08377, allocations: 44.51 MB / 308.5 MB, free: 0.9648 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4353/0.5191, allocations: 161.2 MB / 469.7 MB, free: 12.77 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000348/0.5195, allocations: 112.5 kB / 469.8 MB, free: 12.71 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.633/2.153, allocations: 395.1 MB / 0.8447 GB, free: 7.594 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.28e-06/2.153, allocations: 0 / 0.8447 GB, free: 7.594 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0009205/2.154, allocations: 259.7 kB / 0.8449 GB, free: 7.34 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: 3109 * Number of variables: 3109 Notification: Performance of Generate backend data structure: time 0.6351/2.789, allocations: 10.99 MB / 0.8556 GB, free: 25.74 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.85e-05/2.789, allocations: 9.125 kB / 0.8557 GB, free: 25.74 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03237/2.821, allocations: 4.415 MB / 0.86 GB, free: 25.13 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02976/2.851, allocations: 8.878 MB / 0.8686 GB, free: 24.48 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00126/2.852, allocations: 0.8313 MB / 0.8694 GB, free: 24.46 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004777/2.857, allocations: 1.081 MB / 0.8705 GB, free: 24.45 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05134/2.908, allocations: 17.48 MB / 0.8876 GB, free: 23.12 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005053/2.909, allocations: 18.78 kB / 0.8876 GB, free: 23.12 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003878/2.913, allocations: 475.3 kB / 0.888 GB, free: 23.12 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008937/2.914, allocations: 0.6925 MB / 0.8887 GB, free: 23.09 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04069/2.954, allocations: 15.31 MB / 0.9037 GB, free: 22.98 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1245/3.079, allocations: 58.08 MB / 0.9604 GB, free: 14.61 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02782/3.107, allocations: 17.22 MB / 0.9772 GB, free: 2.578 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05622/3.163, allocations: 19.4 MB / 0.9962 GB, free: 10.36 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001019/3.163, allocations: 94.77 kB / 0.9962 GB, free: 10.28 MB / 458.8 MB Notification: Performance of pre-optimization done (n=642): time 1.146e-05/3.163, allocations: 0 / 0.9962 GB, free: 10.28 MB / 458.8 MB Notification: Performance of matching and sorting (n=669): time 0.4084/3.572, allocations: 35.75 MB / 1.031 GB, free: 69.7 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.467e-05/3.572, allocations: 139 kB / 1.031 GB, free: 69.6 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01014/3.582, allocations: 3.921 MB / 1.035 GB, free: 69.28 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001279/3.583, allocations: 119.4 kB / 1.035 GB, free: 69.25 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00343/3.587, allocations: 4.346 MB / 1.039 GB, free: 67.26 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.003204/3.59, allocations: 2.232 MB / 1.042 GB, free: 65.82 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001287/3.591, allocations: 141.2 kB / 1.042 GB, free: 65.82 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0007928/3.592, allocations: 0.6223 MB / 1.042 GB, free: 65.5 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01051/3.603, allocations: 4.431 MB / 1.047 GB, free: 65.48 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01171/3.615, allocations: 6.436 MB / 1.053 GB, free: 63.24 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01195/3.627, allocations: 5.528 MB / 1.058 GB, free: 63.15 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.743e-05/3.627, allocations: 15.19 kB / 1.058 GB, free: 63.15 MB / 474.8 MB Notification: Performance of matching and sorting (n=1000) (initialization): time 0.0309/3.658, allocations: 12.99 MB / 1.071 GB, free: 62.6 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 7.26e-05/3.658, allocations: 32.44 kB / 1.071 GB, free: 62.6 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001216/3.658, allocations: 60.97 kB / 1.071 GB, free: 62.6 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00639/3.664, allocations: 2.408 MB / 1.074 GB, free: 62.54 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008075/3.672, allocations: 1.539 MB / 1.075 GB, free: 62.54 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.013/3.685, allocations: 10.47 MB / 1.085 GB, free: 57.75 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008088/3.694, allocations: 489.2 kB / 1.086 GB, free: 57.73 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001871/3.695, allocations: 334.3 kB / 1.086 GB, free: 57.73 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 274 * 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 (799): * Single equations (assignments): 732 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 60 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 6 * 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: 2 {(2,100.0%) 8,(1,100.0%) 5} * Non-linear torn systems: 4 {6 9,6 9,6 9,6 43} Notification: Performance of prepare postOptimizeDAE: time 0.009963/3.705, allocations: 3.775 MB / 1.09 GB, free: 57.58 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001721/3.707, allocations: 0.5548 MB / 1.09 GB, free: 57.29 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02796/3.735, allocations: 11.77 MB / 1.102 GB, free: 56.12 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01835/3.754, allocations: 8.468 MB / 1.11 GB, free: 52.45 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.337e-05/3.754, allocations: 7.625 kB / 1.11 GB, free: 52.45 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001247/3.754, allocations: 30.61 kB / 1.11 GB, free: 52.45 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05624/3.81, allocations: 24.6 MB / 1.134 GB, free: 41.58 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.424e-05/3.81, allocations: 7 kB / 1.134 GB, free: 41.58 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005436/3.816, allocations: 0.9134 MB / 1.135 GB, free: 41.55 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006612/3.822, allocations: 2.422 MB / 1.137 GB, free: 40.79 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001397/3.824, allocations: 140 kB / 1.138 GB, free: 40.71 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0174/3.841, allocations: 14.2 MB / 1.151 GB, free: 29.99 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.063e-05/3.841, allocations: 9.562 kB / 1.151 GB, free: 29.99 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03659/3.878, allocations: 18.4 MB / 1.169 GB, free: 17.66 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004974/3.883, allocations: 1.563 MB / 1.171 GB, free: 16.24 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002036/3.885, allocations: 107.5 kB / 1.171 GB, free: 16.14 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005444/3.89, allocations: 313.7 kB / 1.171 GB, free: 15.92 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001894/3.892, allocations: 0.4992 MB / 1.172 GB, free: 15.6 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006404/3.893, allocations: 181.1 kB / 1.172 GB, free: 15.44 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.006548/3.899, allocations: 2.919 MB / 1.175 GB, free: 13.01 MB / 474.8 MB Notification: Performance of sort global known variables: time 1.273e-06/3.899, allocations: 0 / 1.175 GB, free: 13.01 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01116/3.911, allocations: 2.009 MB / 1.177 GB, free: 11.02 MB / 474.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (smeeQS.excitation.electroMagneticConverter.port_p.reference.gamma,mechanicalPowerSensorQS.relSpeedSensor.phi_rel,smee.phiMechanical,smee.stator.core.Phi.im,smee.stator.zeroInductor.i0,smee.excitation.electroMagneticConverter.Phi.re) * 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 (481): * Single equations (assignments): 413 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 60 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 8,(1,100.0%) 4,(1,100.0%) 8,(3,77.8%) 4} * Non-linear torn systems: 4 {6 9,6 9,6 9,6 43} Notification: Performance of Backend phase and start with SimCode phase: time 0.002274/3.913, allocations: 0.5757 MB / 1.177 GB, free: 10.59 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.02396/3.937, allocations: 11.01 MB / 1.188 GB, free: 1.031 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 9.678e-06/3.937, allocations: 0 / 1.188 GB, free: 1.031 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01522/3.952, allocations: 5.845 MB / 1.194 GB, free: 11.96 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007821/3.96, allocations: 1.07 MB / 1.195 GB, free: 11.12 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3446/4.305, allocations: 25.94 MB / 1.22 GB, free: 78.59 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01309/4.318, allocations: 6.783 MB / 1.227 GB, free: 77.61 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002795/4.321, allocations: 459.9 kB / 1.227 GB, free: 77.61 MB / 490.8 MB Notification: Performance of SimCode: time 1.848e-06/4.321, allocations: 1.312 kB / 1.227 GB, free: 77.61 MB / 490.8 MB Notification: Performance of Templates: time 2.148/6.469, allocations: 0.6622 GB / 1.889 GB, free: 98.05 MB / 0.4949 GB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.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.SMEE_GeneratorCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorFunctions.cpp:621:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp324 = 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.SMEE_GeneratorFunctions.cpp:621:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp324 = 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.SMEE_GeneratorCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorCalcHelperMain.o] Error 1\n'