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.SMR_Inverter.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.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smrE.idq_rr.1.|smrE.idq_rr.2.|smrE.idq_sr.1.|smrE.idq_sr.2.|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.stator.strayReluctance.port_p.Phi.im|smrM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") Notification: Performance of loadModel(Modelica): time 1.646/1.646, allocations: 171.2 MB / 186.7 MB, free: 1.043 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003373/0.0003373, allocations: 12 kB / 233.9 MB, free: 2.371 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07684/0.0772, allocations: 38.76 MB / 272.6 MB, free: 11.52 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.02609/0.1033, allocations: 15.78 MB / 288.4 MB, free: 11.68 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01321/0.1166, allocations: 5.348 MB / 293.8 MB, free: 6.32 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002764/0.1194, allocations: 107.5 kB / 293.9 MB, free: 6.215 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003668/0.1231, allocations: 0.9829 MB / 294.9 MB, free: 5.227 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00637/0.1295, allocations: 1.554 MB / 296.4 MB, free: 3.668 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003524/0.133, allocations: 0.8149 MB / 297.2 MB, free: 2.852 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.2162/0.3493, allocations: 3.98 MB / 301.2 MB, free: 10.64 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006991/0.3563, allocations: 3.592 MB / 304.8 MB, free: 10.03 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004149/0.3605, allocations: 1.872 MB / 306.7 MB, free: 10.03 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005635/0.3662, allocations: 2.284 MB / 309 MB, free: 10.03 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001568/0.3678, allocations: 315.5 kB / 309.3 MB, free: 10.03 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002849/0.3707, allocations: 495.7 kB / 309.7 MB, free: 10.03 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001988/0.3727, allocations: 1.307 MB / 311.1 MB, free: 10.02 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002284/0.375, allocations: 1.098 MB / 312.1 MB, free: 9.984 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01038/0.3854, allocations: 8.063 MB / 320.2 MB, free: 6.199 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.3854, allocations: 0 / 320.2 MB, free: 6.199 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.156e-06/0.3854, allocations: 0 / 320.2 MB, free: 6.199 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0002598/0.3857, allocations: 0 / 320.2 MB, free: 6.199 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1292 * Number of variables: 1292 Notification: Performance of Generate backend data structure: time 0.01848/0.4042, allocations: 5.377 MB / 325.6 MB, free: 3.238 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.694e-05/0.4043, allocations: 9.25 kB / 325.6 MB, free: 3.238 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00494/0.4092, allocations: 0.8029 MB / 326.4 MB, free: 2.867 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008096/0.4173, allocations: 3.031 MB / 329.4 MB, free: 1.094 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002809/0.4177, allocations: 369.9 kB / 329.8 MB, free: 0.8867 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001187/0.4189, allocations: 0.4897 MB / 330.3 MB, free: 0.5547 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01792/0.4368, allocations: 6.405 MB / 336.7 MB, free: 12.38 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001656/0.437, allocations: 7.906 kB / 336.7 MB, free: 12.37 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007691/0.4378, allocations: 209 kB / 336.9 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003375/0.4381, allocations: 221.8 kB / 337.1 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01619/0.4543, allocations: 5.319 MB / 342.4 MB, free: 6.66 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04954/0.5039, allocations: 19.96 MB / 362.4 MB, free: 2.438 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007345/0.5113, allocations: 3.992 MB / 366.4 MB, free: 14.16 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004298/0.5118, allocations: 142.9 kB / 366.5 MB, free: 14.01 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.402e-05/0.5118, allocations: 56.56 kB / 366.6 MB, free: 13.95 MB / 298.7 MB Notification: Performance of pre-optimization done (n=212): time 6.563e-06/0.5119, allocations: 0 / 366.6 MB, free: 13.95 MB / 298.7 MB Warning: The linear system: 1 : 3.0 * smrM.stator.zeroInductor.i0 = smrM.is[1] + smrM.is[2] + smrM.is[3] 2 : smrM.is[1] + smrM.is[2] + smrM.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ smrM.is[1] ; smrM.is[2] ] = [ smrM.is[3] + (-3.0) * smrM.stator.zeroInductor.i0 ; -smrM.is[3] ] might be structurally or numerically singular for variable smrM.is[2] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=257): time 0.04695/0.5588, allocations: 13.08 MB / 379.7 MB, free: 0.5781 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.792e-05/0.5589, allocations: 77.44 kB / 379.7 MB, free: 500 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00556/0.5645, allocations: 2.693 MB / 382.4 MB, free: 13.78 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000424/0.5649, allocations: 69.7 kB / 382.5 MB, free: 13.71 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002337/0.5673, allocations: 2.231 MB / 384.7 MB, free: 11.46 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001436/0.5687, allocations: 0.8783 MB / 385.6 MB, free: 10.59 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003427/0.5691, allocations: 64 kB / 385.7 MB, free: 10.53 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003497/0.5695, allocations: 432.4 kB / 386.1 MB, free: 10.1 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004258/0.5737, allocations: 1.408 MB / 387.5 MB, free: 8.688 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004452/0.5782, allocations: 2.256 MB / 389.8 MB, free: 6.066 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004569/0.5828, allocations: 1.807 MB / 391.6 MB, free: 4.242 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.896e-05/0.5828, allocations: 8 kB / 391.6 MB, free: 4.234 MB / 314.7 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.01323/0.5961, allocations: 4.95 MB / 396.5 MB, free: 15.2 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.838e-05/0.5962, allocations: 19.14 kB / 396.5 MB, free: 15.18 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.608e-05/0.5962, allocations: 24 kB / 396.6 MB, free: 15.16 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003624/0.5998, allocations: 0.9176 MB / 397.5 MB, free: 14.22 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004788/0.6046, allocations: 0.6669 MB / 398.1 MB, free: 13.55 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02274/0.6274, allocations: 13.28 MB / 411.4 MB, free: 15.61 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003726/0.6312, allocations: 175.7 kB / 411.6 MB, free: 15.44 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003222/0.6315, allocations: 124 kB / 411.7 MB, free: 15.32 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 118 * 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 (337): * Single equations (assignments): 330 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 5 * 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: 5 {(3,100.0%) 11,(1,100.0%) 3,(1,100.0%) 1,(6,75.0%) 34,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00384/0.6354, allocations: 1.531 MB / 413.2 MB, free: 13.77 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008523/0.6362, allocations: 328 kB / 413.6 MB, free: 13.45 MB / 346.7 MB Warning: The linear system: 1 : 3.0 * smrM.stator.zeroInductor.i0 = smrM.is[1] + smrM.is[2] + smrM.is[3] 2 : smrM.is[1] + smrM.is[2] + smrM.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ smrM.is[2] ; smrM.is[1] ] = [ smrM.is[3] + (-3.0) * smrM.stator.zeroInductor.i0 ; -smrM.is[3] ] might be structurally or numerically singular for variable smrM.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.0118/0.648, allocations: 4.385 MB / 418 MB, free: 8.926 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.458e-05/0.6481, allocations: 15.95 kB / 418 MB, free: 8.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.177e-06/0.6481, allocations: 0 / 418 MB, free: 8.91 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00224/0.6504, allocations: 0.6884 MB / 418.7 MB, free: 8.199 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007436/0.6511, allocations: 51.94 kB / 418.7 MB, free: 8.148 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002559/0.6537, allocations: 151.8 kB / 418.9 MB, free: 8 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005401/0.6542, allocations: 209 kB / 419.1 MB, free: 7.797 MB / 346.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01532/0.6696, allocations: 4.37 MB / 423.4 MB, free: 3.41 MB / 346.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.01263/0.6822, allocations: 5.254 MB / 428.7 MB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003616/0.6859, allocations: 1.531 MB / 430.2 MB, free: 12.53 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.004104/0.69, allocations: 1.805 MB / 432 MB, free: 10.72 MB / 362.7 MB Notification: Performance of Backend: time 6.31e-07/0.69, allocations: 0 / 432 MB, free: 10.72 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.009845/0.6999, allocations: 3.529 MB / 435.6 MB, free: 7.102 MB / 362.7 MB Notification: Performance of SimCode: time 0.2423/0.9422, allocations: 11.7 MB / 447.3 MB, free: 118.2 MB / 362.7 MB Notification: Performance of Templates: time 0.1239/1.066, allocations: 48.98 MB / 496.2 MB, free: 84.64 MB / 362.7 MB