Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.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.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource") Notification: Performance of loadModel(Modelica): time 1.909/1.909, allocations: 171.1 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000516/0.0005161, allocations: 8 kB / 233.8 MB, free: 2.387 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0904/0.09095, allocations: 38.78 MB / 272.6 MB, free: 11.53 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4293/0.5203, allocations: 99.74 MB / 372.4 MB, free: 6.047 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000345/0.5208, allocations: 89.39 kB / 372.5 MB, free: 6 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2243/0.7451, allocations: 51.16 MB / 423.6 MB, free: 8.23 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.545e-06/0.7452, allocations: 0 / 423.6 MB, free: 8.23 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003207/0.7455, allocations: 75.86 kB / 423.7 MB, free: 8.156 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.01075/0.7563, allocations: 2.802 MB / 426.5 MB, free: 5.293 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.897e-05/0.7563, allocations: 11.98 kB / 426.5 MB, free: 5.281 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001979/0.7583, allocations: 344.2 kB / 426.8 MB, free: 4.941 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005999/0.7644, allocations: 1.743 MB / 428.6 MB, free: 3.141 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003103/0.7647, allocations: 189 kB / 428.8 MB, free: 2.953 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001186/0.7659, allocations: 247.9 kB / 429 MB, free: 2.711 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2504/1.016, allocations: 3.233 MB / 432.2 MB, free: 77.15 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001401/1.017, allocations: 7.203 kB / 432.3 MB, free: 77.15 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004931/1.017, allocations: 106.5 kB / 432.4 MB, free: 77.15 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002103/1.017, allocations: 117.2 kB / 432.5 MB, free: 77.14 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0091/1.026, allocations: 2.573 MB / 435 MB, free: 77.11 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02667/1.053, allocations: 10.36 MB / 445.4 MB, free: 74.5 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003155/1.056, allocations: 1.408 MB / 446.8 MB, free: 74.19 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004225/1.057, allocations: 141.4 kB / 447 MB, free: 74.09 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.238e-05/1.057, allocations: 50.5 kB / 447 MB, free: 74.05 MB / 346.7 MB Notification: Performance of pre-optimization done (n=101): time 3.957e-06/1.057, allocations: 0 / 447 MB, free: 74.05 MB / 346.7 MB Notification: Performance of matching and sorting (n=129): time 0.02451/1.081, allocations: 6.981 MB / 454 MB, free: 73.06 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.289e-05/1.081, allocations: 69.12 kB / 454.1 MB, free: 72.99 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003073/1.084, allocations: 1.621 MB / 455.7 MB, free: 72.82 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003024/1.085, allocations: 45.39 kB / 455.7 MB, free: 72.79 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009696/1.086, allocations: 1.242 MB / 457 MB, free: 72.29 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005397/1.086, allocations: 451.3 kB / 457.4 MB, free: 72.01 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000147/1.087, allocations: 32.72 kB / 457.4 MB, free: 72.01 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.00013/1.087, allocations: 381.1 kB / 457.8 MB, free: 71.7 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001806/1.088, allocations: 0.7867 MB / 458.6 MB, free: 71.7 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002093/1.091, allocations: 1.314 MB / 459.9 MB, free: 70.8 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00218/1.093, allocations: 1.009 MB / 460.9 MB, free: 70.39 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.479e-05/1.093, allocations: 3.875 kB / 460.9 MB, free: 70.39 MB / 346.7 MB Notification: Performance of matching and sorting (n=209) (initialization): time 0.006116/1.099, allocations: 2.517 MB / 463.4 MB, free: 69.49 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.672e-05/1.099, allocations: 14.09 kB / 463.4 MB, free: 69.49 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.21e-05/1.099, allocations: 16 kB / 463.5 MB, free: 69.49 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009429/1.1, allocations: 241.7 kB / 463.7 MB, free: 69.41 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002921/1.103, allocations: 439.5 kB / 464.1 MB, free: 69.4 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003054/1.106, allocations: 3.04 MB / 467.2 MB, free: 66.66 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002378/1.109, allocations: 131.1 kB / 467.3 MB, free: 66.63 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003369/1.109, allocations: 73.27 kB / 467.4 MB, free: 66.61 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (204): * Single equations (assignments): 200 * 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: 2 * 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 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002211/1.111, allocations: 0.8219 MB / 468.2 MB, free: 66.18 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005527/1.112, allocations: 194.1 kB / 468.4 MB, free: 66.09 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00517/1.117, allocations: 2.116 MB / 470.5 MB, free: 65.22 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-05/1.117, allocations: 11.59 kB / 470.5 MB, free: 65.22 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/1.117, allocations: 3.625 kB / 470.5 MB, free: 65.22 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.058e-05/1.117, allocations: 7.734 kB / 470.5 MB, free: 65.22 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01206/1.129, allocations: 4.786 MB / 475.3 MB, free: 63.25 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.083e-05/1.129, allocations: 3.844 kB / 475.3 MB, free: 63.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002171/1.131, allocations: 282.5 kB / 475.6 MB, free: 63.25 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008629/1.132, allocations: 205.9 kB / 475.8 MB, free: 63.18 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001417/1.132, allocations: 28.84 kB / 475.8 MB, free: 63.16 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002865/1.135, allocations: 3.007 MB / 478.8 MB, free: 60.42 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.522e-06/1.135, allocations: 7.391 kB / 478.8 MB, free: 60.41 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006993/1.142, allocations: 3.25 MB / 482.1 MB, free: 58.98 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001313/1.144, allocations: 428.6 kB / 482.5 MB, free: 58.7 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004018/1.144, allocations: 23.81 kB / 482.5 MB, free: 58.68 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001483/1.146, allocations: 95.06 kB / 482.6 MB, free: 58.67 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002584/1.146, allocations: 85.12 kB / 482.7 MB, free: 58.65 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001234/1.146, allocations: 43.33 kB / 482.7 MB, free: 58.64 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002144/1.148, allocations: 1.088 MB / 483.8 MB, free: 58.23 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.71e-07/1.148, allocations: 0 / 483.8 MB, free: 58.23 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002457/1.151, allocations: 0.5154 MB / 484.3 MB, free: 58.17 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (127): * Single equations (assignments): 123 * 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: 2 * 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 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007845/1.151, allocations: 403 kB / 484.7 MB, free: 58.02 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00522/1.157, allocations: 2.403 MB / 487.1 MB, free: 56.92 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.115e-06/1.157, allocations: 3.188 kB / 487.1 MB, free: 56.92 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002752/1.159, allocations: 1.372 MB / 488.5 MB, free: 56.16 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003427/1.163, allocations: 434.5 kB / 488.9 MB, free: 56.03 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01134/1.174, allocations: 5.75 MB / 494.7 MB, free: 52.82 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002085/1.176, allocations: 2.053 MB / 496.7 MB, free: 51.85 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.002494/1.179, allocations: 0.5006 MB / 497.2 MB, free: 51.8 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006462/1.18, allocations: 127.4 kB / 497.4 MB, free: 51.8 MB / 346.7 MB Notification: Performance of SimCode: time 1.082e-06/1.18, allocations: 0 / 497.4 MB, free: 51.8 MB / 346.7 MB Notification: Performance of Templates: time 0.06638/1.246, allocations: 25.53 MB / 0.5106 GB, free: 33.7 MB / 346.7 MB