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_Inverter.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_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_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter") Notification: Performance of loadModel(Modelica): time 1.766/1.766, allocations: 171.1 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005402/0.0005403, allocations: 12 kB / 233.9 MB, free: 2.387 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08886/0.08943, allocations: 38.77 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4308/0.5203, allocations: 98.75 MB / 371.4 MB, free: 7.043 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003376/0.5207, allocations: 93.69 kB / 371.5 MB, free: 6.992 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2173/0.7381, allocations: 49.26 MB / 420.7 MB, free: 11.15 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.778e-06/0.7381, allocations: 0 / 420.7 MB, free: 11.15 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003135/0.7385, allocations: 67.86 kB / 420.8 MB, free: 11.08 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: 580 * Number of variables: 580 Notification: Performance of Generate backend data structure: time 0.01038/0.7489, allocations: 2.566 MB / 423.4 MB, free: 8.453 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/0.7489, allocations: 8.031 kB / 423.4 MB, free: 8.445 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001847/0.7508, allocations: 324.5 kB / 423.7 MB, free: 8.125 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00515/0.756, allocations: 1.593 MB / 425.3 MB, free: 6.473 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002014/0.7562, allocations: 160.4 kB / 425.4 MB, free: 6.312 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006175/0.7568, allocations: 227.9 kB / 425.7 MB, free: 6.09 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008148/0.765, allocations: 2.891 MB / 428.6 MB, free: 3.051 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.56e-05/0.7651, allocations: 3.906 kB / 428.6 MB, free: 3.047 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003581/0.7655, allocations: 99.95 kB / 428.7 MB, free: 2.949 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001735/0.7657, allocations: 100.3 kB / 428.8 MB, free: 2.848 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007319/0.773, allocations: 2.309 MB / 431.1 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.271/1.044, allocations: 9.052 MB / 440.1 MB, free: 78.19 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005981/1.05, allocations: 1.736 MB / 441.9 MB, free: 77.59 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005922/1.051, allocations: 142 kB / 442 MB, free: 77.5 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.65e-05/1.051, allocations: 43.12 kB / 442 MB, free: 77.46 MB / 346.7 MB Notification: Performance of pre-optimization done (n=106): time 7.023e-06/1.051, allocations: 1.094 kB / 442 MB, free: 77.46 MB / 346.7 MB Notification: Performance of matching and sorting (n=129): time 0.04376/1.095, allocations: 7.536 MB / 449.6 MB, free: 76.32 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001037/1.095, allocations: 64.47 kB / 449.6 MB, free: 76.26 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004153/1.099, allocations: 1.449 MB / 451.1 MB, free: 76.09 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003384/1.099, allocations: 48.05 kB / 451.1 MB, free: 76.06 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008751/1.1, allocations: 1.091 MB / 452.2 MB, free: 75.69 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009175/1.101, allocations: 450.6 kB / 452.7 MB, free: 75.46 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002628/1.101, allocations: 26.47 kB / 452.7 MB, free: 75.46 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001949/1.102, allocations: 367.7 kB / 453 MB, free: 75.16 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003533/1.105, allocations: 0.7652 MB / 453.8 MB, free: 75.16 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004/1.109, allocations: 1.18 MB / 455 MB, free: 74.69 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00376/1.113, allocations: 0.9514 MB / 455.9 MB, free: 74.68 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.399e-05/1.113, allocations: 5.25 kB / 455.9 MB, free: 74.68 MB / 346.7 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.007714/1.121, allocations: 2.692 MB / 458.6 MB, free: 74.33 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.597e-05/1.121, allocations: 12.92 kB / 458.7 MB, free: 74.33 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.112e-05/1.121, allocations: 14.56 kB / 458.7 MB, free: 74.33 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002444/1.124, allocations: 0.5833 MB / 459.2 MB, free: 74.18 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002536/1.126, allocations: 357 kB / 459.6 MB, free: 74.17 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0121/1.138, allocations: 6.905 MB / 466.5 MB, free: 69.81 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002269/1.141, allocations: 115.5 kB / 466.6 MB, free: 69.78 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002527/1.141, allocations: 66.72 kB / 466.7 MB, free: 69.77 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * 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 (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.00196/1.143, allocations: 0.7139 MB / 467.4 MB, free: 69.38 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005516/1.143, allocations: 177.3 kB / 467.6 MB, free: 69.29 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00661/1.15, allocations: 2.415 MB / 470 MB, free: 68.38 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.674e-05/1.15, allocations: 15.47 kB / 470 MB, free: 68.38 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.34e-05/1.15, allocations: 7.469 kB / 470 MB, free: 68.38 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.014e-05/1.15, allocations: 7.5 kB / 470 MB, free: 68.38 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01315/1.163, allocations: 4.918 MB / 474.9 MB, free: 66.42 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.227e-05/1.163, allocations: 3.344 kB / 474.9 MB, free: 66.42 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001746/1.165, allocations: 220.1 kB / 475.1 MB, free: 66.4 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002807/1.168, allocations: 0.6512 MB / 475.8 MB, free: 66.23 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001988/1.168, allocations: 36.27 kB / 475.8 MB, free: 66.21 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0139/1.182, allocations: 8.649 MB / 484.5 MB, free: 60.35 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/1.182, allocations: 7.688 kB / 484.5 MB, free: 60.35 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00853/1.191, allocations: 3.475 MB / 488 MB, free: 58.88 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001271/1.192, allocations: 410.4 kB / 488.4 MB, free: 58.61 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000444/1.192, allocations: 27.03 kB / 488.4 MB, free: 58.59 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001636/1.194, allocations: 100.4 kB / 488.5 MB, free: 58.57 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003662/1.194, allocations: 104.2 kB / 488.6 MB, free: 58.54 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001286/1.195, allocations: 38.36 kB / 488.6 MB, free: 58.54 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001945/1.197, allocations: 0.986 MB / 489.6 MB, free: 58.15 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.6e-07/1.197, allocations: 0 / 489.6 MB, free: 58.15 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002665/1.199, allocations: 0.5375 MB / 490.2 MB, free: 58.09 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 97 * 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.0007518/1.2, allocations: 367.8 kB / 490.5 MB, free: 57.94 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.006178/1.206, allocations: 2.413 MB / 492.9 MB, free: 56.88 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.275e-06/1.206, allocations: 5.469 kB / 492.9 MB, free: 56.88 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004383/1.211, allocations: 1.55 MB / 494.5 MB, free: 56.11 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003453/1.214, allocations: 426.7 kB / 494.9 MB, free: 55.99 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01151/1.226, allocations: 5.595 MB / 0.4888 GB, free: 51.14 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001934/1.228, allocations: 1.918 MB / 0.4906 GB, free: 49.6 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.002031/1.23, allocations: 368.1 kB / 0.491 GB, free: 49.34 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005402/1.23, allocations: 115.1 kB / 0.4911 GB, free: 49.23 MB / 346.7 MB Notification: Performance of SimCode: time 1.152e-06/1.23, allocations: 0 / 0.4911 GB, free: 49.23 MB / 346.7 MB Notification: Performance of Templates: time 0.07815/1.309, allocations: 28.46 MB / 0.5189 GB, free: 25.61 MB / 346.7 MB