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.962/1.962, allocations: 194.8 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004831/0.0004833, allocations: 15.92 kB / 264.6 MB, free: 12.9 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.095/0.09551, allocations: 44.5 MB / 309.1 MB, free: 336 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5127/0.6083, allocations: 150.2 MB / 459.3 MB, free: 5.227 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003798/0.6087, allocations: 108.7 kB / 459.4 MB, free: 5.168 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.801/2.41, allocations: 386.1 MB / 0.8257 GB, free: 23.41 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.496e-06/2.41, allocations: 4 kB / 0.8257 GB, free: 23.4 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.00108/2.411, allocations: 283.7 kB / 0.8259 GB, free: 23.12 MB / 426.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.05433/2.466, allocations: 11.68 MB / 0.8374 GB, free: 11.33 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.731e-05/2.466, allocations: 16.03 kB / 0.8374 GB, free: 11.31 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05525/2.521, allocations: 6.372 MB / 0.8436 GB, free: 4.918 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.7177/3.239, allocations: 9.479 MB / 0.8528 GB, free: 26.91 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001774/3.24, allocations: 0.9228 MB / 0.8537 GB, free: 26.88 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006415/3.247, allocations: 1.199 MB / 0.8549 GB, free: 26.88 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06967/3.317, allocations: 20.53 MB / 0.875 GB, free: 25.43 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007914/3.318, allocations: 26.28 kB / 0.875 GB, free: 25.43 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005268/3.323, allocations: 0.5174 MB / 0.8755 GB, free: 25.43 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001339/3.324, allocations: 0.8375 MB / 0.8763 GB, free: 25.41 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05588/3.38, allocations: 18.67 MB / 0.8945 GB, free: 25.3 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1659/3.546, allocations: 63.97 MB / 0.957 GB, free: 14.65 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.06175/3.608, allocations: 45.82 MB / 1.002 GB, free: 6.777 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4454/4.053, allocations: 24.5 MB / 1.026 GB, free: 71.93 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.431e-05/4.053, allocations: 99.27 kB / 1.026 GB, free: 71.88 MB / 474.8 MB Notification: Performance of pre-optimization done (n=770): time 1.487e-05/4.053, allocations: 3.562 kB / 1.026 GB, free: 71.88 MB / 474.8 MB Notification: Performance of matching and sorting (n=810): time 0.1781/4.232, allocations: 46.2 MB / 1.071 GB, free: 64.41 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.659e-05/4.232, allocations: 121.7 kB / 1.071 GB, free: 64.34 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009263/4.241, allocations: 4.055 MB / 1.075 GB, free: 64 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001706/4.243, allocations: 140.1 kB / 1.075 GB, free: 63.97 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003853/4.247, allocations: 4.898 MB / 1.08 GB, free: 61.44 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.004267/4.251, allocations: 2.683 MB / 1.083 GB, free: 59.7 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00149/4.252, allocations: 162.2 kB / 1.083 GB, free: 59.7 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0009436/4.253, allocations: 0.6725 MB / 1.083 GB, free: 59.38 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.014/4.267, allocations: 5.113 MB / 1.088 GB, free: 59.36 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01781/4.285, allocations: 7.515 MB / 1.096 GB, free: 56.58 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02553/4.311, allocations: 6.44 MB / 1.102 GB, free: 55.62 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001317/4.311, allocations: 21 kB / 1.102 GB, free: 55.62 MB / 474.8 MB Notification: Performance of matching and sorting (n=1151) (initialization): time 0.06875/4.38, allocations: 15.68 MB / 1.117 GB, free: 49.28 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001329/4.38, allocations: 34.56 kB / 1.117 GB, free: 49.28 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000215/4.38, allocations: 74.16 kB / 1.117 GB, free: 49.28 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01837/4.399, allocations: 4.134 MB / 1.121 GB, free: 47.99 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01243/4.411, allocations: 1.642 MB / 1.123 GB, free: 47.93 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01953/4.431, allocations: 12.21 MB / 1.135 GB, free: 39.99 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009615/4.44, allocations: 441 kB / 1.135 GB, free: 39.84 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00224/4.443, allocations: 390 kB / 1.136 GB, free: 39.77 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 329 * 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 (853): * Single equations (assignments): 797 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.01215/4.455, allocations: 4.397 MB / 1.14 GB, free: 37.72 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002024/4.457, allocations: 0.5778 MB / 1.141 GB, free: 37.41 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03856/4.495, allocations: 14.49 MB / 1.155 GB, free: 25.99 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002408/4.496, allocations: 192.5 kB / 1.155 GB, free: 25.82 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.881e-05/4.496, allocations: 4.844 kB / 1.155 GB, free: 25.82 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001382/4.496, allocations: 35.25 kB / 1.155 GB, free: 25.82 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08571/4.582, allocations: 28.7 MB / 1.183 GB, free: 1.824 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001211/4.582, allocations: 4 kB / 1.183 GB, free: 1.82 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01718/4.599, allocations: 1.35 MB / 1.184 GB, free: 1.641 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.393/4.992, allocations: 4.017 MB / 1.188 GB, free: 68.12 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001995/4.994, allocations: 173.8 kB / 1.188 GB, free: 68.12 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02099/5.015, allocations: 12.07 MB / 1.2 GB, free: 63.54 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.107e-06/5.015, allocations: 12.69 kB / 1.2 GB, free: 63.54 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05671/5.072, allocations: 21.47 MB / 1.221 GB, free: 62.86 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006744/5.079, allocations: 1.748 MB / 1.223 GB, free: 62.76 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003419/5.082, allocations: 120.6 kB / 1.223 GB, free: 62.76 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00763/5.09, allocations: 326.6 kB / 1.223 GB, free: 62.76 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002724/5.093, allocations: 0.567 MB / 1.224 GB, free: 62.75 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001533/5.094, allocations: 224.3 kB / 1.224 GB, free: 62.75 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.006977/5.101, allocations: 2.683 MB / 1.227 GB, free: 62.57 MB / 474.8 MB Notification: Performance of sort global known variables: time 1.062e-06/5.101, allocations: 2.062 kB / 1.227 GB, free: 62.57 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01326/5.115, allocations: 2.155 MB / 1.229 GB, free: 62.57 MB / 474.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (546): * Single equations (assignments): 490 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.002754/5.117, allocations: 0.6086 MB / 1.229 GB, free: 62.46 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.03465/5.152, allocations: 13.07 MB / 1.242 GB, free: 61.76 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.084e-05/5.152, allocations: 5.438 kB / 1.242 GB, free: 61.76 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01952/5.172, allocations: 6.777 MB / 1.249 GB, free: 61.18 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01064/5.182, allocations: 1.163 MB / 1.25 GB, free: 61.16 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07304/5.255, allocations: 30.03 MB / 1.279 GB, free: 47.65 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0169/5.272, allocations: 7.967 MB / 1.287 GB, free: 44.96 MB / 474.8 MB Notification: Performance of simCode: alias equations: time 0.01196/5.284, allocations: 1.968 MB / 1.289 GB, free: 44.75 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003358/5.288, allocations: 433.4 kB / 1.289 GB, free: 44.72 MB / 474.8 MB Notification: Performance of SimCode: time 1.784e-06/5.288, allocations: 0 / 1.289 GB, free: 44.72 MB / 474.8 MB Notification: Performance of Templates: time 0.8125/6.1, allocations: 128.8 MB / 1.415 GB, free: 50.41 MB / 474.8 MB