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.633/1.633, allocations: 171.2 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003525/0.0003525, allocations: 11.98 kB / 233.9 MB, free: 2.387 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07788/0.07825, allocations: 38.78 MB / 272.6 MB, free: 11.53 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase): time 0.03792/0.1162, allocations: 22.31 MB / 295 MB, free: 5.145 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.2333/0.3496, allocations: 7.218 MB / 302.2 MB, free: 9.996 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00491/0.3545, allocations: 159.8 kB / 302.3 MB, free: 9.996 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00593/0.3605, allocations: 1.354 MB / 303.7 MB, free: 9.992 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009735/0.3703, allocations: 2.107 MB / 305.8 MB, free: 9.969 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005993/0.3763, allocations: 1.118 MB / 306.9 MB, free: 9.945 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.01596/0.3923, allocations: 6.711 MB / 313.6 MB, free: 9.922 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01329/0.4056, allocations: 6.174 MB / 319.8 MB, free: 8.465 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007325/0.413, allocations: 3.052 MB / 322.8 MB, free: 8.148 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008713/0.4218, allocations: 3.703 MB / 326.5 MB, free: 6.656 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002663/0.4245, allocations: 0.5255 MB / 327.1 MB, free: 6.418 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005411/0.43, allocations: 0.6926 MB / 327.8 MB, free: 5.766 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00359/0.4336, allocations: 1.884 MB / 329.6 MB, free: 4.527 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00433/0.438, allocations: 1.821 MB / 331.5 MB, free: 3.484 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02213/0.4601, allocations: 13.78 MB / 345.2 MB, free: 6.164 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.4602, allocations: 0 / 345.2 MB, free: 6.164 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.005e-06/0.4602, allocations: 4 kB / 345.3 MB, free: 6.16 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0004723/0.4607, allocations: 0 / 345.3 MB, free: 6.16 MB / 266.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.03658/0.4973, allocations: 8.885 MB / 354.1 MB, free: 13.22 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.362e-05/0.4974, allocations: 12.02 kB / 354.1 MB, free: 13.21 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01135/0.5087, allocations: 1.531 MB / 355.7 MB, free: 11.66 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01649/0.5253, allocations: 5.11 MB / 360.8 MB, free: 6.504 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008961/0.5262, allocations: 0.5981 MB / 361.4 MB, free: 5.902 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002958/0.5292, allocations: 0.8082 MB / 362.2 MB, free: 5.094 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03469/0.5639, allocations: 10.53 MB / 372.7 MB, free: 10.47 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002803/0.5643, allocations: 4 kB / 372.7 MB, free: 10.46 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002003/0.5663, allocations: 332 kB / 373.1 MB, free: 10.14 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004841/0.5668, allocations: 336.3 kB / 373.4 MB, free: 9.809 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02839/0.5952, allocations: 8.594 MB / 382 MB, free: 1.195 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08676/0.682, allocations: 33.17 MB / 415.1 MB, free: 15.16 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01103/0.6931, allocations: 6.025 MB / 421.2 MB, free: 8.68 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003651/0.6935, allocations: 38.28 kB / 421.2 MB, free: 8.641 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.25e-05/0.6936, allocations: 72.88 kB / 421.3 MB, free: 8.559 MB / 346.7 MB Notification: Performance of pre-optimization done (n=295): time 9.328e-06/0.6936, allocations: 3.938 kB / 421.3 MB, free: 8.555 MB / 346.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=358): time 0.06025/0.7539, allocations: 16.39 MB / 437.7 MB, free: 7.879 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.2e-05/0.754, allocations: 90.2 kB / 437.8 MB, free: 7.777 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01032/0.7643, allocations: 4.307 MB / 442.1 MB, free: 3.461 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006535/0.765, allocations: 85.7 kB / 442.2 MB, free: 3.371 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.4425/1.207, allocations: 3.608 MB / 445.8 MB, free: 111.9 MB / 362.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001762/1.209, allocations: 1.214 MB / 447 MB, free: 111.9 MB / 362.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004548/1.21, allocations: 85.38 kB / 447.1 MB, free: 111.9 MB / 362.8 MB Notification: Performance of setup shared object (initialization): time 0.0003591/1.21, allocations: 481 kB / 447.5 MB, free: 111.5 MB / 362.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005853/1.216, allocations: 1.943 MB / 449.5 MB, free: 111.5 MB / 362.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007044/1.223, allocations: 3.164 MB / 452.6 MB, free: 109.5 MB / 362.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007083/1.23, allocations: 2.507 MB / 455.1 MB, free: 108.3 MB / 362.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.14e-05/1.23, allocations: 10.97 kB / 455.2 MB, free: 108.3 MB / 362.8 MB Notification: Performance of matching and sorting (n=547) (initialization): time 0.0189/1.249, allocations: 6.594 MB / 461.7 MB, free: 105.7 MB / 362.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.708e-05/1.249, allocations: 23.78 kB / 461.8 MB, free: 105.7 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-05/1.249, allocations: 35.62 kB / 461.8 MB, free: 105.7 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003921/1.253, allocations: 1.062 MB / 462.9 MB, free: 105.4 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006841/1.26, allocations: 0.9505 MB / 463.8 MB, free: 105.3 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.022/1.282, allocations: 12.76 MB / 476.6 MB, free: 96.65 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005619/1.288, allocations: 230.8 kB / 476.8 MB, free: 96.57 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007527/1.289, allocations: 177.2 kB / 477 MB, free: 96.54 MB / 362.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 172 * 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 (464): * Single equations (assignments): 457 * 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,76.0%) 36,(4,93.8%) 17,(3,77.8%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00598/1.295, allocations: 2.492 MB / 479.5 MB, free: 95.23 MB / 362.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001313/1.296, allocations: 481.4 kB / 479.9 MB, free: 94.99 MB / 362.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.0148/1.311, allocations: 5.735 MB / 485.7 MB, free: 92.44 MB / 362.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-05/1.311, allocations: 19.19 kB / 485.7 MB, free: 92.43 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.335e-05/1.311, allocations: 1.5 kB / 485.7 MB, free: 92.43 MB / 362.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003149/1.314, allocations: 0.9817 MB / 486.7 MB, free: 91.79 MB / 362.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001451/1.316, allocations: 67.66 kB / 486.7 MB, free: 91.74 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004477/1.32, allocations: 203.1 kB / 486.9 MB, free: 91.68 MB / 362.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009299/1.321, allocations: 298.2 kB / 487.2 MB, free: 91.66 MB / 362.8 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.02042/1.342, allocations: 6.027 MB / 493.3 MB, free: 86.92 MB / 362.8 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.01667/1.358, allocations: 7.17 MB / 0.4887 GB, free: 79.69 MB / 362.8 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004892/1.363, allocations: 2.142 MB / 0.4908 GB, free: 77.54 MB / 362.8 MB Notification: Performance of sorting global known variables: time 0.006168/1.369, allocations: 2.92 MB / 0.4936 GB, free: 74.62 MB / 362.8 MB Notification: Performance of Backend: time 1.082e-06/1.369, allocations: 1.422 kB / 0.4936 GB, free: 74.62 MB / 362.8 MB Notification: Performance of simCode: created initialization part: time 0.01348/1.383, allocations: 4.296 MB / 0.4978 GB, free: 70.27 MB / 362.8 MB Notification: Performance of SimCode: time 0.03496/1.418, allocations: 17.78 MB / 0.5152 GB, free: 52.45 MB / 362.8 MB Notification: Performance of Templates: time 0.4157/1.834, allocations: 69.78 MB / 0.5833 GB, free: 122.3 MB / 378.8 MB