Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_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_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource") Notification: Performance of loadModel(Modelica): time 1.773/1.773, allocations: 171.1 MB / 187.3 MB, free: 1.145 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004986/0.0004986, allocations: 12 kB / 233.8 MB, free: 3.078 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08442/0.08495, allocations: 38.76 MB / 272.5 MB, free: 12.24 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3846/0.4697, allocations: 99.74 MB / 372.3 MB, free: 6.645 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000329/0.47, allocations: 93.14 kB / 372.4 MB, free: 6.594 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2197/0.6898, allocations: 51.17 MB / 423.5 MB, free: 8.855 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.917e-06/0.6898, allocations: 0 / 423.5 MB, free: 8.855 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003569/0.6902, allocations: 71.88 kB / 423.6 MB, free: 8.785 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.01097/0.7012, allocations: 2.809 MB / 426.4 MB, free: 5.914 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.06e-05/0.7013, allocations: 11.98 kB / 426.4 MB, free: 5.902 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002024/0.7033, allocations: 340.2 kB / 426.8 MB, free: 5.566 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006294/0.7096, allocations: 1.743 MB / 428.5 MB, free: 3.766 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002935/0.71, allocations: 193 kB / 428.7 MB, free: 3.574 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001029/0.711, allocations: 243.9 kB / 428.9 MB, free: 3.336 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2393/0.9504, allocations: 3.263 MB / 432.2 MB, free: 77.77 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002224/0.9506, allocations: 2.344 kB / 432.2 MB, free: 77.77 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009804/0.9516, allocations: 104.5 kB / 432.3 MB, free: 77.77 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002729/0.9519, allocations: 116.5 kB / 432.4 MB, free: 77.76 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01018/0.9621, allocations: 2.572 MB / 435 MB, free: 77.73 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03057/0.9928, allocations: 10.36 MB / 445.4 MB, free: 75.11 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003506/0.9963, allocations: 1.407 MB / 446.8 MB, free: 74.8 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005252/0.9969, allocations: 141.3 kB / 446.9 MB, free: 74.7 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.166e-05/0.997, allocations: 42.53 kB / 446.9 MB, free: 74.66 MB / 346.7 MB Notification: Performance of pre-optimization done (n=101): time 4.218e-06/0.997, allocations: 3.062 kB / 446.9 MB, free: 74.66 MB / 346.7 MB Notification: Performance of matching and sorting (n=129): time 0.02751/1.025, allocations: 6.983 MB / 453.9 MB, free: 73.68 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.755e-05/1.025, allocations: 66.62 kB / 454 MB, free: 73.61 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003745/1.028, allocations: 1.616 MB / 455.6 MB, free: 73.44 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003764/1.029, allocations: 48.77 kB / 455.7 MB, free: 73.41 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001094/1.03, allocations: 1.186 MB / 456.8 MB, free: 72.85 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006991/1.031, allocations: 454.1 kB / 457.3 MB, free: 72.57 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001905/1.031, allocations: 34.81 kB / 457.3 MB, free: 72.57 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001597/1.031, allocations: 380.2 kB / 457.7 MB, free: 72.25 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001973/1.033, allocations: 0.796 MB / 458.5 MB, free: 72.25 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002279/1.035, allocations: 1.314 MB / 459.8 MB, free: 71.6 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002486/1.038, allocations: 1.01 MB / 460.8 MB, free: 71.2 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-05/1.038, allocations: 3.781 kB / 460.8 MB, free: 71.2 MB / 346.7 MB Notification: Performance of matching and sorting (n=209) (initialization): time 0.006491/1.044, allocations: 2.409 MB / 463.2 MB, free: 70.36 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.011e-05/1.045, allocations: 12.44 kB / 463.2 MB, free: 70.36 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.822e-05/1.045, allocations: 15.5 kB / 463.2 MB, free: 70.36 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009376/1.046, allocations: 249.5 kB / 463.5 MB, free: 70.28 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003028/1.049, allocations: 434.8 kB / 463.9 MB, free: 70.27 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003288/1.052, allocations: 3.033 MB / 467 MB, free: 67.53 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002414/1.054, allocations: 132.5 kB / 467.1 MB, free: 67.5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002918/1.055, allocations: 74.3 kB / 467.2 MB, free: 67.48 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.002396/1.057, allocations: 0.8205 MB / 468 MB, free: 67.05 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006031/1.058, allocations: 184.4 kB / 468.2 MB, free: 66.96 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005483/1.063, allocations: 2.12 MB / 470.3 MB, free: 66.09 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.632e-05/1.063, allocations: 13.97 kB / 470.3 MB, free: 66.09 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/1.063, allocations: 0 / 470.3 MB, free: 66.09 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.047e-05/1.063, allocations: 7.641 kB / 470.3 MB, free: 66.09 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0127/1.076, allocations: 4.789 MB / 475.1 MB, free: 64.12 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.529e-05/1.076, allocations: 3.438 kB / 475.1 MB, free: 64.12 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002286/1.078, allocations: 283.8 kB / 475.4 MB, free: 64.12 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008734/1.079, allocations: 202.8 kB / 475.6 MB, free: 64.05 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000211/1.08, allocations: 34.23 kB / 475.6 MB, free: 64.03 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002962/1.083, allocations: 3.008 MB / 478.6 MB, free: 61.3 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.63e-06/1.083, allocations: 3.953 kB / 478.6 MB, free: 61.29 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007425/1.09, allocations: 3.255 MB / 481.9 MB, free: 59.86 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00151/1.092, allocations: 420.8 kB / 482.3 MB, free: 59.59 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006124/1.092, allocations: 26.95 kB / 482.3 MB, free: 59.57 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001833/1.094, allocations: 97.42 kB / 482.4 MB, free: 59.55 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002944/1.094, allocations: 86.33 kB / 482.5 MB, free: 59.53 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001318/1.095, allocations: 40.06 kB / 482.5 MB, free: 59.52 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.00244/1.097, allocations: 1.089 MB / 483.6 MB, free: 59.11 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.91e-07/1.097, allocations: 0 / 483.6 MB, free: 59.11 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002778/1.1, allocations: 0.5154 MB / 484.1 MB, free: 59.06 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.0008806/1.101, allocations: 392.3 kB / 484.5 MB, free: 58.92 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.005538/1.106, allocations: 2.405 MB / 486.9 MB, free: 57.82 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.566e-06/1.106, allocations: 4.25 kB / 486.9 MB, free: 57.82 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003112/1.11, allocations: 1.364 MB / 488.3 MB, free: 57.06 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003539/1.113, allocations: 442.4 kB / 488.7 MB, free: 56.93 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01286/1.126, allocations: 5.812 MB / 494.5 MB, free: 53.68 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002396/1.129, allocations: 2.018 MB / 496.5 MB, free: 52.73 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001003/1.13, allocations: 138.7 kB / 496.7 MB, free: 52.72 MB / 346.7 MB Notification: Performance of SimCode: time 1.342e-06/1.13, allocations: 3.938 kB / 496.7 MB, free: 52.72 MB / 346.7 MB Notification: Performance of Templates: time 0.3621/1.492, allocations: 77.8 MB / 0.561 GB, free: 88.25 MB / 362.7 MB