Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.719/1.719, allocations: 171.2 MB / 187.3 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005747/0.000575, allocations: 8 kB / 233.8 MB, free: 3.066 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1176, allocations: 38.77 MB / 272.6 MB, free: 12.22 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4077/0.5254, allocations: 95.84 MB / 368.4 MB, free: 10.57 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003931/0.5258, allocations: 92.89 kB / 368.5 MB, free: 10.52 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2152/0.741, allocations: 45.45 MB / 413.9 MB, free: 2.527 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.7411, allocations: 0 / 413.9 MB, free: 2.527 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003003/0.7414, allocations: 59.94 kB / 414 MB, free: 2.469 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: 552 * Number of variables: 552 Notification: Performance of Generate backend data structure: time 0.009205/0.7506, allocations: 2.441 MB / 416.4 MB, free: 15.96 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.755e-05/0.7507, allocations: 12.03 kB / 416.4 MB, free: 15.95 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001608/0.7523, allocations: 300.7 kB / 416.7 MB, free: 15.66 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004962/0.7573, allocations: 1.49 MB / 418.2 MB, free: 14.11 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002529/0.7576, allocations: 164.2 kB / 418.4 MB, free: 13.94 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009372/0.7585, allocations: 207.9 kB / 418.6 MB, free: 13.74 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008745/0.7673, allocations: 2.792 MB / 421.4 MB, free: 10.8 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.368e-05/0.7675, allocations: 3.953 kB / 421.4 MB, free: 10.8 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003668/0.7678, allocations: 95.98 kB / 421.5 MB, free: 10.7 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001791/0.768, allocations: 104.1 kB / 421.6 MB, free: 10.6 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008128/0.7762, allocations: 2.226 MB / 423.8 MB, free: 8.355 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2537/1.03, allocations: 8.539 MB / 432.4 MB, free: 81.68 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004386/1.034, allocations: 1.717 MB / 434.1 MB, free: 81.07 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004643/1.035, allocations: 139.7 kB / 434.2 MB, free: 80.98 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.382e-05/1.035, allocations: 43.22 kB / 434.2 MB, free: 80.94 MB / 346.7 MB Notification: Performance of pre-optimization done (n=102): time 4.108e-06/1.035, allocations: 0 / 434.2 MB, free: 80.94 MB / 346.7 MB Notification: Performance of matching and sorting (n=123): time 0.02891/1.064, allocations: 7.112 MB / 441.4 MB, free: 79.99 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.412e-05/1.064, allocations: 65.47 kB / 441.4 MB, free: 79.93 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003001/1.067, allocations: 1.331 MB / 442.8 MB, free: 79.77 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003583/1.067, allocations: 45.7 kB / 442.8 MB, free: 79.73 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007824/1.068, allocations: 0.9851 MB / 443.8 MB, free: 79.32 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005381/1.069, allocations: 434 kB / 444.2 MB, free: 79.1 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001417/1.069, allocations: 31.72 kB / 444.2 MB, free: 79.1 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001254/1.069, allocations: 367 kB / 444.6 MB, free: 78.78 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00213/1.071, allocations: 0.7479 MB / 445.3 MB, free: 78.78 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002323/1.073, allocations: 1.114 MB / 446.5 MB, free: 78.36 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002455/1.076, allocations: 0.9205 MB / 447.4 MB, free: 78.35 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-05/1.076, allocations: 3.969 kB / 447.4 MB, free: 78.35 MB / 346.7 MB Notification: Performance of matching and sorting (n=184) (initialization): time 0.006899/1.083, allocations: 2.479 MB / 449.9 MB, free: 78.22 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.931e-05/1.083, allocations: 15.66 kB / 449.9 MB, free: 78.22 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.06e-05/1.083, allocations: 11.19 kB / 449.9 MB, free: 78.22 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002468/1.086, allocations: 0.5807 MB / 450.5 MB, free: 78.19 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002411/1.088, allocations: 334 kB / 450.8 MB, free: 78.19 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01142/1.099, allocations: 6.545 MB / 457.3 MB, free: 75.61 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002249/1.102, allocations: 115.4 kB / 457.5 MB, free: 75.61 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003789/1.102, allocations: 59.16 kB / 457.5 MB, free: 75.61 MB / 346.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 (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.002105/1.104, allocations: 0.6977 MB / 458.2 MB, free: 75.48 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005934/1.105, allocations: 155.2 kB / 458.4 MB, free: 75.4 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007151/1.112, allocations: 2.365 MB / 460.7 MB, free: 74.82 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.001e-05/1.112, allocations: 12.47 kB / 460.7 MB, free: 74.82 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.483e-05/1.112, allocations: 6.031 kB / 460.7 MB, free: 74.82 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.62e-05/1.112, allocations: 14.59 kB / 460.8 MB, free: 74.81 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01367/1.126, allocations: 4.714 MB / 465.5 MB, free: 72.95 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.212e-05/1.126, allocations: 0 / 465.5 MB, free: 72.95 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001753/1.128, allocations: 207.2 kB / 465.7 MB, free: 72.95 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002861/1.131, allocations: 0.6388 MB / 466.3 MB, free: 72.78 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002656/1.131, allocations: 34.39 kB / 466.3 MB, free: 72.76 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01351/1.144, allocations: 8.303 MB / 474.6 MB, free: 67.13 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/1.145, allocations: 6.781 kB / 474.7 MB, free: 67.13 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008903/1.153, allocations: 3.375 MB / 478 MB, free: 65.74 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001288/1.155, allocations: 394.8 kB / 478.4 MB, free: 65.48 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005281/1.155, allocations: 28.09 kB / 478.4 MB, free: 65.47 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001837/1.157, allocations: 90.31 kB / 478.5 MB, free: 65.45 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000457/1.158, allocations: 105.8 kB / 478.6 MB, free: 65.43 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000131/1.158, allocations: 38.45 kB / 478.7 MB, free: 65.42 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001938/1.16, allocations: 0.9055 MB / 479.6 MB, free: 65.06 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.01e-07/1.16, allocations: 0 / 479.6 MB, free: 65.06 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002864/1.163, allocations: 0.5146 MB / 480.1 MB, free: 65.01 MB / 346.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 (95): * Single equations (assignments): 92 * 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.0008055/1.164, allocations: 296.2 kB / 480.4 MB, free: 64.89 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.006325/1.17, allocations: 2.357 MB / 482.7 MB, free: 63.92 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.083e-06/1.17, allocations: 7.016 kB / 482.7 MB, free: 63.92 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004246/1.174, allocations: 1.508 MB / 484.3 MB, free: 63.19 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003062/1.177, allocations: 373.7 kB / 484.6 MB, free: 63.09 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0118/1.189, allocations: 5.381 MB / 490 MB, free: 60.06 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001984/1.191, allocations: 1.83 MB / 491.8 MB, free: 59.15 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007481/1.192, allocations: 111.2 kB / 491.9 MB, free: 59.14 MB / 346.7 MB Notification: Performance of SimCode: time 1.122e-06/1.192, allocations: 4 kB / 491.9 MB, free: 59.14 MB / 346.7 MB Notification: Performance of Templates: time 0.09051/1.283, allocations: 55.85 MB / 0.535 GB, free: 10.76 MB / 346.7 MB