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.SMPM_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.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_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter") Notification: Performance of loadModel(Modelica): time 1.698/1.698, allocations: 194.9 MB / 211.7 MB, free: 2.984 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003602/0.0003602, allocations: 12 kB / 263.9 MB, free: 13.57 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07731/0.0777, allocations: 44.51 MB / 308.5 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3747/0.4524, allocations: 103.9 MB / 412.3 MB, free: 13.73 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000251/0.4527, allocations: 95.89 kB / 412.4 MB, free: 13.71 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2307/0.6834, allocations: 49.67 MB / 462.1 MB, free: 11.22 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.757e-06/0.6835, allocations: 0 / 462.1 MB, free: 11.22 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001818/0.6836, allocations: 59.94 kB / 462.2 MB, free: 11.16 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.00653/0.6902, allocations: 2.608 MB / 464.8 MB, free: 8.668 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.6902, allocations: 8.031 kB / 464.8 MB, free: 8.66 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001158/0.6914, allocations: 312.6 kB / 465.1 MB, free: 8.352 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00422/0.6957, allocations: 1.68 MB / 466.8 MB, free: 7.023 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001697/0.6958, allocations: 163.2 kB / 466.9 MB, free: 6.93 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004991/0.6964, allocations: 219.9 kB / 467.1 MB, free: 6.785 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006768/0.7031, allocations: 2.888 MB / 470 MB, free: 3.82 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.26e-05/0.7032, allocations: 0 / 470 MB, free: 3.82 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003376/0.7036, allocations: 96 kB / 470.1 MB, free: 3.727 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000149/0.7038, allocations: 104.3 kB / 470.2 MB, free: 3.621 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005803/0.7096, allocations: 2.297 MB / 472.5 MB, free: 1.309 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02001/0.7296, allocations: 9.097 MB / 481.6 MB, free: 7.926 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006609/0.7363, allocations: 1.754 MB / 483.4 MB, free: 6.059 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000692/0.737, allocations: 219.1 kB / 483.6 MB, free: 5.809 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.187e-05/0.7371, allocations: 47.56 kB / 483.6 MB, free: 5.754 MB / 362.7 MB Notification: Performance of pre-optimization done (n=107): time 7.641e-06/0.7372, allocations: 4 kB / 483.6 MB, free: 5.75 MB / 362.7 MB Notification: Performance of matching and sorting (n=130): time 0.04243/0.7796, allocations: 7.566 MB / 491.2 MB, free: 14.05 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.733e-05/0.7797, allocations: 68.67 kB / 491.3 MB, free: 13.97 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005275/0.785, allocations: 1.338 MB / 492.6 MB, free: 12.63 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000326/0.7854, allocations: 49.7 kB / 492.6 MB, free: 12.57 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001694/0.7871, allocations: 1.038 MB / 493.7 MB, free: 11.52 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009431/0.7881, allocations: 461.3 kB / 494.1 MB, free: 11.07 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002619/0.7884, allocations: 36 kB / 494.2 MB, free: 11.03 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003807/0.7888, allocations: 374.7 kB / 494.5 MB, free: 10.66 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003551/0.7924, allocations: 0.7613 MB / 495.3 MB, free: 9.895 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004152/0.7965, allocations: 1.18 MB / 496.5 MB, free: 8.543 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004128/0.8007, allocations: 0.9589 MB / 497.4 MB, free: 7.582 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.028e-05/0.8007, allocations: 4 kB / 497.4 MB, free: 7.578 MB / 378.7 MB Notification: Performance of matching and sorting (n=198) (initialization): time 0.01219/0.813, allocations: 2.583 MB / 0.4883 GB, free: 4.977 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.167e-05/0.8131, allocations: 12 kB / 0.4883 GB, free: 4.965 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.625e-05/0.8131, allocations: 12 kB / 0.4883 GB, free: 4.953 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003885/0.817, allocations: 0.5959 MB / 0.4889 GB, free: 4.348 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003887/0.821, allocations: 355.5 kB / 0.4892 GB, free: 4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01782/0.8388, allocations: 6.905 MB / 0.496 GB, free: 12.83 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001813/0.8407, allocations: 111.8 kB / 0.4961 GB, free: 12.72 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001958/0.8409, allocations: 64 kB / 0.4962 GB, free: 12.66 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.00183/0.8427, allocations: 0.7198 MB / 0.4969 GB, free: 11.93 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005093/0.8433, allocations: 169.9 kB / 0.497 GB, free: 11.76 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006477/0.8497, allocations: 2.43 MB / 0.4994 GB, free: 9.309 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-05/0.8498, allocations: 12 kB / 0.4994 GB, free: 9.297 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.688e-05/0.8498, allocations: 15.92 kB / 0.4994 GB, free: 9.281 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.156e-05/0.8499, allocations: 7.984 kB / 0.4994 GB, free: 9.273 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01243/0.8623, allocations: 4.947 MB / 0.5043 GB, free: 4.219 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.518e-05/0.8624, allocations: 8.125 kB / 0.5043 GB, free: 4.211 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001278/0.8637, allocations: 219.7 kB / 0.5045 GB, free: 3.996 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002425/0.8661, allocations: 0.6388 MB / 0.5051 GB, free: 3.348 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002041/0.8663, allocations: 31.98 kB / 0.5051 GB, free: 3.316 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01474/0.8811, allocations: 8.666 MB / 0.5136 GB, free: 10.25 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.741e-06/0.8811, allocations: 4 kB / 0.5136 GB, free: 10.24 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008452/0.8896, allocations: 3.631 MB / 0.5171 GB, free: 6.496 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001305/0.8909, allocations: 414.8 kB / 0.5175 GB, free: 6.07 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004438/0.8914, allocations: 28 kB / 0.5176 GB, free: 6.043 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001509/0.8929, allocations: 95.89 kB / 0.5177 GB, free: 5.949 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005472/0.8935, allocations: 104.8 kB / 0.5178 GB, free: 5.848 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002488/0.8938, allocations: 40 kB / 0.5178 GB, free: 5.809 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003853/0.8977, allocations: 1.027 MB / 0.5188 GB, free: 4.785 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.257e-06/0.8977, allocations: 0 / 0.5188 GB, free: 4.785 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004437/0.9022, allocations: 0.5562 MB / 0.5193 GB, free: 4.23 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.001167/0.9034, allocations: 365.1 kB / 0.5197 GB, free: 3.871 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.008983/0.9124, allocations: 2.428 MB / 0.5221 GB, free: 1.383 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.52e-06/0.9124, allocations: 4.125 kB / 0.5221 GB, free: 1.379 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2354/1.148, allocations: 1.548 MB / 0.5236 GB, free: 109.9 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00261/1.151, allocations: 428.4 kB / 0.524 GB, free: 109.9 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009665/1.16, allocations: 5.685 MB / 0.5295 GB, free: 107.7 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002046/1.162, allocations: 1.893 MB / 0.5314 GB, free: 106.9 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007421/1.163, allocations: 128.1 kB / 0.5315 GB, free: 106.9 MB / 410.7 MB Notification: Performance of SimCode: time 1.886e-06/1.163, allocations: 0 / 0.5315 GB, free: 106.9 MB / 410.7 MB Notification: Performance of Templates: time 0.07404/1.237, allocations: 60.54 MB / 0.5906 GB, free: 84.56 MB / 410.7 MB