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_CurrentSource.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_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource") Notification: Performance of loadModel(Modelica): time 1.746/1.746, allocations: 171.2 MB / 186.8 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003598/0.0003599, allocations: 12 kB / 233.3 MB, free: 3.004 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07775/0.07814, allocations: 38.76 MB / 272 MB, free: 12.16 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3562/0.4344, allocations: 99.74 MB / 371.8 MB, free: 6.598 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002712/0.4347, allocations: 88.14 kB / 371.8 MB, free: 6.551 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2913/0.726, allocations: 51.17 MB / 423 MB, free: 8.766 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.597e-06/0.7261, allocations: 0 / 423 MB, free: 8.766 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002516/0.7263, allocations: 67.94 kB / 423.1 MB, free: 8.699 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.008666/0.735, allocations: 2.806 MB / 425.9 MB, free: 5.832 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/0.7351, allocations: 15.98 kB / 425.9 MB, free: 5.816 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001597/0.7367, allocations: 344.2 kB / 426.2 MB, free: 5.477 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005119/0.7418, allocations: 1.747 MB / 428 MB, free: 3.672 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002491/0.7421, allocations: 185 kB / 428.2 MB, free: 3.488 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007954/0.7429, allocations: 251.9 kB / 428.4 MB, free: 3.242 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2043/0.9472, allocations: 3.239 MB / 431.6 MB, free: 78.12 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000161/0.9474, allocations: 4.375 kB / 431.6 MB, free: 78.12 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005878/0.948, allocations: 104.7 kB / 431.8 MB, free: 78.12 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001838/0.9482, allocations: 116.8 kB / 431.9 MB, free: 78.11 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007379/0.9556, allocations: 2.576 MB / 434.4 MB, free: 78.08 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02259/0.9782, allocations: 10.36 MB / 444.8 MB, free: 75.46 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002615/0.9809, allocations: 1.408 MB / 446.2 MB, free: 75.16 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003397/0.9813, allocations: 138.6 kB / 446.3 MB, free: 75.06 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.818e-05/0.9813, allocations: 48.09 kB / 446.4 MB, free: 75.02 MB / 346.7 MB Notification: Performance of pre-optimization done (n=101): time 4.392e-06/0.9813, allocations: 0 / 446.4 MB, free: 75.02 MB / 346.7 MB Notification: Performance of matching and sorting (n=129): time 0.01883/1, allocations: 6.986 MB / 453.4 MB, free: 74.03 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.355e-05/1, allocations: 66.34 kB / 453.4 MB, free: 73.96 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002538/1.003, allocations: 1.422 MB / 454.9 MB, free: 73.8 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002307/1.003, allocations: 47.14 kB / 454.9 MB, free: 73.77 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006885/1.004, allocations: 1.186 MB / 456.1 MB, free: 73.21 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004096/1.004, allocations: 455.1 kB / 456.5 MB, free: 72.93 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001301/1.004, allocations: 33.38 kB / 456.6 MB, free: 72.93 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001411/1.005, allocations: 377.1 kB / 456.9 MB, free: 72.62 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001562/1.006, allocations: 0.796 MB / 457.7 MB, free: 72.61 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001694/1.008, allocations: 1.303 MB / 459 MB, free: 71.88 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001814/1.01, allocations: 1.014 MB / 460.1 MB, free: 71.48 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.118e-05/1.01, allocations: 4.781 kB / 460.1 MB, free: 71.48 MB / 346.7 MB Notification: Performance of matching and sorting (n=209) (initialization): time 0.004687/1.014, allocations: 2.403 MB / 462.5 MB, free: 70.63 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.299e-05/1.014, allocations: 15.61 kB / 462.5 MB, free: 70.63 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.684e-05/1.014, allocations: 15.81 kB / 462.5 MB, free: 70.63 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007381/1.015, allocations: 250.2 kB / 462.7 MB, free: 70.55 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002072/1.017, allocations: 438.4 kB / 463.2 MB, free: 70.54 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002618/1.02, allocations: 3.036 MB / 466.2 MB, free: 67.8 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001851/1.022, allocations: 127.6 kB / 466.3 MB, free: 67.77 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001914/1.022, allocations: 74.47 kB / 466.4 MB, free: 67.76 MB / 346.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 (204): * Single equations (assignments): 200 * 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.001825/1.024, allocations: 0.8258 MB / 467.2 MB, free: 67.33 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000447/1.024, allocations: 190.5 kB / 467.4 MB, free: 67.23 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004104/1.028, allocations: 2.112 MB / 469.5 MB, free: 66.37 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.645e-05/1.029, allocations: 10.62 kB / 469.5 MB, free: 66.37 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.388e-06/1.029, allocations: 8.953 kB / 469.5 MB, free: 66.37 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.885e-05/1.029, allocations: 7.547 kB / 469.5 MB, free: 66.37 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01025/1.039, allocations: 4.786 MB / 474.3 MB, free: 64.4 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.097e-05/1.039, allocations: 2.344 kB / 474.3 MB, free: 64.4 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001468/1.04, allocations: 284.6 kB / 474.6 MB, free: 64.39 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006871/1.041, allocations: 202.2 kB / 474.8 MB, free: 64.33 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001233/1.041, allocations: 31.78 kB / 474.8 MB, free: 64.31 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002469/1.044, allocations: 3.005 MB / 477.8 MB, free: 61.58 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.192e-06/1.044, allocations: 5.906 kB / 477.9 MB, free: 61.58 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005785/1.05, allocations: 3.391 MB / 481.2 MB, free: 59.95 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001163/1.051, allocations: 427.1 kB / 481.7 MB, free: 59.68 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003005/1.051, allocations: 24.97 kB / 481.7 MB, free: 59.66 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001129/1.052, allocations: 96.2 kB / 481.8 MB, free: 59.64 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002102/1.052, allocations: 91.27 kB / 481.9 MB, free: 59.62 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001318/1.053, allocations: 36.84 kB / 481.9 MB, free: 59.62 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002055/1.055, allocations: 1.086 MB / 483 MB, free: 59.21 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.132e-06/1.055, allocations: 0 / 483 MB, free: 59.21 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00239/1.057, allocations: 0.5241 MB / 483.5 MB, free: 59.15 MB / 346.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 (127): * Single equations (assignments): 123 * 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.0006577/1.058, allocations: 397.2 kB / 483.9 MB, free: 59.01 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.004397/1.062, allocations: 2.406 MB / 486.3 MB, free: 57.91 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.689e-06/1.062, allocations: 4.188 kB / 486.3 MB, free: 57.9 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002411/1.065, allocations: 1.367 MB / 487.7 MB, free: 57.15 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00254/1.067, allocations: 433.6 kB / 488.1 MB, free: 57.02 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009343/1.077, allocations: 5.809 MB / 493.9 MB, free: 53.77 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001919/1.079, allocations: 2.017 MB / 495.9 MB, free: 52.82 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007701/1.079, allocations: 140.8 kB / 496.1 MB, free: 52.81 MB / 346.7 MB Notification: Performance of SimCode: time 1.68e-06/1.079, allocations: 0 / 496.1 MB, free: 52.81 MB / 346.7 MB Notification: Performance of Templates: time 0.2907/1.37, allocations: 77.81 MB / 0.5604 GB, free: 90.38 MB / 362.7 MB