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 1.88/1.88, allocations: 194.9 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003568/0.0003568, allocations: 12 kB / 264.6 MB, free: 12.93 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08861/0.08899, allocations: 44.51 MB / 309.1 MB, free: 364 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.03204/0.1211, allocations: 19.46 MB / 328.5 MB, free: 12.83 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01762/0.1388, allocations: 6.835 MB / 335.4 MB, free: 5.977 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004219/0.143, allocations: 123.5 kB / 335.5 MB, free: 5.855 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005302/0.1484, allocations: 1.15 MB / 336.6 MB, free: 4.699 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008921/0.1573, allocations: 2.017 MB / 338.7 MB, free: 2.676 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004939/0.1623, allocations: 0.9708 MB / 339.6 MB, free: 1.703 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01195/0.1743, allocations: 4.86 MB / 344.5 MB, free: 12.83 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007638/0.182, allocations: 3.65 MB / 348.1 MB, free: 9.129 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0048/0.1868, allocations: 2.183 MB / 350.3 MB, free: 6.938 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006122/0.193, allocations: 2.758 MB / 353.1 MB, free: 4.168 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00171/0.1948, allocations: 360 kB / 353.4 MB, free: 3.816 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003634/0.1984, allocations: 0.6869 MB / 354.1 MB, free: 3.129 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002803/0.2013, allocations: 1.433 MB / 355.6 MB, free: 1.691 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002929/0.2043, allocations: 1.272 MB / 356.8 MB, free: 420 kB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01513/0.2194, allocations: 9.17 MB / 366 MB, free: 7.215 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.2195, allocations: 0 / 366 MB, free: 7.215 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.916e-06/0.2195, allocations: 0 / 366 MB, free: 7.215 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0003195/0.2198, allocations: 0 / 366 MB, free: 7.215 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: 1488 * Number of variables: 1488 Notification: Performance of Generate backend data structure: time 0.02376/0.2436, allocations: 6.238 MB / 372.2 MB, free: 0.8945 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.838e-05/0.2437, allocations: 8.031 kB / 372.2 MB, free: 0.8867 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.268/0.5117, allocations: 1.223 MB / 373.5 MB, free: 54.14 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01208/0.5238, allocations: 3.6 MB / 377.1 MB, free: 52.79 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005546/0.5244, allocations: 424 kB / 377.5 MB, free: 52.6 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00197/0.5264, allocations: 0.5594 MB / 378 MB, free: 52.41 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02223/0.5487, allocations: 7.167 MB / 385.2 MB, free: 49.51 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002035/0.5489, allocations: 17.06 kB / 385.2 MB, free: 49.5 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008409/0.5498, allocations: 232.6 kB / 385.4 MB, free: 49.32 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004091/0.5502, allocations: 259 kB / 385.7 MB, free: 49.3 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01725/0.5675, allocations: 6.075 MB / 391.8 MB, free: 46.16 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05502/0.6225, allocations: 23.77 MB / 415.5 MB, free: 24.55 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01089/0.6335, allocations: 8.699 MB / 424.2 MB, free: 14.92 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01654/0.6501, allocations: 6.667 MB / 430.9 MB, free: 8.141 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.595e-05/0.6502, allocations: 60.56 kB / 431 MB, free: 8.074 MB / 314.7 MB Notification: Performance of pre-optimization done (n=247): time 6.813e-06/0.6502, allocations: 0 / 431 MB, free: 8.074 MB / 314.7 MB Warning: The linear system: 1 : 3.0 * smeeM.stator.zeroInductor.i0 = smeeM.is[1] + smeeM.is[2] + smeeM.is[3] 2 : smeeM.is[1] + smeeM.is[2] + smeeM.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ smeeM.is[1] ; smeeM.is[2] ] = [ smeeM.is[3] + (-3.0) * smeeM.stator.zeroInductor.i0 ; -smeeM.is[3] ] might be structurally or numerically singular for variable smeeM.is[2] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=302): time 0.06467/0.7149, allocations: 16.44 MB / 447.4 MB, free: 7.371 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.611e-05/0.715, allocations: 85.75 kB / 447.5 MB, free: 7.273 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007754/0.7227, allocations: 3.387 MB / 450.9 MB, free: 3.898 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005627/0.7233, allocations: 70.41 kB / 451 MB, free: 3.824 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002755/0.7261, allocations: 2.638 MB / 453.6 MB, free: 1.168 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001468/0.7276, allocations: 1.033 MB / 454.6 MB, free: 148 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003392/0.728, allocations: 72 kB / 454.7 MB, free: 76 kB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0003442/0.7283, allocations: 454.1 kB / 455.1 MB, free: 15.62 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004736/0.7331, allocations: 1.643 MB / 456.8 MB, free: 13.98 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005788/0.7389, allocations: 2.815 MB / 459.6 MB, free: 10.65 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005916/0.7449, allocations: 2.111 MB / 461.7 MB, free: 8.52 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.333e-05/0.7449, allocations: 8 kB / 461.7 MB, free: 8.512 MB / 346.7 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.01661/0.7615, allocations: 5.695 MB / 467.4 MB, free: 2.738 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.636e-05/0.7616, allocations: 20 kB / 467.4 MB, free: 2.719 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.834e-05/0.7617, allocations: 40.62 kB / 467.5 MB, free: 2.68 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003267/0.765, allocations: 0.8081 MB / 468.3 MB, free: 1.855 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006492/0.7715, allocations: 0.8853 MB / 469.2 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01949/0.791, allocations: 10.09 MB / 479.3 MB, free: 6.477 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005059/0.7962, allocations: 231.6 kB / 479.5 MB, free: 6.25 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005354/0.7967, allocations: 177.9 kB / 479.7 MB, free: 6.078 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 169 * 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 (428): * Single equations (assignments): 419 * Array equations: 4 * 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 {(3,100.0%) 12,(1,100.0%) 3,(3,100.0%) 32} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004358/0.8011, allocations: 1.626 MB / 481.3 MB, free: 4.441 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001295/0.8024, allocations: 387.3 kB / 481.7 MB, free: 4.059 MB / 362.7 MB Warning: The linear system: 1 : 3.0 * smeeM.stator.zeroInductor.i0 = smeeM.is[1] + smeeM.is[2] + smeeM.is[3] 2 : smeeM.is[1] + smeeM.is[2] + smeeM.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ smeeM.is[2] ; smeeM.is[1] ] = [ smeeM.is[3] + (-3.0) * smeeM.stator.zeroInductor.i0 ; -smeeM.is[3] ] might be structurally or numerically singular for variable smeeM.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.01396/0.8164, allocations: 4.846 MB / 486.5 MB, free: 15.09 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.045e-05/0.8165, allocations: 19.94 kB / 486.5 MB, free: 15.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.33e-05/0.8165, allocations: 4 kB / 486.5 MB, free: 15.07 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002911/0.8194, allocations: 0.8008 MB / 487.3 MB, free: 14.25 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001174/0.8206, allocations: 69.31 kB / 487.4 MB, free: 14.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00382/0.8244, allocations: 187.8 kB / 487.6 MB, free: 14 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007177/0.8252, allocations: 227.2 kB / 487.8 MB, free: 13.77 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01762/0.8428, allocations: 4.779 MB / 492.6 MB, free: 8.996 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.01632/0.8592, allocations: 6.068 MB / 498.6 MB, free: 2.855 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004661/0.8639, allocations: 1.756 MB / 0.4887 GB, free: 1.086 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.005633/0.8696, allocations: 2.27 MB / 0.4909 GB, free: 14.83 MB / 394.7 MB Notification: Performance of Backend: time 2.745e-06/0.8696, allocations: 0 / 0.4909 GB, free: 14.83 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0115/0.8811, allocations: 3.655 MB / 0.4945 GB, free: 11.13 MB / 394.7 MB Notification: Performance of SimCode: time 0.02987/0.9111, allocations: 12.64 MB / 0.5068 GB, free: 14.44 MB / 410.7 MB Notification: Performance of Templates: time 0.4148/1.326, allocations: 57.7 MB / 0.5632 GB, free: 111.5 MB / 410.7 MB