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_CurrentSource.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_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource") Notification: Performance of loadModel(Modelica): time 1.844/1.844, allocations: 194.9 MB / 211.7 MB, free: 2.98 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003594/0.0003595, allocations: 12 kB / 263.9 MB, free: 13.55 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0795/0.07988, allocations: 44.51 MB / 308.5 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3647/0.4446, allocations: 105.1 MB / 413.5 MB, free: 13.21 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000219/0.4449, allocations: 94.34 kB / 413.6 MB, free: 13.2 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1953/0.6402, allocations: 52.8 MB / 466.4 MB, free: 7.328 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.6402, allocations: 0 / 466.4 MB, free: 7.328 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002658/0.6405, allocations: 67.94 kB / 466.5 MB, free: 7.262 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: 657 * Number of variables: 657 Notification: Performance of Generate backend data structure: time 0.008896/0.6494, allocations: 2.881 MB / 469.4 MB, free: 4.52 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.6495, allocations: 8.031 kB / 469.4 MB, free: 4.512 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001823/0.6513, allocations: 344.1 kB / 469.7 MB, free: 4.172 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005866/0.6572, allocations: 1.921 MB / 471.6 MB, free: 2.297 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002275/0.6575, allocations: 193 kB / 471.8 MB, free: 2.105 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000634/0.6581, allocations: 251.9 kB / 472.1 MB, free: 1.859 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008153/0.6663, allocations: 3.232 MB / 475.3 MB, free: 14.48 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.07e-05/0.6664, allocations: 0 / 475.3 MB, free: 14.48 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003797/0.6668, allocations: 107.9 kB / 475.4 MB, free: 14.37 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001677/0.667, allocations: 120.9 kB / 475.5 MB, free: 14.25 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007181/0.6742, allocations: 2.565 MB / 478.1 MB, free: 11.67 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.023/0.6972, allocations: 10.45 MB / 488.6 MB, free: 0.8711 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003068/0.7003, allocations: 1.421 MB / 490 MB, free: 15.39 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004747/0.7009, allocations: 219.1 kB / 490.2 MB, free: 15.14 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.827e-05/0.7009, allocations: 51.55 kB / 490.2 MB, free: 15.08 MB / 378.7 MB Notification: Performance of pre-optimization done (n=102): time 4.53e-06/0.7009, allocations: 0 / 490.2 MB, free: 15.08 MB / 378.7 MB Notification: Performance of matching and sorting (n=130): time 0.023/0.7239, allocations: 7.299 MB / 497.5 MB, free: 7.656 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.905e-05/0.724, allocations: 68.72 kB / 497.6 MB, free: 7.578 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003558/0.7276, allocations: 1.542 MB / 499.1 MB, free: 6.039 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002716/0.7279, allocations: 45.7 kB / 499.2 MB, free: 5.988 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00122/0.7292, allocations: 1.201 MB / 0.4887 GB, free: 4.773 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006866/0.7299, allocations: 453.5 kB / 0.4891 GB, free: 4.324 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001597/0.73, allocations: 36 kB / 0.4891 GB, free: 4.289 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002719/0.7303, allocations: 370.8 kB / 0.4895 GB, free: 3.918 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001929/0.7323, allocations: 0.8003 MB / 0.4903 GB, free: 3.117 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002519/0.7348, allocations: 1.307 MB / 0.4915 GB, free: 1.574 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002385/0.7372, allocations: 1.021 MB / 0.4925 GB, free: 0.5547 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.336e-05/0.7373, allocations: 4 kB / 0.4925 GB, free: 0.5508 MB / 378.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.005801/0.7431, allocations: 2.406 MB / 0.4949 GB, free: 14.12 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.072e-05/0.7431, allocations: 19.95 kB / 0.4949 GB, free: 14.11 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.267e-05/0.7432, allocations: 16 kB / 0.4949 GB, free: 14.09 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000877/0.7441, allocations: 243.2 kB / 0.4952 GB, free: 13.84 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002226/0.7463, allocations: 439.3 kB / 0.4956 GB, free: 13.41 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003759/0.7501, allocations: 3.025 MB / 0.4985 GB, free: 10.11 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00202/0.7522, allocations: 139.7 kB / 0.4987 GB, free: 9.977 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000206/0.7524, allocations: 72 kB / 0.4987 GB, free: 9.906 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (205): * Single equations (assignments): 201 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002104/0.7545, allocations: 0.8173 MB / 0.4995 GB, free: 9.078 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005709/0.7551, allocations: 189.6 kB / 0.4997 GB, free: 8.891 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005441/0.7605, allocations: 2.129 MB / 0.5018 GB, free: 6.742 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.135e-05/0.7606, allocations: 12 kB / 0.5018 GB, free: 6.73 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.379e-06/0.7606, allocations: 0 / 0.5018 GB, free: 6.73 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.024e-05/0.7607, allocations: 11.98 kB / 0.5018 GB, free: 6.719 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01305/0.7737, allocations: 4.852 MB / 0.5066 GB, free: 1.766 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.055e-05/0.7738, allocations: 0 / 0.5066 GB, free: 1.766 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001667/0.7755, allocations: 287.6 kB / 0.5068 GB, free: 1.484 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000796/0.7763, allocations: 207.5 kB / 0.507 GB, free: 1.27 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001602/0.7765, allocations: 24 kB / 0.5071 GB, free: 1.246 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003715/0.7802, allocations: 3.013 MB / 0.51 GB, free: 13.96 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.667e-06/0.7802, allocations: 7.938 kB / 0.51 GB, free: 13.95 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007511/0.7878, allocations: 3.4 MB / 0.5133 GB, free: 10.45 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001426/0.7892, allocations: 450.7 kB / 0.5138 GB, free: 9.988 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003438/0.7896, allocations: 28 kB / 0.5138 GB, free: 9.961 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001403/0.791, allocations: 91.88 kB / 0.5139 GB, free: 9.871 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002425/0.7913, allocations: 88.77 kB / 0.5139 GB, free: 9.785 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001321/0.7914, allocations: 36 kB / 0.514 GB, free: 9.75 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002823/0.7943, allocations: 1.188 MB / 0.5151 GB, free: 8.57 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.039e-06/0.7943, allocations: 0 / 0.5151 GB, free: 8.57 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002752/0.7971, allocations: 0.5156 MB / 0.5156 GB, free: 8.055 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (128): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000895/0.798, allocations: 414 kB / 0.516 GB, free: 7.641 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005363/0.8034, allocations: 2.406 MB / 0.5184 GB, free: 5.168 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.948e-06/0.8034, allocations: 0 / 0.5184 GB, free: 5.168 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002938/0.8064, allocations: 1.378 MB / 0.5197 GB, free: 3.719 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002963/0.8094, allocations: 455 kB / 0.5202 GB, free: 3.273 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2315/1.041, allocations: 5.903 MB / 0.5259 GB, free: 105.9 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002397/1.043, allocations: 2.024 MB / 0.5279 GB, free: 105.2 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008934/1.044, allocations: 152.8 kB / 0.5281 GB, free: 105.2 MB / 410.7 MB Notification: Performance of SimCode: time 1.683e-06/1.044, allocations: 1.156 kB / 0.5281 GB, free: 105.2 MB / 410.7 MB Notification: Performance of Templates: time 0.0912/1.136, allocations: 79.31 MB / 0.6055 GB, free: 67.91 MB / 410.7 MB