Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.idq_dr.1.|smpm.idq_rr.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter") Notification: Performance of loadModel(Modelica): time 1.804/1.804, allocations: 171.2 MB / 184.2 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.733e-05/2.749e-05, allocations: 4 kB / 228.8 MB, free: 15.39 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2104/0.2104, allocations: 38.76 MB / 267.6 MB, free: 9.438 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3677/0.5781, allocations: 98.67 MB / 366.3 MB, free: 40.01 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002544/0.5784, allocations: 90.72 kB / 366.4 MB, free: 40.01 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1847/0.7632, allocations: 49.33 MB / 415.7 MB, free: 21.42 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.262e-06/0.7632, allocations: 0 / 415.7 MB, free: 21.42 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002048/0.7634, allocations: 67.81 kB / 415.7 MB, free: 21.36 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 580 * Number of variables: 580 Notification: Performance of Generate backend data structure: time 0.00625/0.7697, allocations: 2.322 MB / 418.1 MB, free: 19.13 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.437e-05/0.7698, allocations: 15.97 kB / 418.1 MB, free: 19.11 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001544/0.7713, allocations: 324.1 kB / 418.4 MB, free: 18.8 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004057/0.7754, allocations: 1.582 MB / 420 MB, free: 17.55 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001559/0.7756, allocations: 161.7 kB / 420.1 MB, free: 17.45 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005431/0.7762, allocations: 231.3 kB / 420.4 MB, free: 17.3 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006803/0.783, allocations: 2.816 MB / 423.2 MB, free: 15.31 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000105/0.7831, allocations: 3.906 kB / 423.2 MB, free: 15.31 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003858/0.7835, allocations: 104.8 kB / 423.3 MB, free: 15.28 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000122/0.7837, allocations: 108 kB / 423.4 MB, free: 15.17 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005536/0.7892, allocations: 2.195 MB / 425.6 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01802/0.8073, allocations: 9.062 MB / 434.7 MB, free: 3.73 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002601/0.8099, allocations: 1.672 MB / 436.3 MB, free: 1.941 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001994/0.812, allocations: 0.8036 MB / 437.1 MB, free: 1.137 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004235/0.8124, allocations: 138 kB / 437.3 MB, free: 0.9844 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.074e-05/0.8125, allocations: 43.56 kB / 437.3 MB, free: 0.9297 MB / 298.7 MB Notification: Performance of pre-optimization done (n=106): time 7.232e-06/0.8125, allocations: 0 / 437.3 MB, free: 0.9297 MB / 298.7 MB Notification: Performance of matching and sorting (n=129): time 0.03356/0.8461, allocations: 6.332 MB / 443.6 MB, free: 10.54 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.351e-05/0.8462, allocations: 68.72 kB / 443.7 MB, free: 10.46 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00476/0.851, allocations: 1.266 MB / 445 MB, free: 9.188 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003931/0.8515, allocations: 45.7 kB / 445 MB, free: 9.137 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001619/0.8531, allocations: 1.042 MB / 446.1 MB, free: 8.082 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009338/0.8541, allocations: 453.5 kB / 446.5 MB, free: 7.633 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002301/0.8543, allocations: 28 kB / 446.5 MB, free: 7.605 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003681/0.8547, allocations: 374.7 kB / 446.9 MB, free: 7.23 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003105/0.8578, allocations: 0.7146 MB / 447.6 MB, free: 6.516 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003888/0.8618, allocations: 1.134 MB / 448.7 MB, free: 5.207 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003971/0.8658, allocations: 0.9066 MB / 449.6 MB, free: 4.297 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-05/0.8659, allocations: 4 kB / 449.7 MB, free: 4.293 MB / 314.7 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.01346/0.8794, allocations: 2.486 MB / 452.1 MB, free: 1.789 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.564e-05/0.8795, allocations: 8 kB / 452.1 MB, free: 1.781 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-05/0.8796, allocations: 12 kB / 452.2 MB, free: 1.77 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00446/0.8841, allocations: 0.5842 MB / 452.7 MB, free: 1.176 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002109/0.8863, allocations: 351.4 kB / 453.1 MB, free: 0.832 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01264/0.8989, allocations: 6.702 MB / 459.8 MB, free: 9.863 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001819/0.9008, allocations: 115.9 kB / 459.9 MB, free: 9.75 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002311/0.9011, allocations: 64 kB / 460 MB, free: 9.688 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (167): * Single equations (assignments): 164 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,72.2%) 23,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004109/0.9015, allocations: 200.9 kB / 460.2 MB, free: 9.484 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004525/0.9019, allocations: 173.8 kB / 460.3 MB, free: 9.312 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005926/0.9079, allocations: 2.313 MB / 462.6 MB, free: 6.98 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-05/0.908, allocations: 15.94 kB / 462.7 MB, free: 6.965 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.32e-05/0.908, allocations: 8 kB / 462.7 MB, free: 6.957 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.545e-05/0.908, allocations: 7.969 kB / 462.7 MB, free: 6.949 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01301/0.9211, allocations: 4.837 MB / 467.5 MB, free: 1.992 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.711e-05/0.9211, allocations: 4 kB / 467.5 MB, free: 1.988 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001427/0.9226, allocations: 211.7 kB / 467.7 MB, free: 1.781 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002686/0.9253, allocations: 0.6514 MB / 468.4 MB, free: 1.121 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000274/0.9256, allocations: 39.92 kB / 468.4 MB, free: 1.082 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01499/0.9406, allocations: 8.368 MB / 476.8 MB, free: 8.309 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-05/0.9407, allocations: 12.17 kB / 476.8 MB, free: 8.297 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00809/0.9488, allocations: 3.503 MB / 480.3 MB, free: 4.66 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001396/0.9502, allocations: 402.8 kB / 480.7 MB, free: 4.246 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005255/0.9508, allocations: 43.92 kB / 480.7 MB, free: 4.203 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001503/0.9523, allocations: 91.89 kB / 480.8 MB, free: 4.113 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003881/0.9527, allocations: 108.8 kB / 480.9 MB, free: 4.008 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001482/0.9529, allocations: 39.98 kB / 481 MB, free: 3.969 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002275/0.9552, allocations: 0.9633 MB / 481.9 MB, free: 3.008 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.149e-06/0.9552, allocations: 0 / 481.9 MB, free: 3.008 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002876/0.9581, allocations: 0.543 MB / 482.5 MB, free: 2.465 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (101): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,72.2%) 23,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008106/0.9589, allocations: 369 kB / 482.8 MB, free: 2.102 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.005668/0.9646, allocations: 2.309 MB / 485.1 MB, free: 15.73 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.234e-06/0.9647, allocations: 0 / 485.1 MB, free: 15.73 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003805/0.9685, allocations: 1.49 MB / 486.6 MB, free: 14.2 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002838/0.9714, allocations: 430.7 kB / 487.1 MB, free: 13.78 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009928/0.9814, allocations: 3.876 MB / 490.9 MB, free: 9.828 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002633/0.984, allocations: 1.89 MB / 492.8 MB, free: 7.906 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006795/0.9848, allocations: 123.4 kB / 492.9 MB, free: 7.785 MB / 362.7 MB Notification: Performance of SimCode: time 2.057e-06/0.9848, allocations: 0 / 492.9 MB, free: 7.785 MB / 362.7 MB Notification: Performance of Templates: time 0.2802/1.265, allocations: 59.77 MB / 0.5398 GB, free: 79.18 MB / 362.7 MB