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.SMPM_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.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,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.1_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter") Notification: Performance of loadModel(Modelica): time 1.704/1.704, allocations: 171.2 MB / 186.7 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003501/0.0003502, allocations: 8 kB / 233.2 MB, free: 3.016 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06871/0.06908, allocations: 38.77 MB / 272 MB, free: 12.16 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.355/0.4241, allocations: 98.75 MB / 370.8 MB, free: 7.531 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002658/0.4244, allocations: 88.64 kB / 370.9 MB, free: 7.484 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2073/0.6317, allocations: 49.26 MB / 420.1 MB, free: 11.7 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.338e-06/0.6318, allocations: 0 / 420.1 MB, free: 11.7 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003157/0.6321, allocations: 63.88 kB / 420.2 MB, free: 11.64 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: 580 * Number of variables: 580 Notification: Performance of Generate backend data structure: time 0.01214/0.6443, allocations: 2.578 MB / 422.8 MB, free: 9 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.582e-05/0.6444, allocations: 8.031 kB / 422.8 MB, free: 8.992 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002304/0.6467, allocations: 316.5 kB / 423.1 MB, free: 8.68 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007635/0.6544, allocations: 1.59 MB / 424.7 MB, free: 7.031 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003434/0.6548, allocations: 168.4 kB / 424.8 MB, free: 6.863 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009625/0.6558, allocations: 219.9 kB / 425 MB, free: 6.648 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01326/0.669, allocations: 2.887 MB / 427.9 MB, free: 3.617 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001465/0.6692, allocations: 7.906 kB / 427.9 MB, free: 3.609 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006559/0.6699, allocations: 99.94 kB / 428 MB, free: 3.512 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002742/0.6702, allocations: 108.3 kB / 428.1 MB, free: 3.402 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01201/0.6823, allocations: 2.305 MB / 430.4 MB, free: 1.082 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.213/0.8953, allocations: 9.058 MB / 439.5 MB, free: 78.42 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003076/0.8984, allocations: 1.74 MB / 441.2 MB, free: 77.82 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003262/0.8988, allocations: 134.6 kB / 441.4 MB, free: 77.72 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.941e-05/0.8988, allocations: 45.78 kB / 441.4 MB, free: 77.68 MB / 346.7 MB Notification: Performance of pre-optimization done (n=106): time 4.48e-06/0.8988, allocations: 3.094 kB / 441.4 MB, free: 77.68 MB / 346.7 MB Notification: Performance of matching and sorting (n=129): time 0.02101/0.9198, allocations: 7.532 MB / 449 MB, free: 76.55 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.401e-05/0.9199, allocations: 67.53 kB / 449 MB, free: 76.48 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002351/0.9223, allocations: 1.282 MB / 450.3 MB, free: 76.33 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000232/0.9225, allocations: 48.48 kB / 450.4 MB, free: 76.3 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006134/0.9232, allocations: 1.038 MB / 451.4 MB, free: 75.86 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004477/0.9236, allocations: 450 kB / 451.8 MB, free: 75.64 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001264/0.9238, allocations: 34.34 kB / 451.9 MB, free: 75.64 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.9239, allocations: 370.9 kB / 452.2 MB, free: 75.32 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001689/0.9256, allocations: 0.7696 MB / 453 MB, free: 75.32 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001815/0.9274, allocations: 1.177 MB / 454.2 MB, free: 74.86 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002006/0.9295, allocations: 0.9479 MB / 455.1 MB, free: 74.84 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.153e-05/0.9295, allocations: 6.531 kB / 455.1 MB, free: 74.84 MB / 346.7 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.005909/0.9354, allocations: 2.584 MB / 457.7 MB, free: 74.71 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.256e-05/0.9355, allocations: 11.59 kB / 457.7 MB, free: 74.71 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.373e-05/0.9355, allocations: 11.34 kB / 457.7 MB, free: 74.71 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001937/0.9375, allocations: 0.5873 MB / 458.3 MB, free: 74.68 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00188/0.9394, allocations: 354.6 kB / 458.7 MB, free: 74.68 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01005/0.9495, allocations: 6.911 MB / 465.6 MB, free: 70.61 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001853/0.9514, allocations: 110.4 kB / 465.7 MB, free: 70.59 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001838/0.9516, allocations: 73.19 kB / 465.8 MB, free: 70.57 MB / 346.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 (167): * Single equations (assignments): 164 * 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.001602/0.9532, allocations: 0.7117 MB / 466.5 MB, free: 70.19 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004067/0.9536, allocations: 178.9 kB / 466.6 MB, free: 70.1 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005174/0.9588, allocations: 2.413 MB / 469.1 MB, free: 69.18 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.825e-05/0.9589, allocations: 11.16 kB / 469.1 MB, free: 69.18 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.482e-05/0.9589, allocations: 6.625 kB / 469.1 MB, free: 69.18 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.919e-05/0.9589, allocations: 7.641 kB / 469.1 MB, free: 69.18 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01129/0.9702, allocations: 4.924 MB / 474 MB, free: 67.23 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.238e-05/0.9703, allocations: 0 / 474 MB, free: 67.23 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001366/0.9717, allocations: 221.5 kB / 474.2 MB, free: 67.22 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002467/0.9742, allocations: 0.6478 MB / 474.9 MB, free: 67.05 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002075/0.9744, allocations: 38.52 kB / 474.9 MB, free: 67.03 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01167/0.9861, allocations: 8.649 MB / 483.6 MB, free: 61.17 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.504e-06/0.9861, allocations: 0 / 483.6 MB, free: 61.17 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00711/0.9933, allocations: 3.62 MB / 487.2 MB, free: 59.5 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001119/0.9944, allocations: 403.1 kB / 487.6 MB, free: 59.23 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003332/0.9948, allocations: 34.56 kB / 487.6 MB, free: 59.21 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001181/0.996, allocations: 94.97 kB / 487.7 MB, free: 59.19 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000308/0.9963, allocations: 102.3 kB / 487.8 MB, free: 59.17 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001232/0.9964, allocations: 37.61 kB / 487.8 MB, free: 59.16 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001728/0.9982, allocations: 0.9889 MB / 488.8 MB, free: 58.77 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.67e-07/0.9982, allocations: 0 / 488.8 MB, free: 58.77 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002503/1.001, allocations: 0.5498 MB / 489.4 MB, free: 58.71 MB / 346.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 (100): * Single equations (assignments): 97 * 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.0006388/1.001, allocations: 353.3 kB / 489.7 MB, free: 58.56 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.004766/1.006, allocations: 2.414 MB / 492.1 MB, free: 57.5 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.078e-06/1.006, allocations: 3.281 kB / 492.1 MB, free: 57.5 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003319/1.01, allocations: 1.552 MB / 493.7 MB, free: 56.73 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002485/1.012, allocations: 430.8 kB / 494.1 MB, free: 56.61 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009025/1.021, allocations: 5.641 MB / 499.7 MB, free: 51.98 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001734/1.023, allocations: 1.894 MB / 0.4899 GB, free: 50.46 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006247/1.024, allocations: 122.5 kB / 0.49 GB, free: 50.34 MB / 346.7 MB Notification: Performance of SimCode: time 1.684e-06/1.024, allocations: 4 kB / 0.49 GB, free: 50.34 MB / 346.7 MB Notification: Performance of Templates: time 0.07043/1.094, allocations: 59.81 MB / 0.5484 GB, free: 11.69 MB / 362.7 MB