Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|constantSpeedE.phi|constantSpeedM.phi|smeeE.idq_dr.1.|smeeE.idq_rr.2.|smeeE.idq_sr.1.|smeeE.idq_sr.2.|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smeeM.stator.strayReluctance.port_p.Phi.im|smeeM.stator.strayReluctance.port_p.Phi.re",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator") Notification: Performance of loadModel(Modelica): time 1.978/1.978, allocations: 171.1 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003858/0.0003858, allocations: 12 kB / 233.9 MB, free: 2.379 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0899/0.09032, allocations: 38.75 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.439/0.5294, allocations: 122.2 MB / 394.9 MB, free: 128 kB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003317/0.5298, allocations: 93.62 kB / 394.9 MB, free: 76 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7148/1.245, allocations: 124 MB / 0.5068 GB, free: 45.45 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.033e-06/1.245, allocations: 0 / 0.5068 GB, free: 45.45 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006188/1.245, allocations: 147.8 kB / 0.5069 GB, free: 45.31 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1422 * Number of variables: 1422 Notification: Performance of Generate backend data structure: time 0.03196/1.277, allocations: 5.831 MB / 0.5126 GB, free: 39.4 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.304e-05/1.277, allocations: 8.031 kB / 0.5126 GB, free: 39.39 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009545/1.287, allocations: 0.9021 MB / 0.5135 GB, free: 38.48 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02076/1.308, allocations: 3.947 MB / 0.5174 GB, free: 34.46 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007362/1.309, allocations: 410.9 kB / 0.5178 GB, free: 34.05 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00309/1.312, allocations: 0.535 MB / 0.5183 GB, free: 33.52 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03403/1.346, allocations: 6.841 MB / 0.525 GB, free: 26.48 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004706/1.346, allocations: 11.89 kB / 0.525 GB, free: 26.47 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002461/1.349, allocations: 232 kB / 0.5252 GB, free: 26.25 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004342/1.349, allocations: 234.7 kB / 0.5254 GB, free: 26.02 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02201/1.371, allocations: 5.352 MB / 0.5307 GB, free: 20.66 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3387/1.71, allocations: 22.48 MB / 0.5526 GB, free: 40.86 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008165/1.718, allocations: 4.389 MB / 0.5569 GB, free: 38.94 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006495/1.719, allocations: 157.8 kB / 0.557 GB, free: 38.85 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.956e-05/1.719, allocations: 55.91 kB / 0.5571 GB, free: 38.81 MB / 346.7 MB Notification: Performance of pre-optimization done (n=245): time 6.201e-06/1.719, allocations: 3.844 kB / 0.5571 GB, free: 38.81 MB / 346.7 MB Notification: Performance of matching and sorting (n=297): time 0.07182/1.791, allocations: 16.11 MB / 0.5728 GB, free: 36.66 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.457e-05/1.791, allocations: 79.97 kB / 0.5729 GB, free: 36.6 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00928/1.8, allocations: 3.255 MB / 0.5761 GB, free: 36.34 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007103/1.801, allocations: 75.39 kB / 0.5762 GB, free: 36.31 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002765/1.804, allocations: 2.529 MB / 0.5786 GB, free: 35.39 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001628/1.806, allocations: 1.012 MB / 0.5796 GB, free: 34.75 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005229/1.806, allocations: 73.53 kB / 0.5797 GB, free: 34.75 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003183/1.806, allocations: 446.1 kB / 0.5801 GB, free: 34.44 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005076/1.812, allocations: 1.62 MB / 0.5817 GB, free: 34.43 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006205/1.818, allocations: 2.68 MB / 0.5843 GB, free: 33.21 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006047/1.824, allocations: 2.076 MB / 0.5863 GB, free: 33.16 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.704e-05/1.824, allocations: 10.34 kB / 0.5864 GB, free: 33.16 MB / 346.7 MB Notification: Performance of matching and sorting (n=462) (initialization): time 0.0183/1.842, allocations: 5.672 MB / 0.5919 GB, free: 32.69 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.575e-05/1.842, allocations: 17.84 kB / 0.5919 GB, free: 32.69 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.9e-05/1.843, allocations: 40.16 kB / 0.5919 GB, free: 32.69 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003952/1.847, allocations: 0.9345 MB / 0.5929 GB, free: 32.64 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006183/1.853, allocations: 0.8284 MB / 0.5937 GB, free: 32.64 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02013/1.873, allocations: 10.95 MB / 0.6044 GB, free: 28.53 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00548/1.878, allocations: 227.2 kB / 0.6046 GB, free: 28.51 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009512/1.879, allocations: 153.7 kB / 0.6047 GB, free: 28.51 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 151 * 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 (403): * Single equations (assignments): 394 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * 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: 3 {(6,72.2%) 23,(4,93.8%) 17,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00538/1.885, allocations: 1.6 MB / 0.6063 GB, free: 28.02 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001664/1.887, allocations: 388.8 kB / 0.6067 GB, free: 27.83 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01742/1.904, allocations: 4.901 MB / 0.6114 GB, free: 25.72 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-05/1.904, allocations: 28.94 kB / 0.6115 GB, free: 25.72 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.422e-05/1.904, allocations: 14.25 kB / 0.6115 GB, free: 25.71 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.658e-05/1.904, allocations: 14.25 kB / 0.6115 GB, free: 25.71 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03582/1.94, allocations: 10.99 MB / 0.6222 GB, free: 21 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.01178/1.952, allocations: 4.123 MB / 0.6263 GB, free: 19.23 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004085/1.956, allocations: 488.8 kB / 0.6267 GB, free: 19.21 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004581/1.961, allocations: 1.052 MB / 0.6278 GB, free: 18.9 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006362/1.961, allocations: 74.95 kB / 0.6278 GB, free: 18.86 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02445/1.986, allocations: 15.99 MB / 0.6434 GB, free: 4.742 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.859e-06/1.986, allocations: 10.53 kB / 0.6434 GB, free: 4.734 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03166/2.018, allocations: 7.921 MB / 0.6512 GB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00378/2.021, allocations: 0.7876 MB / 0.652 GB, free: 15.19 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002031/2.024, allocations: 65.3 kB / 0.652 GB, free: 15.13 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00471/2.028, allocations: 187.7 kB / 0.6522 GB, free: 14.99 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001145/2.029, allocations: 225 kB / 0.6524 GB, free: 14.85 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006421/2.03, allocations: 90.45 kB / 0.6525 GB, free: 14.77 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.007041/2.037, allocations: 2.195 MB / 0.6546 GB, free: 12.94 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.12e-07/2.037, allocations: 2.625 kB / 0.6546 GB, free: 12.94 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.008027/2.045, allocations: 1.166 MB / 0.6558 GB, free: 11.79 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.strayReluctance.Phi.re,smeeM.stator.strayReluctance.Phi.im,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * 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 (230): * Single equations (assignments): 221 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(4,93.8%) 17,(1,100.0%) 5,(1,100.0%) 8,(6,72.2%) 23,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001632/2.047, allocations: 464.5 kB / 0.6562 GB, free: 11.44 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01591/2.063, allocations: 5.025 MB / 0.6611 GB, free: 6.945 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.819e-05/2.063, allocations: 4 kB / 0.6611 GB, free: 6.941 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0113/2.074, allocations: 3.268 MB / 0.6643 GB, free: 3.945 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007374/2.082, allocations: 0.8231 MB / 0.6651 GB, free: 3.293 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03356/2.115, allocations: 12.41 MB / 0.6773 GB, free: 7.836 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00686/2.122, allocations: 3.578 MB / 0.6807 GB, free: 5.148 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.005028/2.127, allocations: 0.7641 MB / 0.6815 GB, free: 4.617 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00154/2.129, allocations: 237.1 kB / 0.6817 GB, free: 4.391 MB / 378.7 MB Notification: Performance of SimCode: time 1.192e-06/2.129, allocations: 0 / 0.6817 GB, free: 4.391 MB / 378.7 MB Notification: Performance of Templates: time 0.444/2.573, allocations: 56.18 MB / 0.7366 GB, free: 64.57 MB / 378.7 MB