Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,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.2_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") Notification: Performance of loadModel(Modelica): time 1.77/1.77, allocations: 194.9 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003546/0.0003547, allocations: 8 kB / 263.9 MB, free: 13.57 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08163/0.08201, allocations: 44.5 MB / 308.4 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3698/0.4519, allocations: 108.4 MB / 416.8 MB, free: 11.73 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002596/0.4522, allocations: 90.41 kB / 416.9 MB, free: 11.72 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2211/0.6733, allocations: 58.22 MB / 475.1 MB, free: 14.92 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.173e-06/0.6734, allocations: 0 / 475.1 MB, free: 14.92 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002859/0.6737, allocations: 79.88 kB / 475.2 MB, free: 14.84 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 742 * Number of variables: 742 Notification: Performance of Generate backend data structure: time 0.01047/0.6841, allocations: 3.244 MB / 478.5 MB, free: 11.52 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.71e-05/0.6842, allocations: 8.031 kB / 478.5 MB, free: 11.52 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002136/0.6864, allocations: 407.5 kB / 478.9 MB, free: 11.11 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007188/0.6936, allocations: 2.18 MB / 481 MB, free: 8.879 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002624/0.6939, allocations: 213.6 kB / 481.3 MB, free: 8.668 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007519/0.6947, allocations: 279.9 kB / 481.5 MB, free: 8.395 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009187/0.7039, allocations: 3.64 MB / 485.2 MB, free: 4.605 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001106/0.704, allocations: 7.984 kB / 485.2 MB, free: 4.598 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004408/0.7045, allocations: 112 kB / 485.3 MB, free: 4.488 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001932/0.7047, allocations: 141.4 kB / 485.4 MB, free: 4.348 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008906/0.7136, allocations: 2.922 MB / 488.3 MB, free: 1.414 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02733/0.741, allocations: 11.64 MB / 500 MB, free: 5.438 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003774/0.7448, allocations: 1.957 MB / 0.4902 GB, free: 3.359 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004625/0.7453, allocations: 217.2 kB / 0.4904 GB, free: 3.113 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.084e-05/0.7454, allocations: 55.88 kB / 0.4904 GB, free: 3.051 MB / 378.7 MB Notification: Performance of pre-optimization done (n=127): time 4.616e-06/0.7454, allocations: 0 / 0.4904 GB, free: 3.051 MB / 378.7 MB Notification: Performance of matching and sorting (n=148): time 0.02104/0.7664, allocations: 7.453 MB / 0.4977 GB, free: 11.49 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.444e-05/0.7665, allocations: 72.67 kB / 0.4978 GB, free: 11.41 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003883/0.7704, allocations: 1.738 MB / 0.4995 GB, free: 9.633 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002859/0.7707, allocations: 45.7 kB / 0.4995 GB, free: 9.582 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001352/0.7721, allocations: 1.322 MB / 0.5008 GB, free: 8.246 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007958/0.7729, allocations: 0.5045 MB / 0.5013 GB, free: 7.734 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000171/0.7731, allocations: 36 kB / 0.5013 GB, free: 7.699 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002824/0.7734, allocations: 382.8 kB / 0.5017 GB, free: 7.316 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002087/0.7755, allocations: 0.8784 MB / 0.5026 GB, free: 6.438 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002797/0.7783, allocations: 1.415 MB / 0.504 GB, free: 4.789 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00275/0.7811, allocations: 1.103 MB / 0.505 GB, free: 3.684 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.156e-05/0.7812, allocations: 4 kB / 0.505 GB, free: 3.68 MB / 394.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.007484/0.7887, allocations: 2.904 MB / 0.5079 GB, free: 0.7578 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.793e-05/0.7887, allocations: 12 kB / 0.5079 GB, free: 0.7461 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.627e-05/0.7888, allocations: 20.44 kB / 0.5079 GB, free: 0.7266 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00193/0.7907, allocations: 0.541 MB / 0.5084 GB, free: 180 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002317/0.7931, allocations: 447.3 kB / 0.5089 GB, free: 15.74 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01161/0.8047, allocations: 6.456 MB / 0.5152 GB, free: 9.012 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00239/0.8071, allocations: 147.8 kB / 0.5153 GB, free: 8.867 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004583/0.8076, allocations: 87.98 kB / 0.5154 GB, free: 8.781 MB / 410.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 (208): * Single equations (assignments): 205 * 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.002718/0.8104, allocations: 0.907 MB / 0.5163 GB, free: 7.863 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006893/0.8111, allocations: 205.5 kB / 0.5165 GB, free: 7.66 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00661/0.8177, allocations: 2.668 MB / 0.5191 GB, free: 4.973 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.14e-05/0.8178, allocations: 12 kB / 0.5191 GB, free: 4.961 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.449e-05/0.8178, allocations: 8 kB / 0.5191 GB, free: 4.953 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.659e-05/0.8178, allocations: 7.969 kB / 0.5191 GB, free: 4.945 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2429/1.061, allocations: 5.723 MB / 0.5247 GB, free: 98.79 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.394e-05/1.061, allocations: 3.688 kB / 0.5247 GB, free: 98.79 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001669/1.063, allocations: 247.6 kB / 0.5249 GB, free: 98.79 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002113/1.065, allocations: 0.5823 MB / 0.5255 GB, free: 98.76 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002579/1.065, allocations: 37.34 kB / 0.5255 GB, free: 98.76 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01123/1.076, allocations: 8.219 MB / 0.5336 GB, free: 94.96 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.521e-06/1.076, allocations: 5.781 kB / 0.5336 GB, free: 94.96 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008405/1.085, allocations: 4.024 MB / 0.5375 GB, free: 94.45 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001564/1.086, allocations: 488.5 kB / 0.538 GB, free: 94.36 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006209/1.087, allocations: 36.73 kB / 0.538 GB, free: 94.36 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00189/1.089, allocations: 100.2 kB / 0.5381 GB, free: 94.36 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004318/1.089, allocations: 104 kB / 0.5382 GB, free: 94.35 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001636/1.089, allocations: 44.34 kB / 0.5382 GB, free: 94.35 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003325/1.093, allocations: 1.329 MB / 0.5395 GB, free: 94.21 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.687e-06/1.093, allocations: 0 / 0.5395 GB, free: 94.21 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003258/1.096, allocations: 0.6142 MB / 0.5401 GB, free: 94.21 MB / 410.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 (122): * Single equations (assignments): 119 * 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.0008333/1.097, allocations: 406.6 kB / 0.5405 GB, free: 94.11 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00529/1.102, allocations: 2.621 MB / 0.5431 GB, free: 93.73 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.733e-06/1.102, allocations: 1.094 kB / 0.5431 GB, free: 93.73 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00317/1.106, allocations: 1.61 MB / 0.5447 GB, free: 93.37 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002814/1.108, allocations: 0.4886 MB / 0.5451 GB, free: 93.34 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0122/1.121, allocations: 6.83 MB / 0.5518 GB, free: 90.57 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002513/1.123, allocations: 2.238 MB / 0.554 GB, free: 89.79 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009383/1.124, allocations: 162 kB / 0.5541 GB, free: 89.79 MB / 410.7 MB Notification: Performance of SimCode: time 1.934e-06/1.124, allocations: 0 / 0.5541 GB, free: 89.79 MB / 410.7 MB Notification: Performance of Templates: time 0.08948/1.214, allocations: 75.11 MB / 0.6275 GB, free: 48.21 MB / 410.7 MB