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_VoltageSource.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_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.idq_sr.1.|smpm.idq_sr.2.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") Notification: Performance of loadModel(Modelica): time 1.574/1.574, allocations: 171.1 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003585/0.0003589, allocations: 11.98 kB / 233.3 MB, free: 0.9141 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07201/0.07239, allocations: 38.77 MB / 272 MB, free: 10.06 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3825/0.4549, allocations: 103.1 MB / 375.1 MB, free: 11.88 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002638/0.4552, allocations: 92.45 kB / 375.2 MB, free: 11.79 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4473/0.9025, allocations: 56.26 MB / 431.4 MB, free: 83.2 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.688e-06/0.9026, allocations: 1.188 kB / 431.4 MB, free: 83.2 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003853/0.903, allocations: 84.05 kB / 431.5 MB, free: 83.18 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: 744 * Number of variables: 744 Notification: Performance of Generate backend data structure: time 0.01269/0.9157, allocations: 3.136 MB / 434.7 MB, free: 81.8 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.136e-05/0.9158, allocations: 9.125 kB / 434.7 MB, free: 81.8 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002722/0.9185, allocations: 396.2 kB / 435.1 MB, free: 81.62 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007617/0.9262, allocations: 1.923 MB / 437 MB, free: 81.12 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003477/0.9266, allocations: 214.2 kB / 437.2 MB, free: 81.11 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001243/0.9278, allocations: 287.4 kB / 437.5 MB, free: 81.11 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01534/0.9432, allocations: 3.65 MB / 441.1 MB, free: 80.67 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002346/0.9435, allocations: 7.781 kB / 441.1 MB, free: 80.66 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007128/0.9442, allocations: 119 kB / 441.3 MB, free: 80.66 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001472/0.9444, allocations: 135.9 kB / 441.4 MB, free: 80.66 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008181/0.9526, allocations: 2.923 MB / 444.3 MB, free: 80.62 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02304/0.9757, allocations: 11.51 MB / 455.8 MB, free: 74.98 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003069/0.9788, allocations: 1.945 MB / 457.8 MB, free: 73.84 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003431/0.9792, allocations: 136.8 kB / 457.9 MB, free: 73.75 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.962e-05/0.9792, allocations: 51.44 kB / 457.9 MB, free: 73.7 MB / 346.7 MB Notification: Performance of pre-optimization done (n=126): time 4.792e-06/0.9793, allocations: 0 / 457.9 MB, free: 73.7 MB / 346.7 MB Notification: Performance of matching and sorting (n=147): time 0.01989/0.9991, allocations: 7.531 MB / 465.5 MB, free: 70.52 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.216e-05/0.9992, allocations: 66.91 kB / 465.5 MB, free: 70.45 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002981/1.002, allocations: 1.569 MB / 467.1 MB, free: 69.82 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003058/1.003, allocations: 49.58 kB / 467.2 MB, free: 69.77 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007606/1.003, allocations: 1.303 MB / 468.5 MB, free: 68.71 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004569/1.004, allocations: 0.5 MB / 469 MB, free: 68.32 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001558/1.004, allocations: 34.81 kB / 469 MB, free: 68.3 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001361/1.004, allocations: 384.5 kB / 469.4 MB, free: 67.95 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001811/1.006, allocations: 0.8835 MB / 470.3 MB, free: 67.63 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002062/1.008, allocations: 1.393 MB / 471.6 MB, free: 66.65 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002082/1.01, allocations: 1.118 MB / 472.8 MB, free: 66.17 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-05/1.01, allocations: 6.031 kB / 472.8 MB, free: 66.17 MB / 346.7 MB Notification: Performance of matching and sorting (n=233) (initialization): time 0.006342/1.017, allocations: 2.887 MB / 475.7 MB, free: 65.05 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.306e-05/1.017, allocations: 11.56 kB / 475.7 MB, free: 65.05 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.845e-05/1.017, allocations: 22.78 kB / 475.7 MB, free: 65.04 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00167/1.018, allocations: 0.5531 MB / 476.2 MB, free: 64.89 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002106/1.02, allocations: 435.8 kB / 476.7 MB, free: 64.85 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009245/1.03, allocations: 6.473 MB / 483.1 MB, free: 60.65 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002198/1.032, allocations: 144.1 kB / 483.3 MB, free: 60.61 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002852/1.032, allocations: 72.94 kB / 483.4 MB, free: 60.6 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 76 * 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 (207): * Single equations (assignments): 204 * 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 {(5,76.0%) 20,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002156/1.034, allocations: 0.9009 MB / 484.3 MB, free: 60.05 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005181/1.035, allocations: 213.4 kB / 484.5 MB, free: 59.84 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005371/1.04, allocations: 2.643 MB / 487.1 MB, free: 57.61 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.609e-05/1.04, allocations: 12 kB / 487.1 MB, free: 57.6 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.199e-05/1.04, allocations: 8 kB / 487.1 MB, free: 57.59 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.182e-05/1.041, allocations: 7.031 kB / 487.1 MB, free: 57.59 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01222/1.053, allocations: 5.645 MB / 492.8 MB, free: 52.94 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.505e-05/1.053, allocations: 6.688 kB / 492.8 MB, free: 52.93 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001427/1.054, allocations: 246.8 kB / 493 MB, free: 52.73 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001969/1.056, allocations: 0.5947 MB / 493.6 MB, free: 52.27 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000284/1.057, allocations: 35.23 kB / 493.7 MB, free: 52.24 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0107/1.067, allocations: 8.24 MB / 0.4901 GB, free: 44.39 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.676e-06/1.067, allocations: 4 kB / 0.4901 GB, free: 44.38 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007692/1.075, allocations: 4.013 MB / 0.4941 GB, free: 40.72 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001446/1.077, allocations: 458.7 kB / 0.4945 GB, free: 40.3 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006105/1.077, allocations: 35.09 kB / 0.4945 GB, free: 40.27 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001709/1.079, allocations: 96.11 kB / 0.4946 GB, free: 40.2 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004346/1.079, allocations: 108.5 kB / 0.4947 GB, free: 40.13 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001513/1.08, allocations: 43.61 kB / 0.4948 GB, free: 40.09 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002538/1.082, allocations: 1.2 MB / 0.4959 GB, free: 39.06 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.109e-06/1.082, allocations: 0 / 0.4959 GB, free: 39.06 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003192/1.085, allocations: 0.5976 MB / 0.4965 GB, free: 38.46 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * 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 (121): * Single equations (assignments): 118 * 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 {(5,76.0%) 20,(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.0008194/1.086, allocations: 398.8 kB / 0.4969 GB, free: 38.15 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.005396/1.092, allocations: 2.641 MB / 0.4995 GB, free: 35.54 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.784e-06/1.092, allocations: 0 / 0.4995 GB, free: 35.54 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003277/1.095, allocations: 1.604 MB / 0.501 GB, free: 33.9 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002969/1.098, allocations: 467 kB / 0.5015 GB, free: 33.46 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01241/1.11, allocations: 6.691 MB / 0.508 GB, free: 26.75 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003025/1.114, allocations: 2.223 MB / 0.5102 GB, free: 24.49 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000838/1.114, allocations: 143.4 kB / 0.5103 GB, free: 24.35 MB / 346.7 MB Notification: Performance of SimCode: time 1.741e-06/1.114, allocations: 0 / 0.5103 GB, free: 24.35 MB / 346.7 MB Notification: Performance of Templates: time 0.3052/1.42, allocations: 72.96 MB / 0.5816 GB, free: 85.98 MB / 362.7 MB