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.SMR_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.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|currentController.y.1.|currentController.y.2.|currentController.y.3.",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") Notification: Performance of loadModel(Modelica): time 1.883/1.883, allocations: 194.8 MB / 211.7 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003346/0.0003346, allocations: 12 kB / 264.6 MB, free: 12.91 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09023/0.09058, allocations: 44.51 MB / 309.1 MB, free: 344 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.05536/0.146, allocations: 33.04 MB / 342.1 MB, free: 15.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02722/0.1733, allocations: 10.08 MB / 352.2 MB, free: 5.082 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006853/0.1802, allocations: 243.1 kB / 352.5 MB, free: 4.844 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009492/0.1897, allocations: 2.133 MB / 354.6 MB, free: 2.699 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0166/0.2063, allocations: 3.739 MB / 358.3 MB, free: 14.95 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009061/0.2154, allocations: 1.803 MB / 360.1 MB, free: 13.14 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.02457/0.24, allocations: 10.44 MB / 370.6 MB, free: 2.68 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3022/0.5422, allocations: 19.74 MB / 390.3 MB, free: 10.72 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008465/0.5508, allocations: 4.694 MB / 395 MB, free: 10.71 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01083/0.5617, allocations: 5.544 MB / 400.6 MB, free: 10.71 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003679/0.5654, allocations: 0.7708 MB / 401.3 MB, free: 10.71 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006286/0.5717, allocations: 1.076 MB / 402.4 MB, free: 10.71 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004363/0.5761, allocations: 2.535 MB / 404.9 MB, free: 10.71 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004396/0.5805, allocations: 2.594 MB / 407.5 MB, free: 10.68 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02804/0.6086, allocations: 22.03 MB / 429.6 MB, free: 9.797 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.6087, allocations: 0 / 429.6 MB, free: 9.797 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.356e-06/0.6087, allocations: 0 / 429.6 MB, free: 9.797 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0006693/0.6094, allocations: 0 / 429.6 MB, free: 9.797 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: 3509 * Number of variables: 3509 Notification: Performance of Generate backend data structure: time 0.05233/0.6617, allocations: 12.93 MB / 442.5 MB, free: 14.26 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.277e-05/0.6618, allocations: 8.031 kB / 442.5 MB, free: 14.25 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07645/0.7382, allocations: 9.032 MB / 451.5 MB, free: 5.84 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02252/0.7608, allocations: 7.375 MB / 458.9 MB, free: 1.434 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001294/0.7621, allocations: 0.9457 MB / 459.9 MB, free: 0.5742 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005539/0.7677, allocations: 1.237 MB / 461.1 MB, free: 15.35 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06556/0.8333, allocations: 19.94 MB / 481 MB, free: 11.39 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005217/0.8339, allocations: 19.8 kB / 481 MB, free: 11.37 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004335/0.8382, allocations: 0.5079 MB / 481.6 MB, free: 10.88 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001194/0.8394, allocations: 0.7354 MB / 482.3 MB, free: 10.14 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05875/0.8982, allocations: 18.86 MB / 0.4894 GB, free: 7.277 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6704/1.569, allocations: 63.49 MB / 0.5514 GB, free: 100.3 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04728/1.616, allocations: 56.86 MB / 0.6069 GB, free: 47.99 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02867/1.645, allocations: 11.52 MB / 0.6182 GB, free: 44.28 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.645e-05/1.645, allocations: 68.78 kB / 0.6183 GB, free: 44.21 MB / 426.8 MB Notification: Performance of pre-optimization done (n=358): time 7.484e-06/1.645, allocations: 0 / 0.6183 GB, free: 44.21 MB / 426.8 MB Notification: Performance of matching and sorting (n=398): time 0.05741/1.702, allocations: 18.1 MB / 0.6359 GB, free: 34.26 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.982e-05/1.702, allocations: 93.95 kB / 0.636 GB, free: 34.19 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009878/1.712, allocations: 5.369 MB / 0.6413 GB, free: 31.34 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007278/1.713, allocations: 90.39 kB / 0.6413 GB, free: 31.27 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003931/1.717, allocations: 5.874 MB / 0.6471 GB, free: 26.14 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001669/1.719, allocations: 1.402 MB / 0.6485 GB, free: 24.94 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006706/1.719, allocations: 154.8 kB / 0.6486 GB, free: 24.82 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0004205/1.72, allocations: 0.6121 MB / 0.6492 GB, free: 24.29 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006858/1.727, allocations: 3.065 MB / 0.6522 GB, free: 22.66 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00893/1.736, allocations: 6.695 MB / 0.6587 GB, free: 15.6 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009899/1.746, allocations: 4.585 MB / 0.6632 GB, free: 11 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.315e-05/1.746, allocations: 35.56 kB / 0.6632 GB, free: 10.96 MB / 426.8 MB Notification: Performance of matching and sorting (n=987) (initialization): time 0.02614/1.772, allocations: 10.76 MB / 0.6738 GB, free: 140 kB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001054/1.772, allocations: 58.81 kB / 0.6738 GB, free: 84 kB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002253/1.772, allocations: 128 kB / 0.6739 GB, free: 15.95 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00433/1.777, allocations: 0.9763 MB / 0.6749 GB, free: 14.97 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0126/1.789, allocations: 1.829 MB / 0.6767 GB, free: 13.14 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01938/1.809, allocations: 9.747 MB / 0.6862 GB, free: 2.988 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008378/1.817, allocations: 439.4 kB / 0.6866 GB, free: 2.559 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001433/1.818, allocations: 420 kB / 0.687 GB, free: 2.148 MB / 442.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 568 * 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 (938): * Single equations (assignments): 933 * 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.01125/1.83, allocations: 4.455 MB / 0.6914 GB, free: 13.68 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001685/1.831, allocations: 0.5402 MB / 0.6919 GB, free: 13.13 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01854/1.85, allocations: 6.595 MB / 0.6983 GB, free: 6.484 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.525e-05/1.85, allocations: 25.34 kB / 0.6983 GB, free: 6.461 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.408e-05/1.85, allocations: 0 / 0.6983 GB, free: 6.461 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003811/1.854, allocations: 1.103 MB / 0.6994 GB, free: 5.332 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001352/1.855, allocations: 68 kB / 0.6995 GB, free: 5.266 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004153/1.859, allocations: 227.8 kB / 0.6997 GB, free: 5.043 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007829/1.86, allocations: 274.9 kB / 0.7 GB, free: 4.773 MB / 458.8 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.2997/2.16, allocations: 6.178 MB / 0.706 GB, free: 147.9 MB / 458.8 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.02045/2.18, allocations: 8.116 MB / 0.7139 GB, free: 147.1 MB / 458.8 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.005428/2.186, allocations: 2.433 MB / 0.7163 GB, free: 146.1 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.007378/2.193, allocations: 3.532 MB / 0.7198 GB, free: 144.9 MB / 458.8 MB Notification: Performance of Backend: time 1.002e-06/2.193, allocations: 2.188 kB / 0.7198 GB, free: 144.9 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.01538/2.209, allocations: 6.168 MB / 0.7258 GB, free: 142.3 MB / 458.8 MB Notification: Performance of SimCode: time 0.05082/2.26, allocations: 24.39 MB / 0.7496 GB, free: 129.1 MB / 458.8 MB Notification: Performance of Templates: time 0.2232/2.483, allocations: 86.95 MB / 0.8345 GB, free: 51.57 MB / 458.8 MB