Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter") Notification: Performance of loadModel(Modelica): time 2.026/2.026, allocations: 194.9 MB / 212.3 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004063/0.0004064, allocations: 11.98 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1022, allocations: 44.51 MB / 309 MB, free: 1.035 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4519/0.5541, allocations: 103.9 MB / 412.9 MB, free: 11.75 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000405/0.5546, allocations: 91.92 kB / 412.9 MB, free: 11.74 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.208/0.7626, allocations: 49.67 MB / 462.6 MB, free: 9.742 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.016e-06/0.7627, allocations: 0 / 462.6 MB, free: 9.742 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003012/0.763, allocations: 63.94 kB / 462.7 MB, free: 9.68 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.01035/0.7734, allocations: 2.61 MB / 465.3 MB, free: 7.184 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.587e-05/0.7734, allocations: 8.031 kB / 465.3 MB, free: 7.176 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001949/0.7754, allocations: 316.6 kB / 465.6 MB, free: 6.863 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006119/0.7816, allocations: 1.684 MB / 467.3 MB, free: 5.336 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002516/0.7819, allocations: 160.4 kB / 467.4 MB, free: 5.176 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001018/0.7829, allocations: 220.2 kB / 467.7 MB, free: 4.961 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01038/0.7933, allocations: 2.9 MB / 470.6 MB, free: 1.914 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001408/0.7935, allocations: 4 kB / 470.6 MB, free: 1.91 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005228/0.794, allocations: 96 kB / 470.7 MB, free: 1.816 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002342/0.7943, allocations: 108.3 kB / 470.8 MB, free: 1.707 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01124/0.8055, allocations: 2.301 MB / 473.1 MB, free: 15.39 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03533/0.8409, allocations: 9.097 MB / 482.2 MB, free: 6.008 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005724/0.8467, allocations: 1.739 MB / 483.9 MB, free: 4.156 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006624/0.8474, allocations: 223.1 kB / 484.1 MB, free: 3.902 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.731e-05/0.8475, allocations: 47.5 kB / 484.2 MB, free: 3.848 MB / 362.7 MB Notification: Performance of pre-optimization done (n=107): time 5.431e-06/0.8475, allocations: 0 / 484.2 MB, free: 3.848 MB / 362.7 MB Notification: Performance of matching and sorting (n=130): time 0.03715/0.8847, allocations: 7.562 MB / 491.7 MB, free: 12.16 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.208e-05/0.8848, allocations: 68.67 kB / 491.8 MB, free: 12.08 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004023/0.8888, allocations: 1.518 MB / 493.3 MB, free: 10.55 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003543/0.8892, allocations: 45.7 kB / 493.4 MB, free: 10.5 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001091/0.8903, allocations: 1.034 MB / 494.4 MB, free: 9.453 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007516/0.8911, allocations: 469.3 kB / 494.8 MB, free: 8.988 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001635/0.8913, allocations: 28 kB / 494.9 MB, free: 8.961 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002073/0.8915, allocations: 370.8 kB / 495.2 MB, free: 8.59 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002402/0.8939, allocations: 0.773 MB / 496 MB, free: 7.816 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002863/0.8968, allocations: 1.183 MB / 497.2 MB, free: 6.457 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002851/0.8997, allocations: 0.955 MB / 498.1 MB, free: 5.508 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.655e-05/0.8998, allocations: 4 kB / 498.2 MB, free: 5.504 MB / 378.7 MB Notification: Performance of matching and sorting (n=198) (initialization): time 0.008275/0.9081, allocations: 2.591 MB / 0.489 GB, free: 2.895 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.853e-05/0.9082, allocations: 15.94 kB / 0.489 GB, free: 2.879 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.238e-05/0.9082, allocations: 12 kB / 0.489 GB, free: 2.867 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002682/0.9109, allocations: 0.5844 MB / 0.4896 GB, free: 2.273 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002766/0.9137, allocations: 363.5 kB / 0.4899 GB, free: 1.918 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01478/0.9285, allocations: 6.905 MB / 0.4967 GB, free: 10.74 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002463/0.9311, allocations: 115.8 kB / 0.4968 GB, free: 10.63 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003134/0.9314, allocations: 60 kB / 0.4969 GB, free: 10.57 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.002535/0.934, allocations: 0.7237 MB / 0.4976 GB, free: 9.836 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006506/0.9346, allocations: 169.9 kB / 0.4977 GB, free: 9.668 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008084/0.9427, allocations: 2.434 MB / 0.5001 GB, free: 7.211 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.253e-05/0.9428, allocations: 12 kB / 0.5001 GB, free: 7.199 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.732e-05/0.9428, allocations: 8 kB / 0.5001 GB, free: 7.191 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.538e-05/0.9429, allocations: 3.984 kB / 0.5001 GB, free: 7.188 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01641/0.9593, allocations: 4.959 MB / 0.505 GB, free: 2.125 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-05/0.9594, allocations: 4 kB / 0.505 GB, free: 2.121 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002/0.9614, allocations: 215.7 kB / 0.5052 GB, free: 1.91 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003253/0.9647, allocations: 0.6348 MB / 0.5058 GB, free: 1.266 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003155/0.9651, allocations: 43.97 kB / 0.5058 GB, free: 1.223 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0177/0.9828, allocations: 8.662 MB / 0.5143 GB, free: 8.156 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.344e-06/0.9828, allocations: 4 kB / 0.5143 GB, free: 8.152 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01224/0.9951, allocations: 3.485 MB / 0.5177 GB, free: 4.609 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002145/0.9973, allocations: 414.8 kB / 0.5181 GB, free: 4.184 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000986/0.9983, allocations: 35.98 kB / 0.5181 GB, free: 4.148 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003262/1.002, allocations: 99.89 kB / 0.5182 GB, free: 4.051 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000792/1.002, allocations: 96.81 kB / 0.5183 GB, free: 3.957 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002603/1.003, allocations: 43.98 kB / 0.5184 GB, free: 3.914 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.005041/1.008, allocations: 1.027 MB / 0.5194 GB, free: 2.891 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.112e-06/1.008, allocations: 0 / 0.5194 GB, free: 2.891 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004558/1.012, allocations: 0.5562 MB / 0.5199 GB, free: 2.336 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.001087/1.014, allocations: 364.9 kB / 0.5203 GB, free: 1.977 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.269/1.283, allocations: 2.429 MB / 0.5226 GB, free: 109.3 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.082e-05/1.283, allocations: 0 / 0.5226 GB, free: 109.3 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005632/1.288, allocations: 1.549 MB / 0.5241 GB, free: 108.9 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006353/1.295, allocations: 428.9 kB / 0.5246 GB, free: 108.9 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02309/1.318, allocations: 5.684 MB / 0.5301 GB, free: 106.7 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005203/1.323, allocations: 1.892 MB / 0.532 GB, free: 105.9 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001425/1.325, allocations: 128.7 kB / 0.5321 GB, free: 105.9 MB / 410.7 MB Notification: Performance of SimCode: time 2.946e-06/1.325, allocations: 4 kB / 0.5321 GB, free: 105.9 MB / 410.7 MB Notification: Performance of Templates: time 0.1268/1.452, allocations: 60.54 MB / 0.5912 GB, free: 82.64 MB / 410.7 MB