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.SMEE_Generator.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.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.873/1.873, allocations: 194.8 MB / 212.3 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003461/0.0003464, allocations: 8 kB / 264.5 MB, free: 13.58 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09717/0.09753, allocations: 44.51 MB / 309 MB, free: 1.008 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5569/0.6545, allocations: 161.2 MB / 470.2 MB, free: 12.83 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004104/0.6549, allocations: 111.3 kB / 470.3 MB, free: 12.77 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.884/2.539, allocations: 395.1 MB / 0.8452 GB, free: 7.668 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.325e-06/2.539, allocations: 4 kB / 0.8452 GB, free: 7.664 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001131/2.54, allocations: 263.7 kB / 0.8454 GB, free: 7.406 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.7939/3.334, allocations: 10.99 MB / 0.8562 GB, free: 25.7 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.241e-05/3.334, allocations: 10.75 kB / 0.8562 GB, free: 25.7 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03932/3.374, allocations: 4.407 MB / 0.8605 GB, free: 25.09 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03819/3.412, allocations: 8.895 MB / 0.8692 GB, free: 24.45 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001846/3.414, allocations: 0.8314 MB / 0.87 GB, free: 24.43 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006621/3.42, allocations: 1.075 MB / 0.871 GB, free: 24.42 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06769/3.488, allocations: 17.57 MB / 0.8882 GB, free: 23.09 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008476/3.489, allocations: 18.19 kB / 0.8882 GB, free: 23.09 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006452/3.496, allocations: 471.2 kB / 0.8886 GB, free: 23.09 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001381/3.497, allocations: 0.69 MB / 0.8893 GB, free: 23.06 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0531/3.55, allocations: 15.31 MB / 0.9043 GB, free: 22.95 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1573/3.708, allocations: 58.1 MB / 0.961 GB, free: 14.62 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03206/3.74, allocations: 17.21 MB / 0.9778 GB, free: 2.582 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06352/3.803, allocations: 19.41 MB / 0.9968 GB, free: 10.36 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001157/3.804, allocations: 92.7 kB / 0.9969 GB, free: 10.29 MB / 458.8 MB Notification: Performance of pre-optimization done (n=642): time 1.156e-05/3.804, allocations: 2.562 kB / 0.9969 GB, free: 10.29 MB / 458.8 MB Notification: Performance of matching and sorting (n=669): time 0.5062/4.31, allocations: 35.75 MB / 1.032 GB, free: 69.71 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001027/4.31, allocations: 136.4 kB / 1.032 GB, free: 69.61 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01128/4.321, allocations: 4.399 MB / 1.036 GB, free: 69.27 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001564/4.323, allocations: 123 kB / 1.036 GB, free: 69.24 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003976/4.327, allocations: 4.347 MB / 1.041 GB, free: 67.25 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.003928/4.331, allocations: 2.228 MB / 1.043 GB, free: 65.81 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001767/4.333, allocations: 141.8 kB / 1.043 GB, free: 65.81 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.001076/4.334, allocations: 0.6226 MB / 1.043 GB, free: 65.49 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0133/4.347, allocations: 4.428 MB / 1.048 GB, free: 65.47 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01526/4.362, allocations: 6.46 MB / 1.054 GB, free: 63.23 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01559/4.378, allocations: 5.534 MB / 1.06 GB, free: 63.14 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001219/4.378, allocations: 21.09 kB / 1.06 GB, free: 63.14 MB / 474.8 MB Notification: Performance of matching and sorting (n=1000) (initialization): time 0.03894/4.417, allocations: 12.99 MB / 1.072 GB, free: 62.59 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 8.618e-05/4.417, allocations: 32 kB / 1.072 GB, free: 62.59 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001653/4.418, allocations: 63.41 kB / 1.072 GB, free: 62.59 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008347/4.426, allocations: 2.415 MB / 1.075 GB, free: 62.52 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01216/4.438, allocations: 1.532 MB / 1.076 GB, free: 62.52 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01616/4.454, allocations: 10.47 MB / 1.086 GB, free: 57.73 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01113/4.465, allocations: 484 kB / 1.087 GB, free: 57.71 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00232/4.468, allocations: 347.2 kB / 1.087 GB, free: 57.71 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.01378/4.482, allocations: 3.78 MB / 1.091 GB, free: 57.55 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002662/4.484, allocations: 0.5496 MB / 1.091 GB, free: 57.26 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03826/4.523, allocations: 11.76 MB / 1.103 GB, free: 55.95 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02472/4.547, allocations: 8.474 MB / 1.111 GB, free: 52.28 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-05/4.548, allocations: 7.062 kB / 1.111 GB, free: 52.28 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001654/4.548, allocations: 30.58 kB / 1.111 GB, free: 52.28 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07489/4.623, allocations: 24.59 MB / 1.135 GB, free: 41.4 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001289/4.623, allocations: 6.469 kB / 1.135 GB, free: 41.4 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008355/4.631, allocations: 0.9159 MB / 1.136 GB, free: 41.38 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008629/4.64, allocations: 2.419 MB / 1.138 GB, free: 40.61 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001892/4.642, allocations: 145.4 kB / 1.139 GB, free: 40.53 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0206/4.662, allocations: 14.21 MB / 1.153 GB, free: 29.82 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.368e-06/4.663, allocations: 9.406 kB / 1.153 GB, free: 29.82 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.052/4.715, allocations: 17.7 MB / 1.17 GB, free: 17.99 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006281/4.721, allocations: 1.557 MB / 1.171 GB, free: 16.58 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003609/4.725, allocations: 111.8 kB / 1.171 GB, free: 16.48 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008189/4.733, allocations: 313.8 kB / 1.172 GB, free: 16.25 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002623/4.735, allocations: 0.498 MB / 1.172 GB, free: 15.94 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001661/4.737, allocations: 182.5 kB / 1.172 GB, free: 15.77 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.008614/4.746, allocations: 2.919 MB / 1.175 GB, free: 13.34 MB / 474.8 MB Notification: Performance of sort global known variables: time 1.032e-06/4.746, allocations: 0 / 1.175 GB, free: 13.34 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01308/4.759, allocations: 2 MB / 1.177 GB, free: 11.36 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.002753/4.762, allocations: 0.5816 MB / 1.178 GB, free: 10.93 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.03089/4.793, allocations: 11 MB / 1.189 GB, free: 1.379 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.488e-05/4.793, allocations: 5.938 kB / 1.189 GB, free: 1.375 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01879/4.812, allocations: 5.851 MB / 1.194 GB, free: 12.32 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01103/4.823, allocations: 1.07 MB / 1.195 GB, free: 11.47 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4469/5.27, allocations: 26.08 MB / 1.221 GB, free: 74.44 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01678/5.286, allocations: 6.783 MB / 1.227 GB, free: 73.45 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003733/5.29, allocations: 461.4 kB / 1.228 GB, free: 73.45 MB / 490.8 MB Notification: Performance of SimCode: time 2.905e-06/5.29, allocations: 0 / 1.228 GB, free: 73.45 MB / 490.8 MB Notification: Performance of Templates: time 2.526/7.816, allocations: 0.6621 GB / 1.89 GB, free: 93.16 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=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.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'