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_MultiPhase.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_MultiPhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,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.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase") Notification: Performance of loadModel(Modelica): time 1.916/1.916, allocations: 194.9 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003457/0.0003458, allocations: 12 kB / 264.6 MB, free: 12.92 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09198/0.09234, allocations: 44.51 MB / 309.1 MB, free: 348 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase): time 0.0412/0.1336, allocations: 23.82 MB / 332.9 MB, free: 8.438 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02096/0.1546, allocations: 7.861 MB / 340.8 MB, free: 0.5547 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005485/0.1602, allocations: 159.4 kB / 340.9 MB, free: 408 kB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006502/0.1667, allocations: 1.395 MB / 342.3 MB, free: 15 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01099/0.1777, allocations: 2.403 MB / 344.7 MB, free: 12.59 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006155/0.1839, allocations: 1.164 MB / 345.9 MB, free: 11.42 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01725/0.2012, allocations: 7.032 MB / 352.9 MB, free: 4.375 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01456/0.2158, allocations: 6.122 MB / 359 MB, free: 14.19 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007163/0.223, allocations: 3.184 MB / 362.2 MB, free: 10.99 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009214/0.2323, allocations: 3.929 MB / 366.2 MB, free: 7.047 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002727/0.235, allocations: 0.5352 MB / 366.7 MB, free: 6.512 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004942/0.24, allocations: 0.8198 MB / 367.5 MB, free: 5.691 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003995/0.2441, allocations: 1.939 MB / 369.4 MB, free: 3.746 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004262/0.2484, allocations: 1.888 MB / 371.3 MB, free: 1.848 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2794/0.5278, allocations: 14.26 MB / 385.6 MB, free: 19.65 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.5279, allocations: 3.375 kB / 385.6 MB, free: 19.65 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.036e-06/0.5279, allocations: 1.094 kB / 385.6 MB, free: 19.65 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0006042/0.5285, allocations: 0 / 385.6 MB, free: 19.65 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2286 * Number of variables: 2286 Notification: Performance of Generate backend data structure: time 0.04493/0.5734, allocations: 9.26 MB / 394.9 MB, free: 14.84 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.406e-05/0.5735, allocations: 9.531 kB / 394.9 MB, free: 14.84 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01771/0.5912, allocations: 2.087 MB / 397 MB, free: 13.99 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01801/0.6093, allocations: 5.401 MB / 402.4 MB, free: 12.34 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008469/0.6102, allocations: 0.6399 MB / 403 MB, free: 12.32 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00352/0.6137, allocations: 0.8405 MB / 403.8 MB, free: 12.31 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03839/0.6521, allocations: 11.3 MB / 415.1 MB, free: 9.809 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004468/0.6526, allocations: 10.91 kB / 415.1 MB, free: 9.805 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002948/0.6556, allocations: 350.9 kB / 415.5 MB, free: 9.805 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000493/0.6561, allocations: 380.2 kB / 415.9 MB, free: 9.484 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03037/0.6865, allocations: 9.609 MB / 425.5 MB, free: 3.512 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1039/0.7905, allocations: 35.92 MB / 461.4 MB, free: 15.61 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02849/0.819, allocations: 16.89 MB / 478.3 MB, free: 12.89 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02983/0.8489, allocations: 9.351 MB / 487.6 MB, free: 3.387 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.548e-05/0.849, allocations: 69.12 kB / 487.7 MB, free: 3.309 MB / 378.7 MB Notification: Performance of pre-optimization done (n=327): time 7.864e-06/0.849, allocations: 0 / 487.7 MB, free: 3.309 MB / 378.7 MB Warning: The linear system: 1 : 3.0 * smee3.stator.zeroInductor.i0 = smee3.is[1] + smee3.is[2] + smee3.is[3] 2 : smee3.is[1] + smee3.is[2] + smee3.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ smee3.is[1] ; smee3.is[2] ] = [ smee3.is[3] + (-3.0) * smee3.stator.zeroInductor.i0 ; -smee3.is[3] ] might be structurally or numerically singular for variable smee3.is[2] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=390): time 0.07108/0.9201, allocations: 17.34 MB / 0.4932 GB, free: 1.801 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.617e-05/0.9203, allocations: 94.45 kB / 0.4933 GB, free: 1.695 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01239/0.9327, allocations: 4.414 MB / 0.4976 GB, free: 13.28 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008403/0.9336, allocations: 96.36 kB / 0.4977 GB, free: 13.18 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004711/0.9383, allocations: 3.824 MB / 0.5014 GB, free: 9.332 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002297/0.9406, allocations: 1.317 MB / 0.5027 GB, free: 8.027 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005388/0.9412, allocations: 96 kB / 0.5028 GB, free: 7.934 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004275/0.9417, allocations: 496.3 kB / 0.5033 GB, free: 7.441 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006683/0.9484, allocations: 2.032 MB / 0.5053 GB, free: 5.402 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008314/0.9567, allocations: 3.445 MB / 0.5086 GB, free: 1.332 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008283/0.965, allocations: 2.641 MB / 0.5112 GB, free: 14.73 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.048e-05/0.9651, allocations: 12 kB / 0.5112 GB, free: 14.71 MB / 426.7 MB Notification: Performance of matching and sorting (n=607) (initialization): time 0.0229/0.9881, allocations: 6.849 MB / 0.5179 GB, free: 8.117 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.622e-05/0.9882, allocations: 27.98 kB / 0.5179 GB, free: 8.09 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.487e-05/0.9883, allocations: 44 kB / 0.518 GB, free: 8.047 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004108/0.9924, allocations: 0.9286 MB / 0.5189 GB, free: 7.109 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008693/1.001, allocations: 1.087 MB / 0.5199 GB, free: 6.086 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5607/1.562, allocations: 10.9 MB / 0.5306 GB, free: 143 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006815/1.569, allocations: 260 kB / 0.5308 GB, free: 143 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001099/1.57, allocations: 205.7 kB / 0.531 GB, free: 142.9 MB / 426.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 201 * 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 (536): * Single equations (assignments): 529 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * 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 {(5,92.0%) 30,(2,100.0%) 13,(3,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007388/1.577, allocations: 2.548 MB / 0.5335 GB, free: 141.7 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001553/1.579, allocations: 495.4 kB / 0.534 GB, free: 141.7 MB / 426.8 MB Warning: The linear system: 1 : 3.0 * smee3.stator.zeroInductor.i0 = smee3.is[1] + smee3.is[2] + smee3.is[3] 2 : smee3.is[1] + smee3.is[2] + smee3.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ smee3.is[2] ; smee3.is[1] ] = [ smee3.is[3] + (-3.0) * smee3.stator.zeroInductor.i0 ; -smee3.is[3] ] might be structurally or numerically singular for variable smee3.is[1] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01673/1.596, allocations: 5.916 MB / 0.5398 GB, free: 139.2 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.55e-05/1.596, allocations: 18 kB / 0.5398 GB, free: 139.2 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.575e-05/1.596, allocations: 5.828 kB / 0.5398 GB, free: 139.2 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003831/1.6, allocations: 1.016 MB / 0.5408 GB, free: 138.8 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002/1.602, allocations: 75 kB / 0.5409 GB, free: 138.7 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005392/1.607, allocations: 218.1 kB / 0.5411 GB, free: 138.6 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001055/1.608, allocations: 319.3 kB / 0.5414 GB, free: 138.6 MB / 426.8 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.02118/1.629, allocations: 6.012 MB / 0.5473 GB, free: 136.6 MB / 426.8 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.01911/1.648, allocations: 7.475 MB / 0.5546 GB, free: 133.6 MB / 426.8 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00532/1.654, allocations: 2.208 MB / 0.5567 GB, free: 132.7 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.007212/1.661, allocations: 2.981 MB / 0.5596 GB, free: 130.5 MB / 426.8 MB Notification: Performance of Backend: time 1.011e-06/1.661, allocations: 2.406 kB / 0.5596 GB, free: 130.5 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.0134/1.675, allocations: 4.366 MB / 0.5639 GB, free: 126.6 MB / 426.8 MB Notification: Performance of SimCode: time 0.03953/1.714, allocations: 18.19 MB / 0.5817 GB, free: 109.1 MB / 426.8 MB Notification: Performance of Templates: time 0.1908/1.905, allocations: 74.3 MB / 0.6542 GB, free: 34.72 MB / 426.8 MB