Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,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.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter") Notification: Performance of loadModel(Modelica): time 2.25/2.25, allocations: 194.8 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003814/0.0003814, allocations: 11.94 kB / 264.5 MB, free: 12.94 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09666/0.09707, allocations: 44.51 MB / 309.1 MB, free: 364 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4537/0.5508, allocations: 103.9 MB / 412.9 MB, free: 12.06 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000322/0.5512, allocations: 94.64 kB / 413 MB, free: 12.05 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2103/0.7615, allocations: 49.67 MB / 462.7 MB, free: 9.059 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.176e-06/0.7615, allocations: 0 / 462.7 MB, free: 9.059 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003447/0.7619, allocations: 67.94 kB / 462.8 MB, free: 8.992 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: 578 * Number of variables: 578 Notification: Performance of Generate backend data structure: time 0.01069/0.7726, allocations: 2.602 MB / 465.4 MB, free: 6.504 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.83e-05/0.7727, allocations: 12.03 kB / 465.4 MB, free: 6.492 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00207/0.7747, allocations: 308.6 kB / 465.7 MB, free: 6.188 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006581/0.7814, allocations: 1.684 MB / 467.4 MB, free: 4.688 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002857/0.7817, allocations: 164.4 kB / 467.5 MB, free: 4.523 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001117/0.7828, allocations: 224.2 kB / 467.7 MB, free: 4.305 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01006/0.7929, allocations: 2.877 MB / 470.6 MB, free: 1.281 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001094/0.7931, allocations: 4 kB / 470.6 MB, free: 1.277 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003928/0.7935, allocations: 96 kB / 470.7 MB, free: 1.184 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000183/0.7937, allocations: 104.3 kB / 470.8 MB, free: 1.078 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008438/0.8021, allocations: 2.297 MB / 473.1 MB, free: 14.76 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02732/0.8295, allocations: 9.105 MB / 482.2 MB, free: 5.371 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004483/0.834, allocations: 1.75 MB / 484 MB, free: 3.508 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000544/0.8346, allocations: 219.1 kB / 484.2 MB, free: 3.258 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.761e-05/0.8347, allocations: 47.56 kB / 484.2 MB, free: 3.203 MB / 362.7 MB Notification: Performance of pre-optimization done (n=107): time 4.158e-06/0.8347, allocations: 0 / 484.2 MB, free: 3.203 MB / 362.7 MB Notification: Performance of matching and sorting (n=130): time 0.03174/0.8665, allocations: 7.562 MB / 491.8 MB, free: 11.51 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.59e-05/0.8666, allocations: 68.67 kB / 491.9 MB, free: 11.43 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003753/0.8704, allocations: 1.514 MB / 493.4 MB, free: 9.91 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003542/0.8708, allocations: 49.64 kB / 493.4 MB, free: 9.855 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001261/0.872, allocations: 1.088 MB / 494.5 MB, free: 8.75 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008429/0.8729, allocations: 461.3 kB / 495 MB, free: 8.293 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001922/0.8731, allocations: 36 kB / 495 MB, free: 8.258 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002362/0.8734, allocations: 361.9 kB / 495.4 MB, free: 7.898 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002513/0.8759, allocations: 0.7652 MB / 496.1 MB, free: 7.133 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003189/0.8791, allocations: 1.184 MB / 497.3 MB, free: 5.773 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002978/0.8822, allocations: 0.955 MB / 498.3 MB, free: 4.824 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.657e-05/0.8822, allocations: 4 kB / 498.3 MB, free: 4.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=198) (initialization): time 0.009077/0.8913, allocations: 2.692 MB / 0.4892 GB, free: 2.109 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.588e-05/0.8914, allocations: 12.62 kB / 0.4892 GB, free: 2.098 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.667e-05/0.8915, allocations: 12 kB / 0.4892 GB, free: 2.086 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002736/0.8942, allocations: 0.596 MB / 0.4898 GB, free: 1.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002785/0.897, allocations: 355.5 kB / 0.4902 GB, free: 1.133 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01487/0.912, allocations: 6.905 MB / 0.4969 GB, free: 9.957 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00253/0.9146, allocations: 115.8 kB / 0.497 GB, free: 9.844 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003959/0.915, allocations: 67.98 kB / 0.4971 GB, free: 9.777 MB / 394.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 (168): * Single equations (assignments): 165 * 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.002357/0.9174, allocations: 0.7159 MB / 0.4978 GB, free: 9.051 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006435/0.918, allocations: 173.8 kB / 0.4979 GB, free: 8.879 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008165/0.9262, allocations: 2.43 MB / 0.5003 GB, free: 6.426 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-05/0.9263, allocations: 12 kB / 0.5003 GB, free: 6.414 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.921e-05/0.9263, allocations: 8 kB / 0.5003 GB, free: 6.406 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.989e-05/0.9264, allocations: 7.969 kB / 0.5003 GB, free: 6.398 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01709/0.9435, allocations: 4.951 MB / 0.5052 GB, free: 1.344 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.258e-05/0.9435, allocations: 4.062 kB / 0.5052 GB, free: 1.34 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001985/0.9455, allocations: 219.7 kB / 0.5054 GB, free: 1.125 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003167/0.9487, allocations: 0.6308 MB / 0.506 GB, free: 496 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002861/0.9491, allocations: 35.98 kB / 0.506 GB, free: 460 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01713/0.9662, allocations: 8.666 MB / 0.5145 GB, free: 7.379 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.885e-06/0.9663, allocations: 4 kB / 0.5145 GB, free: 7.375 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01101/0.9773, allocations: 3.493 MB / 0.5179 GB, free: 3.824 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001494/0.9788, allocations: 414.8 kB / 0.5183 GB, free: 3.398 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004512/0.9793, allocations: 31.98 kB / 0.5183 GB, free: 3.367 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001774/0.9811, allocations: 103.9 kB / 0.5184 GB, free: 3.266 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000399/0.9815, allocations: 100.8 kB / 0.5185 GB, free: 3.168 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001469/0.9817, allocations: 39.98 kB / 0.5186 GB, free: 3.129 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002522/0.9842, allocations: 1.031 MB / 0.5196 GB, free: 2.102 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.62e-07/0.9843, allocations: 0 / 0.5196 GB, free: 2.102 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003022/0.9873, allocations: 0.5484 MB / 0.5201 GB, free: 1.555 MB / 410.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 (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.0009262/0.9882, allocations: 368.2 kB / 0.5205 GB, free: 1.191 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.3118/1.3, allocations: 2.424 MB / 0.5228 GB, free: 109.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.769e-06/1.3, allocations: 0 / 0.5228 GB, free: 109.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004703/1.305, allocations: 1.545 MB / 0.5243 GB, free: 109.1 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003714/1.309, allocations: 425.4 kB / 0.5248 GB, free: 109.1 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01831/1.327, allocations: 5.63 MB / 0.5303 GB, free: 106.9 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004641/1.332, allocations: 1.918 MB / 0.5321 GB, free: 106.2 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003551/1.335, allocations: 383.2 kB / 0.5325 GB, free: 106.1 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001145/1.337, allocations: 120.1 kB / 0.5326 GB, free: 106.1 MB / 410.7 MB Notification: Performance of SimCode: time 2.084e-06/1.337, allocations: 0 / 0.5326 GB, free: 106.1 MB / 410.7 MB Notification: Performance of Templates: time 0.1101/1.447, allocations: 29.25 MB / 0.5612 GB, free: 104.3 MB / 410.7 MB