Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.FundamentalWave.Examples.BasicMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,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.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator") Notification: Performance of loadModel(Modelica): time 2.152/2.152, allocations: 194.9 MB / 211.7 MB, free: 2.855 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003476/0.0003477, allocations: 8 kB / 264.6 MB, free: 12.87 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09679/0.09716, allocations: 44.49 MB / 309.1 MB, free: 320 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4702/0.5674, allocations: 130.3 MB / 439.4 MB, free: 9.199 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003212/0.5678, allocations: 91.41 kB / 439.5 MB, free: 9.152 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7972/1.365, allocations: 130.4 MB / 0.5565 GB, free: 71.4 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.006e-06/1.365, allocations: 0 / 0.5565 GB, free: 71.4 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000619/1.366, allocations: 141.5 kB / 0.5567 GB, free: 71.38 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: 1488 * Number of variables: 1488 Notification: Performance of Generate backend data structure: time 0.0281/1.394, allocations: 6.015 MB / 0.5626 GB, free: 69.06 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.453e-05/1.394, allocations: 10.09 kB / 0.5626 GB, free: 69.06 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009249/1.403, allocations: 1.151 MB / 0.5637 GB, free: 68.72 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02031/1.423, allocations: 4.919 MB / 0.5685 GB, free: 67.9 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006048/1.424, allocations: 426.4 kB / 0.5689 GB, free: 67.89 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002448/1.427, allocations: 0.5509 MB / 0.5694 GB, free: 67.88 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03063/1.457, allocations: 7.167 MB / 0.5764 GB, free: 67.21 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003354/1.458, allocations: 12.33 kB / 0.5764 GB, free: 67.2 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002312/1.46, allocations: 234.7 kB / 0.5767 GB, free: 67.2 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004234/1.46, allocations: 248.9 kB / 0.5769 GB, free: 67.19 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02593/1.486, allocations: 5.794 MB / 0.5826 GB, free: 67.14 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06748/1.554, allocations: 23.76 MB / 0.6058 GB, free: 55.86 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01191/1.566, allocations: 8.721 MB / 0.6143 GB, free: 48.6 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02645/1.592, allocations: 6.765 MB / 0.6209 GB, free: 44.99 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.14e-05/1.593, allocations: 64.22 kB / 0.6209 GB, free: 44.93 MB / 410.7 MB Notification: Performance of pre-optimization done (n=250): time 6.132e-06/1.593, allocations: 0 / 0.6209 GB, free: 44.93 MB / 410.7 MB Notification: Performance of matching and sorting (n=302): time 0.06538/1.658, allocations: 16.42 MB / 0.637 GB, free: 33.16 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.981e-05/1.658, allocations: 84.94 kB / 0.6371 GB, free: 33.07 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006865/1.665, allocations: 3.322 MB / 0.6403 GB, free: 30.28 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006346/1.666, allocations: 77.7 kB / 0.6404 GB, free: 30.2 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001898/1.668, allocations: 2.633 MB / 0.643 GB, free: 27.84 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001165/1.669, allocations: 1.036 MB / 0.644 GB, free: 26.91 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003301/1.669, allocations: 76 kB / 0.644 GB, free: 26.83 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002141/1.669, allocations: 449 kB / 0.6445 GB, free: 26.43 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004096/1.673, allocations: 1.635 MB / 0.6461 GB, free: 25.03 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004661/1.678, allocations: 2.788 MB / 0.6488 GB, free: 22.01 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004859/1.683, allocations: 2.107 MB / 0.6508 GB, free: 20.06 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-05/1.683, allocations: 12 kB / 0.6509 GB, free: 20.05 MB / 410.7 MB Notification: Performance of matching and sorting (n=484) (initialization): time 0.01446/1.697, allocations: 5.721 MB / 0.6564 GB, free: 14.91 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.982e-05/1.698, allocations: 20 kB / 0.6565 GB, free: 14.89 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.262e-05/1.698, allocations: 40 kB / 0.6565 GB, free: 14.85 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003529/1.701, allocations: 0.8696 MB / 0.6573 GB, free: 14.13 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006288/1.708, allocations: 0.8817 MB / 0.6582 GB, free: 13.38 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01644/1.724, allocations: 10.04 MB / 0.668 GB, free: 3.859 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005161/1.729, allocations: 239.8 kB / 0.6682 GB, free: 3.668 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00043/1.73, allocations: 171.6 kB / 0.6684 GB, free: 3.504 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 168 * 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 (431): * Single equations (assignments): 422 * 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,(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004101/1.734, allocations: 1.627 MB / 0.67 GB, free: 2.043 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001136/1.735, allocations: 395.3 kB / 0.6704 GB, free: 1.652 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.357/2.092, allocations: 4.929 MB / 0.6752 GB, free: 64.61 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.812e-05/2.092, allocations: 28.72 kB / 0.6752 GB, free: 64.61 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.7e-05/2.092, allocations: 14.06 kB / 0.6752 GB, free: 64.61 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.897e-05/2.092, allocations: 13.41 kB / 0.6752 GB, free: 64.61 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03255/2.125, allocations: 10.56 MB / 0.6855 GB, free: 63.62 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.01392/2.139, allocations: 4.123 MB / 0.6896 GB, free: 63.14 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004505/2.143, allocations: 0.522 MB / 0.6901 GB, free: 63.14 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004433/2.148, allocations: 0.9883 MB / 0.691 GB, free: 63.09 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006271/2.148, allocations: 75.11 kB / 0.6911 GB, free: 63.09 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02179/2.17, allocations: 15.11 MB / 0.7059 GB, free: 55.23 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.716e-06/2.17, allocations: 11.66 kB / 0.7059 GB, free: 55.23 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01812/2.188, allocations: 7.076 MB / 0.7128 GB, free: 54.45 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003094/2.192, allocations: 0.7995 MB / 0.7136 GB, free: 54.35 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001627/2.193, allocations: 67.86 kB / 0.7136 GB, free: 54.35 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004522/2.198, allocations: 186.5 kB / 0.7138 GB, free: 54.35 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009658/2.199, allocations: 227.2 kB / 0.714 GB, free: 54.34 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003127/2.199, allocations: 88.31 kB / 0.7141 GB, free: 54.34 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.005224/2.204, allocations: 2.238 MB / 0.7163 GB, free: 54.2 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.01e-07/2.204, allocations: 0 / 0.7163 GB, free: 54.2 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006363/2.211, allocations: 1.212 MB / 0.7175 GB, free: 54.2 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * 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 (241): * Single equations (assignments): 232 * 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 {(2,100.0%) 13,(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.001292/2.212, allocations: 0.4988 MB / 0.718 GB, free: 54.09 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0117/2.224, allocations: 4.992 MB / 0.7228 GB, free: 52.95 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.044e-05/2.224, allocations: 1.75 kB / 0.7228 GB, free: 52.95 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007622/2.232, allocations: 3.166 MB / 0.7259 GB, free: 51.36 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006029/2.238, allocations: 0.8204 MB / 0.7267 GB, free: 51.13 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02772/2.265, allocations: 12.64 MB / 0.7391 GB, free: 44.2 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006078/2.272, allocations: 3.613 MB / 0.7426 GB, free: 42.91 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.005435/2.277, allocations: 0.8534 MB / 0.7434 GB, free: 42.8 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001358/2.278, allocations: 253.9 kB / 0.7437 GB, free: 42.79 MB / 410.7 MB Notification: Performance of SimCode: time 1.002e-06/2.278, allocations: 0 / 0.7437 GB, free: 42.79 MB / 410.7 MB Notification: Performance of Templates: time 0.1452/2.424, allocations: 56.08 MB / 0.7985 GB, free: 13.48 MB / 410.7 MB