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_MultiPhase.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_MultiPhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|constantSpeed3.phi|constantSpeedM.phi|smee3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee3.stator.strayReluctance.port_p.Phi.im|smee3.stator.strayReluctance.port_p.Phi.re|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_MultiPhase") Notification: Performance of loadModel(Modelica): time 1.915/1.915, allocations: 171.1 MB / 186.7 MB, free: 1.027 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000486/0.0004863, allocations: 8 kB / 233.9 MB, free: 2.371 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08502/0.08553, allocations: 38.77 MB / 272.6 MB, free: 11.52 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4188/0.5043, allocations: 107 MB / 379.7 MB, free: 15 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003363/0.5047, allocations: 89.45 kB / 379.8 MB, free: 14.96 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9684/1.473, allocations: 181.2 MB / 0.5478 GB, free: 1.242 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.917e-06/1.473, allocations: 0 / 0.5478 GB, free: 1.242 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0008199/1.474, allocations: 203.8 kB / 0.5479 GB, free: 1.043 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: 2140 * Number of variables: 2140 Notification: Performance of Generate backend data structure: time 0.3293/1.803, allocations: 8.392 MB / 0.5561 GB, free: 16.13 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/1.803, allocations: 10.16 kB / 0.5562 GB, free: 16.13 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009924/1.813, allocations: 1.357 MB / 0.5575 GB, free: 15.66 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02266/1.836, allocations: 5.873 MB / 0.5632 GB, free: 14.73 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001008/1.837, allocations: 0.5958 MB / 0.5638 GB, free: 14.71 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003686/1.841, allocations: 0.7986 MB / 0.5646 GB, free: 14.7 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03778/1.879, allocations: 10.39 MB / 0.5747 GB, free: 13.81 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004379/1.879, allocations: 3.969 kB / 0.5747 GB, free: 13.81 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002869/1.882, allocations: 350.3 kB / 0.5751 GB, free: 13.81 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003962/1.882, allocations: 336.6 kB / 0.5754 GB, free: 13.79 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02716/1.91, allocations: 8.054 MB / 0.5832 GB, free: 13.71 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08392/1.994, allocations: 33.09 MB / 0.6156 GB, free: 4.391 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01057/2.004, allocations: 6.088 MB / 0.6215 GB, free: 16.13 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004346/2.005, allocations: 31.89 kB / 0.6215 GB, free: 16.12 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.611e-05/2.005, allocations: 69.06 kB / 0.6216 GB, free: 16.06 MB / 362.7 MB Notification: Performance of pre-optimization done (n=295): time 6.883e-06/2.005, allocations: 0 / 0.6216 GB, free: 16.06 MB / 362.7 MB Notification: Performance of matching and sorting (n=349): time 0.05968/2.064, allocations: 15.71 MB / 0.6369 GB, free: 8.941 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.087e-05/2.065, allocations: 90.77 kB / 0.637 GB, free: 8.871 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01122/2.076, allocations: 4.258 MB / 0.6412 GB, free: 7.293 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001103/2.077, allocations: 82.8 kB / 0.6413 GB, free: 7.219 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.007302/2.084, allocations: 3.637 MB / 0.6448 GB, free: 4.469 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002933/2.087, allocations: 1.189 MB / 0.646 GB, free: 3.547 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001056/2.089, allocations: 86 kB / 0.6461 GB, free: 3.48 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0006711/2.089, allocations: 470.3 kB / 0.6465 GB, free: 3.102 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006724/2.096, allocations: 1.896 MB / 0.6484 GB, free: 2.367 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007618/2.104, allocations: 3.104 MB / 0.6514 GB, free: 100 kB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007837/2.112, allocations: 2.459 MB / 0.6538 GB, free: 15.06 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.684e-05/2.112, allocations: 10.59 kB / 0.6538 GB, free: 15.06 MB / 378.7 MB Notification: Performance of matching and sorting (n=537) (initialization): time 0.02148/2.133, allocations: 6.44 MB / 0.6601 GB, free: 10.86 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.392e-05/2.133, allocations: 24.58 kB / 0.6601 GB, free: 10.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001078/2.133, allocations: 40 kB / 0.6602 GB, free: 10.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0041/2.137, allocations: 0.9105 MB / 0.661 GB, free: 10.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007359/2.145, allocations: 0.9541 MB / 0.662 GB, free: 9.285 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02503/2.17, allocations: 12.38 MB / 0.6741 GB, free: 13.45 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006457/2.177, allocations: 226.7 kB / 0.6743 GB, free: 13.25 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001115/2.178, allocations: 179.9 kB / 0.6745 GB, free: 13.08 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 171 * 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 (469): * Single equations (assignments): 461 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * 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: 4 {(4,93.8%) 17,(1,100.0%) 5,(4,93.8%) 17,(3,77.8%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008195/2.186, allocations: 2.471 MB / 0.6769 GB, free: 10.96 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001893/2.188, allocations: 478.2 kB / 0.6773 GB, free: 10.49 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02072/2.209, allocations: 5.554 MB / 0.6827 GB, free: 5.727 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.106e-05/2.209, allocations: 40 kB / 0.6828 GB, free: 5.688 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.287e-05/2.209, allocations: 12 kB / 0.6828 GB, free: 5.676 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001078/2.209, allocations: 16.41 kB / 0.6828 GB, free: 5.676 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.642/2.851, allocations: 14.06 MB / 0.6965 GB, free: 56.71 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.53e-05/2.851, allocations: 16.06 kB / 0.6966 GB, free: 56.71 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00484/2.856, allocations: 0.5604 MB / 0.6971 GB, free: 56.71 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004539/2.86, allocations: 1.04 MB / 0.6981 GB, free: 56.66 MB / 394.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007442/2.861, allocations: 87.58 kB / 0.6982 GB, free: 56.66 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02844/2.89, allocations: 16.02 MB / 0.7139 GB, free: 50.02 MB / 394.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.268e-05/2.89, allocations: 19.33 kB / 0.7139 GB, free: 50.02 MB / 394.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02264/2.912, allocations: 8.174 MB / 0.7219 GB, free: 49.06 MB / 394.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003871/2.916, allocations: 0.9597 MB / 0.7228 GB, free: 48.96 MB / 394.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001943/2.918, allocations: 84 kB / 0.7229 GB, free: 48.96 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005052/2.923, allocations: 201 kB / 0.7231 GB, free: 48.96 MB / 394.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001187/2.925, allocations: 286 kB / 0.7233 GB, free: 48.95 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004866/2.925, allocations: 97.02 kB / 0.7234 GB, free: 48.95 MB / 394.8 MB Notification: Performance of sorting global known variables: time 0.007764/2.933, allocations: 2.894 MB / 0.7263 GB, free: 48.77 MB / 394.8 MB Notification: Performance of sort global known variables: time 1.212e-06/2.933, allocations: 0 / 0.7263 GB, free: 48.77 MB / 394.8 MB Notification: Performance of remove unused functions: time 0.008672/2.942, allocations: 1.456 MB / 0.7277 GB, free: 48.77 MB / 394.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 35 * 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,smee3.phiMechanical,smee3.stator.core.Phi.re,smee3.stator.core.Phi.im,smee3.stator.strayReluctance.Phi.re,smee3.stator.strayReluctance.Phi.im) * 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 (259): * Single equations (assignments): 252 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(4,93.8%) 17,(4,93.8%) 33,(4,93.8%) 17,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001667/2.943, allocations: 0.5095 MB / 0.7282 GB, free: 48.67 MB / 394.8 MB Notification: Performance of simCode: created initialization part: time 0.01705/2.961, allocations: 5.762 MB / 0.7338 GB, free: 47.83 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 1.362e-05/2.961, allocations: 2.062 kB / 0.7338 GB, free: 47.83 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01053/2.971, allocations: 3.723 MB / 0.7374 GB, free: 47.11 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008541/2.98, allocations: 1.066 MB / 0.7385 GB, free: 47.09 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05019/3.03, allocations: 17.45 MB / 0.7555 GB, free: 39.53 MB / 394.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01599/3.046, allocations: 5.119 MB / 0.7605 GB, free: 38.58 MB / 394.8 MB Notification: Performance of simCode: alias equations: time 0.008366/3.054, allocations: 0.9286 MB / 0.7614 GB, free: 38.48 MB / 394.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001868/3.056, allocations: 287.5 kB / 0.7617 GB, free: 38.47 MB / 394.8 MB Notification: Performance of SimCode: time 1.523e-06/3.056, allocations: 3.094 kB / 0.7617 GB, free: 38.47 MB / 394.8 MB Notification: Performance of Templates: time 0.1847/3.241, allocations: 67.91 MB / 0.828 GB, free: 2.715 MB / 394.8 MB