Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,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.1_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter") Notification: Performance of loadModel(Modelica): time 1.555/1.555, allocations: 171.2 MB / 184.2 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.092e-05/3.118e-05, allocations: 8 kB / 228.8 MB, free: 15.32 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2076/0.2077, allocations: 38.77 MB / 267.6 MB, free: 9.43 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3116/0.5193, allocations: 95.76 MB / 363.4 MB, free: 82.39 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002637/0.5196, allocations: 85.41 kB / 363.4 MB, free: 82.39 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1642/0.6838, allocations: 45.52 MB / 409 MB, free: 38.16 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.136e-06/0.6839, allocations: 0 / 409 MB, free: 38.16 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001636/0.6841, allocations: 63.88 kB / 409 MB, free: 38.09 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 552 * Number of variables: 552 Notification: Performance of Generate backend data structure: time 0.00505/0.6891, allocations: 2.231 MB / 411.3 MB, free: 35.8 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.6892, allocations: 12.03 kB / 411.3 MB, free: 35.79 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001159/0.6904, allocations: 292.8 kB / 411.6 MB, free: 35.5 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00334/0.6937, allocations: 1.487 MB / 413 MB, free: 33.96 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001357/0.6939, allocations: 160.2 kB / 413.2 MB, free: 33.8 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005006/0.6944, allocations: 215.9 kB / 413.4 MB, free: 33.59 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005449/0.6999, allocations: 2.706 MB / 416.1 MB, free: 30.73 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.315e-05/0.7, allocations: 4.344 kB / 416.1 MB, free: 30.73 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000286/0.7003, allocations: 95.94 kB / 416.2 MB, free: 30.64 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00012/0.7004, allocations: 96.17 kB / 416.3 MB, free: 30.54 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004593/0.705, allocations: 2.121 MB / 418.4 MB, free: 28.4 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01573/0.7208, allocations: 8.542 MB / 427 MB, free: 19.62 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002506/0.7233, allocations: 1.678 MB / 428.6 MB, free: 17.8 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001395/0.7248, allocations: 0.7744 MB / 429.4 MB, free: 17.04 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002973/0.7251, allocations: 138 kB / 429.6 MB, free: 16.88 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.565e-05/0.7251, allocations: 39.56 kB / 429.6 MB, free: 16.84 MB / 298.7 MB Notification: Performance of pre-optimization done (n=102): time 5.129e-06/0.7252, allocations: 0 / 429.6 MB, free: 16.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=123): time 0.0156/0.7408, allocations: 5.911 MB / 435.5 MB, free: 10.88 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.228e-05/0.7408, allocations: 64.41 kB / 435.6 MB, free: 10.8 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00206/0.7429, allocations: 1.17 MB / 436.7 MB, free: 9.617 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001745/0.7431, allocations: 45.7 kB / 436.8 MB, free: 9.566 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005274/0.7437, allocations: 0.9759 MB / 437.8 MB, free: 8.578 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003533/0.744, allocations: 433.7 kB / 438.2 MB, free: 8.148 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001102/0.7441, allocations: 32 kB / 438.2 MB, free: 8.117 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001116/0.7443, allocations: 366.8 kB / 438.6 MB, free: 7.75 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001272/0.7456, allocations: 0.695 MB / 439.3 MB, free: 7.055 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001443/0.747, allocations: 1.069 MB / 440.3 MB, free: 5.824 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001516/0.7485, allocations: 0.8637 MB / 441.2 MB, free: 4.957 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.033e-05/0.7486, allocations: 7.953 kB / 441.2 MB, free: 4.949 MB / 298.7 MB Notification: Performance of matching and sorting (n=184) (initialization): time 0.004708/0.7533, allocations: 2.385 MB / 443.6 MB, free: 2.547 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.122e-05/0.7534, allocations: 18.14 kB / 443.6 MB, free: 2.531 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.228e-05/0.7534, allocations: 12 kB / 443.6 MB, free: 2.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001832/0.7552, allocations: 0.5804 MB / 444.2 MB, free: 1.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001707/0.757, allocations: 331.5 kB / 444.5 MB, free: 1.605 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01027/0.7673, allocations: 6.316 MB / 450.8 MB, free: 11.02 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001677/0.769, allocations: 104 kB / 450.9 MB, free: 10.92 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001971/0.7692, allocations: 59.98 kB / 451 MB, free: 10.86 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (155): * Single equations (assignments): 152 * 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.0003984/0.7696, allocations: 192.5 kB / 451.2 MB, free: 10.67 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000405/0.77, allocations: 165.9 kB / 451.3 MB, free: 10.5 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005452/0.7755, allocations: 2.256 MB / 453.6 MB, free: 8.23 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.298e-05/0.7756, allocations: 16 kB / 453.6 MB, free: 8.215 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.196e-05/0.7756, allocations: 4 kB / 453.6 MB, free: 8.211 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.996e-05/0.7756, allocations: 3.984 kB / 453.6 MB, free: 8.207 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0113/0.7869, allocations: 4.649 MB / 458.3 MB, free: 3.457 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.104e-05/0.787, allocations: 0 / 458.3 MB, free: 3.457 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001301/0.7883, allocations: 203.7 kB / 458.5 MB, free: 3.258 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002465/0.7908, allocations: 0.6317 MB / 459.1 MB, free: 2.617 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001697/0.791, allocations: 39.94 kB / 459.1 MB, free: 2.578 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01321/0.8042, allocations: 8.045 MB / 467.2 MB, free: 10.12 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.55e-06/0.8043, allocations: 0 / 467.2 MB, free: 10.12 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007325/0.8116, allocations: 3.372 MB / 470.6 MB, free: 6.629 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001134/0.8128, allocations: 391 kB / 470.9 MB, free: 6.227 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000314/0.8131, allocations: 31.95 kB / 471 MB, free: 6.195 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001185/0.8143, allocations: 87.89 kB / 471.1 MB, free: 6.109 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003092/0.8147, allocations: 100.8 kB / 471.2 MB, free: 6.012 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001485/0.8148, allocations: 43.98 kB / 471.2 MB, free: 5.969 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001866/0.8167, allocations: 0.889 MB / 472.1 MB, free: 5.078 MB / 330.7 MB Notification: Performance of sort global known variables: time 9.57e-07/0.8167, allocations: 0 / 472.1 MB, free: 5.078 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002214/0.8189, allocations: 0.5155 MB / 472.6 MB, free: 4.562 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 () * 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.0006493/0.8196, allocations: 302.3 kB / 472.9 MB, free: 4.258 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004971/0.8246, allocations: 2.246 MB / 475.1 MB, free: 1.965 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.956e-06/0.8246, allocations: 0 / 475.1 MB, free: 1.965 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003375/0.828, allocations: 1.459 MB / 476.6 MB, free: 476 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002305/0.8304, allocations: 376.6 kB / 477 MB, free: 96 kB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008704/0.8391, allocations: 3.676 MB / 480.7 MB, free: 12.35 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002352/0.8415, allocations: 1.835 MB / 482.5 MB, free: 10.48 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006116/0.8421, allocations: 115.4 kB / 482.6 MB, free: 10.37 MB / 346.7 MB Notification: Performance of SimCode: time 5.207e-06/0.8422, allocations: 0 / 482.6 MB, free: 10.37 MB / 346.7 MB Notification: Performance of Templates: time 0.2596/1.102, allocations: 55.79 MB / 0.5258 GB, free: 70.84 MB / 346.7 MB