Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter") Notification: Performance of loadModel(Modelica): time 1.772/1.772, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003517/0.0003518, allocations: 8 kB / 263.9 MB, free: 13.57 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07516/0.07553, allocations: 44.51 MB / 308.5 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3495/0.425, allocations: 101 MB / 409.4 MB, free: 15.2 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002638/0.4253, allocations: 93.14 kB / 409.5 MB, free: 15.18 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1725/0.5979, allocations: 45.85 MB / 455.4 MB, free: 1.348 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.909e-06/0.5979, allocations: 0 / 455.4 MB, free: 1.348 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001873/0.5981, allocations: 63.88 kB / 455.4 MB, free: 1.285 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 550 * Number of variables: 550 Notification: Performance of Generate backend data structure: time 0.006388/0.6045, allocations: 2.468 MB / 457.9 MB, free: 14.92 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.6046, allocations: 8.031 kB / 457.9 MB, free: 14.91 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009759/0.6056, allocations: 292.8 kB / 458.2 MB, free: 14.62 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003754/0.6093, allocations: 1.581 MB / 459.8 MB, free: 13.37 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001535/0.6095, allocations: 159.3 kB / 459.9 MB, free: 13.27 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004257/0.6099, allocations: 215 kB / 460.1 MB, free: 13.13 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005979/0.6159, allocations: 2.757 MB / 462.9 MB, free: 11 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.522e-05/0.616, allocations: 11.83 kB / 462.9 MB, free: 10.98 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003233/0.6164, allocations: 95.98 kB / 463 MB, free: 10.89 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000134/0.6165, allocations: 92.16 kB / 463.1 MB, free: 10.8 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005439/0.622, allocations: 2.222 MB / 465.3 MB, free: 8.559 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01705/0.639, allocations: 8.581 MB / 473.9 MB, free: 15.73 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003325/0.6424, allocations: 1.739 MB / 475.6 MB, free: 13.87 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003971/0.6428, allocations: 215.2 kB / 475.8 MB, free: 13.62 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.908e-05/0.6429, allocations: 43.56 kB / 475.9 MB, free: 13.57 MB / 362.7 MB Notification: Performance of pre-optimization done (n=103): time 4.566e-06/0.6429, allocations: 0 / 475.9 MB, free: 13.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=124): time 0.02125/0.6642, allocations: 7.141 MB / 483 MB, free: 6.297 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.447e-05/0.6642, allocations: 68.34 kB / 483.1 MB, free: 6.219 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002564/0.6668, allocations: 1.234 MB / 484.3 MB, free: 4.977 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001341/0.667, allocations: 49.7 kB / 484.4 MB, free: 4.922 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008796/0.6679, allocations: 0.9798 MB / 485.3 MB, free: 3.93 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004901/0.6684, allocations: 437.8 kB / 485.8 MB, free: 3.496 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001283/0.6685, allocations: 28 kB / 485.8 MB, free: 3.469 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002404/0.6688, allocations: 366.8 kB / 486.2 MB, free: 3.102 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001741/0.6705, allocations: 0.7457 MB / 486.9 MB, free: 2.355 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002093/0.6726, allocations: 1.111 MB / 488 MB, free: 1.094 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002041/0.6747, allocations: 0.9237 MB / 488.9 MB, free: 172 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.693e-06/0.6747, allocations: 7.953 kB / 488.9 MB, free: 164 kB / 362.7 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.006082/0.6808, allocations: 2.487 MB / 491.4 MB, free: 13.65 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.141e-05/0.6809, allocations: 15.95 kB / 491.4 MB, free: 13.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.615e-05/0.6809, allocations: 12 kB / 491.5 MB, free: 13.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002044/0.683, allocations: 0.5806 MB / 492 MB, free: 13.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001739/0.6847, allocations: 335.5 kB / 492.4 MB, free: 12.71 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01151/0.6963, allocations: 6.543 MB / 498.9 MB, free: 5.898 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001777/0.6981, allocations: 104 kB / 499 MB, free: 5.797 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002278/0.6983, allocations: 63.98 kB / 499.1 MB, free: 5.734 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * 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 (156): * Single equations (assignments): 153 * 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%) 22,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001789/0.7001, allocations: 0.6886 MB / 499.8 MB, free: 5.035 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005041/0.7007, allocations: 166 kB / 499.9 MB, free: 4.871 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005967/0.7066, allocations: 2.377 MB / 0.4905 GB, free: 2.473 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.797e-05/0.7067, allocations: 12 kB / 0.4905 GB, free: 2.461 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.196e-05/0.7067, allocations: 4 kB / 0.4905 GB, free: 2.457 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.824e-05/0.7067, allocations: 3.984 kB / 0.4905 GB, free: 2.453 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01172/0.7185, allocations: 4.755 MB / 0.4952 GB, free: 13.6 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.817e-06/0.7185, allocations: 4.219 kB / 0.4952 GB, free: 13.6 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00123/0.7198, allocations: 207.7 kB / 0.4954 GB, free: 13.39 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002425/0.7222, allocations: 0.6349 MB / 0.496 GB, free: 12.75 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001509/0.7224, allocations: 32.11 kB / 0.496 GB, free: 12.72 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01385/0.7362, allocations: 8.323 MB / 0.5042 GB, free: 4 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.986e-06/0.7363, allocations: 0 / 0.5042 GB, free: 4 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008724/0.745, allocations: 3.489 MB / 0.5076 GB, free: 416 kB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001156/0.7462, allocations: 391 kB / 0.5079 GB, free: 4 kB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00036/0.7466, allocations: 36.14 kB / 0.508 GB, free: 15.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001179/0.7478, allocations: 95.83 kB / 0.5081 GB, free: 15.87 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003186/0.7481, allocations: 96.81 kB / 0.5082 GB, free: 15.78 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001364/0.7483, allocations: 43.94 kB / 0.5082 GB, free: 15.73 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002052/0.7503, allocations: 0.9492 MB / 0.5091 GB, free: 14.79 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.211e-06/0.7504, allocations: 0 / 0.5091 GB, free: 14.79 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002256/0.7526, allocations: 0.5195 MB / 0.5096 GB, free: 14.27 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],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 (96): * Single equations (assignments): 93 * 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%) 22,(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.0006788/0.7533, allocations: 304.4 kB / 0.5099 GB, free: 13.96 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005833/0.7592, allocations: 2.356 MB / 0.5122 GB, free: 11.55 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.777e-06/0.7592, allocations: 0.75 kB / 0.5122 GB, free: 11.55 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003879/0.7631, allocations: 1.521 MB / 0.5137 GB, free: 9.992 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002397/0.7656, allocations: 377.8 kB / 0.5141 GB, free: 9.621 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01116/0.7767, allocations: 5.403 MB / 0.5194 GB, free: 4.164 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002514/0.7793, allocations: 1.839 MB / 0.5212 GB, free: 2.297 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006776/0.78, allocations: 123.4 kB / 0.5213 GB, free: 2.176 MB / 410.7 MB Notification: Performance of SimCode: time 1.845e-06/0.78, allocations: 0 / 0.5213 GB, free: 2.176 MB / 410.7 MB Notification: Performance of Templates: time 0.392/1.172, allocations: 56.54 MB / 0.5765 GB, free: 97.69 MB / 410.7 MB