Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|terminalBoxQS.plugSupply.pin.1..v.re|terminalBoxQS.plugSupply.pin.1..v.im|terminalBoxQS.plugSupply.pin.1..i.re|terminalBoxQS.plugSupply.pin.1..i.im|terminalBoxQS.plugSupply.pin.2..v.re|terminalBoxQS.plugSupply.pin.2..v.im|terminalBoxQS.plugSupply.pin.2..i.re|terminalBoxQS.plugSupply.pin.2..i.im|terminalBoxQS.plugSupply.pin.3..v.re|terminalBoxQS.plugSupply.pin.3..v.im|terminalBoxQS.plugSupply.pin.3..i.re|terminalBoxQS.plugSupply.pin.3..i.im",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadModel(Modelica): time 2.037/2.037, allocations: 194.9 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003448/0.0003449, allocations: 8 kB / 264.6 MB, free: 12.91 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08938/0.08975, allocations: 44.5 MB / 309.1 MB, free: 340 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.05837/0.1482, allocations: 34.44 MB / 343.5 MB, free: 13.78 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02899/0.1772, allocations: 10.59 MB / 354.1 MB, free: 3.16 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007781/0.1851, allocations: 251.1 kB / 354.4 MB, free: 2.914 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01006/0.1952, allocations: 2.25 MB / 356.6 MB, free: 0.6523 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01778/0.213, allocations: 3.891 MB / 360.5 MB, free: 12.75 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009825/0.2228, allocations: 1.844 MB / 362.4 MB, free: 10.9 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.02545/0.2483, allocations: 10.77 MB / 373.1 MB, free: 120 kB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3093/0.5577, allocations: 20.08 MB / 393.2 MB, free: 9.555 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009268/0.567, allocations: 4.801 MB / 398 MB, free: 9.551 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01147/0.5785, allocations: 5.669 MB / 403.7 MB, free: 9.547 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00385/0.5824, allocations: 0.788 MB / 404.5 MB, free: 9.547 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006614/0.5891, allocations: 1.088 MB / 405.5 MB, free: 9.547 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004776/0.5939, allocations: 2.587 MB / 408.1 MB, free: 9.543 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004778/0.5987, allocations: 2.67 MB / 410.8 MB, free: 8.793 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02998/0.6288, allocations: 22.46 MB / 433.3 MB, free: 5.977 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.6288, allocations: 0 / 433.3 MB, free: 5.977 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.506e-06/0.6288, allocations: 4 kB / 433.3 MB, free: 5.973 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0006815/0.6295, allocations: 3.562 kB / 433.3 MB, free: 5.973 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3594 * Number of variables: 3594 Notification: Performance of Generate backend data structure: time 0.05221/0.6817, allocations: 13.26 MB / 446.5 MB, free: 10.13 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.201e-05/0.6818, allocations: 8.031 kB / 446.5 MB, free: 10.12 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07584/0.7577, allocations: 9.106 MB / 455.6 MB, free: 1.641 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02353/0.7812, allocations: 7.596 MB / 463.2 MB, free: 13.04 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001447/0.7827, allocations: 0.9622 MB / 464.2 MB, free: 12.09 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00587/0.7886, allocations: 1.276 MB / 465.5 MB, free: 10.83 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06811/0.8568, allocations: 20.28 MB / 485.8 MB, free: 6.488 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006193/0.8575, allocations: 31.08 kB / 485.8 MB, free: 6.461 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004614/0.8621, allocations: 0.5228 MB / 486.3 MB, free: 5.953 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001207/0.8633, allocations: 0.7494 MB / 487.1 MB, free: 5.203 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06025/0.9236, allocations: 19.11 MB / 0.4943 GB, free: 2.098 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6798/1.603, allocations: 65.08 MB / 0.5579 GB, free: 98.35 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04833/1.652, allocations: 57.16 MB / 0.6137 GB, free: 45.82 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0312/1.683, allocations: 11.75 MB / 0.6252 GB, free: 39.6 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.618e-05/1.683, allocations: 68.47 kB / 0.6252 GB, free: 39.53 MB / 426.8 MB Notification: Performance of pre-optimization done (n=370): time 7.264e-06/1.683, allocations: 0 / 0.6252 GB, free: 39.53 MB / 426.8 MB Notification: Performance of matching and sorting (n=412): time 0.05393/1.737, allocations: 17.98 MB / 0.6428 GB, free: 29.18 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.51e-05/1.737, allocations: 96.52 kB / 0.6429 GB, free: 29.11 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01184/1.749, allocations: 5.515 MB / 0.6483 GB, free: 26.19 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007905/1.75, allocations: 92.8 kB / 0.6484 GB, free: 26.11 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004278/1.754, allocations: 6.045 MB / 0.6543 GB, free: 20.71 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001817/1.756, allocations: 1.445 MB / 0.6557 GB, free: 19.28 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007753/1.757, allocations: 156 kB / 0.6558 GB, free: 19.12 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0004874/1.757, allocations: 0.6209 MB / 0.6564 GB, free: 18.5 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007564/1.765, allocations: 3.13 MB / 0.6595 GB, free: 15.37 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009705/1.775, allocations: 6.837 MB / 0.6662 GB, free: 6.801 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01004/1.785, allocations: 4.664 MB / 0.6707 GB, free: 2.191 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.995e-05/1.785, allocations: 36 kB / 0.6707 GB, free: 2.156 MB / 426.8 MB Notification: Performance of matching and sorting (n=1013) (initialization): time 0.03005/1.815, allocations: 11 MB / 0.6815 GB, free: 7.098 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001259/1.815, allocations: 60 kB / 0.6815 GB, free: 7.039 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000234/1.815, allocations: 131.2 kB / 0.6817 GB, free: 6.914 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004209/1.82, allocations: 0.979 MB / 0.6826 GB, free: 5.922 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01252/1.832, allocations: 1.868 MB / 0.6844 GB, free: 4.051 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01914/1.851, allocations: 9.739 MB / 0.694 GB, free: 9.906 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008552/1.86, allocations: 455.1 kB / 0.6944 GB, free: 9.465 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001462/1.861, allocations: 428 kB / 0.6948 GB, free: 9.047 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 580 * 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 (964): * Single equations (assignments): 959 * 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: 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 {(1,100.0%) 1,(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01135/1.873, allocations: 4.511 MB / 0.6992 GB, free: 4.52 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001786/1.875, allocations: 0.571 MB / 0.6998 GB, free: 3.941 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3047/2.179, allocations: 6.758 MB / 0.7064 GB, free: 149.1 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001291/2.18, allocations: 22.77 kB / 0.7064 GB, free: 149.1 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.36e-05/2.18, allocations: 0 / 0.7064 GB, free: 149.1 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004153/2.184, allocations: 1.136 MB / 0.7075 GB, free: 149 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001904/2.186, allocations: 74.66 kB / 0.7076 GB, free: 149 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004902/2.191, allocations: 226 kB / 0.7078 GB, free: 149 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001083/2.192, allocations: 287.2 kB / 0.7081 GB, free: 149 MB / 458.8 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.02129/2.213, allocations: 6.322 MB / 0.7142 GB, free: 147.8 MB / 458.8 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.01916/2.232, allocations: 8.335 MB / 0.7224 GB, free: 144.6 MB / 458.8 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.005407/2.238, allocations: 2.504 MB / 0.7248 GB, free: 143.7 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.008425/2.246, allocations: 3.611 MB / 0.7283 GB, free: 142.4 MB / 458.8 MB Notification: Performance of Backend: time 1.443e-06/2.246, allocations: 0 / 0.7283 GB, free: 142.4 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.01672/2.263, allocations: 6.287 MB / 0.7345 GB, free: 139.7 MB / 458.8 MB Notification: Performance of SimCode: time 0.05379/2.317, allocations: 25.06 MB / 0.759 GB, free: 125.6 MB / 458.8 MB Notification: Performance of Templates: time 0.2329/2.55, allocations: 90 MB / 0.8468 GB, free: 37.5 MB / 458.8 MB