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.904/1.904, allocations: 194.8 MB / 211.6 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003584/0.0003586, allocations: 8 kB / 263.9 MB, free: 13.59 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08195/0.08233, allocations: 44.5 MB / 308.4 MB, free: 1.027 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.01343/0.09582, allocations: 8.921 MB / 317.3 MB, free: 8.07 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008283/0.1041, allocations: 3.52 MB / 320.8 MB, free: 4.539 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002077/0.1063, allocations: 47.75 kB / 320.8 MB, free: 4.492 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002614/0.1089, allocations: 0.6919 MB / 321.5 MB, free: 3.797 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003641/0.1126, allocations: 0.7672 MB / 322.3 MB, free: 3.027 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001577/0.1142, allocations: 303.6 kB / 322.6 MB, free: 2.73 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004423/0.1187, allocations: 1.919 MB / 324.5 MB, free: 0.8086 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003438/0.1221, allocations: 1.8 MB / 326.3 MB, free: 14.98 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001942/0.1241, allocations: 0.9496 MB / 327.3 MB, free: 14.02 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002387/0.1266, allocations: 1.253 MB / 328.5 MB, free: 12.77 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000587/0.1272, allocations: 152 kB / 328.7 MB, free: 12.62 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009995/0.1282, allocations: 227.9 kB / 328.9 MB, free: 12.39 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00119/0.1294, allocations: 0.7634 MB / 329.7 MB, free: 11.63 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001005/0.1304, allocations: 0.5665 MB / 330.2 MB, free: 11.05 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005888/0.1364, allocations: 3.88 MB / 334.1 MB, free: 7.164 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.795e-06/0.1364, allocations: 3.938 kB / 334.1 MB, free: 7.16 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.688e-06/0.1364, allocations: 0 / 334.1 MB, free: 7.16 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001047/0.1365, allocations: 0 / 334.1 MB, free: 7.16 MB / 282.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.007419/0.144, allocations: 2.845 MB / 337 MB, free: 4.254 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/0.144, allocations: 8.031 kB / 337 MB, free: 4.246 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00158/0.1456, allocations: 340.2 kB / 337.3 MB, free: 3.91 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00434/0.15, allocations: 1.643 MB / 338.9 MB, free: 2.211 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002653/0.1503, allocations: 189 kB / 339.1 MB, free: 2.023 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007426/0.1511, allocations: 247.9 kB / 339.4 MB, free: 1.781 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008739/0.1598, allocations: 3.244 MB / 342.6 MB, free: 14.46 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001038/0.16, allocations: 11.84 kB / 342.6 MB, free: 14.45 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003534/0.1603, allocations: 100 kB / 342.7 MB, free: 14.35 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001856/0.1605, allocations: 120.9 kB / 342.8 MB, free: 14.23 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007557/0.1681, allocations: 2.709 MB / 345.5 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02351/0.1917, allocations: 10.46 MB / 356 MB, free: 0.6836 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002697/0.1944, allocations: 1.319 MB / 357.3 MB, free: 15.3 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003798/0.1948, allocations: 207.2 kB / 357.5 MB, free: 15.07 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.307e-05/0.1949, allocations: 43.56 kB / 357.6 MB, free: 15.02 MB / 314.7 MB Notification: Performance of pre-optimization done (n=96): time 4.025e-06/0.1949, allocations: 0 / 357.6 MB, free: 15.02 MB / 314.7 MB Notification: Performance of matching and sorting (n=121): time 0.02125/0.2162, allocations: 7.034 MB / 364.6 MB, free: 7.863 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.507e-05/0.2163, allocations: 68.34 kB / 364.7 MB, free: 7.785 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003539/0.2198, allocations: 1.734 MB / 366.4 MB, free: 6.051 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002103/0.2201, allocations: 45.7 kB / 366.4 MB, free: 6 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001184/0.2213, allocations: 1.209 MB / 367.7 MB, free: 4.777 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005531/0.2218, allocations: 421.9 kB / 368.1 MB, free: 4.359 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001251/0.222, allocations: 32 kB / 368.1 MB, free: 4.328 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002441/0.2222, allocations: 366.8 kB / 368.5 MB, free: 3.961 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001897/0.2242, allocations: 0.7652 MB / 369.2 MB, free: 3.195 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002339/0.2265, allocations: 1.289 MB / 370.5 MB, free: 1.668 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002238/0.2288, allocations: 0.9744 MB / 371.5 MB, free: 0.6953 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.431e-05/0.2288, allocations: 4 kB / 371.5 MB, free: 0.6914 MB / 314.7 MB Notification: Performance of matching and sorting (n=202) (initialization): time 0.2143/0.4431, allocations: 2.329 MB / 373.8 MB, free: 58.63 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.807e-05/0.4432, allocations: 12.78 kB / 373.8 MB, free: 58.63 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.95e-05/0.4433, allocations: 16.31 kB / 373.8 MB, free: 58.63 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008484/0.4441, allocations: 253.9 kB / 374.1 MB, free: 58.59 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00214/0.4463, allocations: 414 kB / 374.5 MB, free: 58.59 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003026/0.4493, allocations: 3.029 MB / 377.5 MB, free: 55.86 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001939/0.4513, allocations: 128.9 kB / 377.7 MB, free: 55.83 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002344/0.4516, allocations: 69.95 kB / 377.7 MB, free: 55.82 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * 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 (197): * Single equations (assignments): 193 * 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.001921/0.4535, allocations: 0.8152 MB / 378.5 MB, free: 55.39 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004853/0.454, allocations: 186.5 kB / 378.7 MB, free: 55.39 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005545/0.4596, allocations: 2.024 MB / 380.7 MB, free: 54.57 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.056e-05/0.4597, allocations: 16.72 kB / 380.8 MB, free: 54.57 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.876e-05/0.4597, allocations: 1.25 kB / 380.8 MB, free: 54.57 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.789e-05/0.4598, allocations: 5.672 kB / 380.8 MB, free: 54.57 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02157/0.4814, allocations: 4.693 MB / 385.5 MB, free: 52.66 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-05/0.4815, allocations: 2.375 kB / 385.5 MB, free: 52.66 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003155/0.4846, allocations: 262.8 kB / 385.7 MB, free: 52.64 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001472/0.4862, allocations: 208.1 kB / 385.9 MB, free: 52.57 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002356/0.4864, allocations: 23.67 kB / 385.9 MB, free: 52.55 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005325/0.4918, allocations: 3.009 MB / 389 MB, free: 49.82 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.987e-06/0.4918, allocations: 3.938 kB / 389 MB, free: 49.82 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01196/0.5038, allocations: 3.095 MB / 392.1 MB, free: 48.55 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002302/0.5062, allocations: 428.3 kB / 392.5 MB, free: 48.32 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007162/0.5069, allocations: 30.02 kB / 392.5 MB, free: 48.3 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002745/0.5097, allocations: 93.11 kB / 392.6 MB, free: 48.29 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004371/0.5102, allocations: 81.36 kB / 392.7 MB, free: 48.27 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002536/0.5105, allocations: 36.38 kB / 392.7 MB, free: 48.27 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.00488/0.5154, allocations: 1.168 MB / 393.9 MB, free: 47.67 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.678e-06/0.5155, allocations: 0 / 393.9 MB, free: 47.67 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.004845/0.5203, allocations: 483.4 kB / 394.3 MB, free: 47.62 MB / 314.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 (119): * Single equations (assignments): 115 * 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.0007629/0.5212, allocations: 161.2 kB / 394.5 MB, free: 47.5 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.008992/0.5302, allocations: 2.328 MB / 396.8 MB, free: 46.16 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.17e-05/0.5303, allocations: 1.031 kB / 396.8 MB, free: 46.16 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004838/0.5351, allocations: 1.321 MB / 398.2 MB, free: 44.78 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005428/0.5406, allocations: 455.8 kB / 398.6 MB, free: 44.34 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01039/0.5511, allocations: 5.854 MB / 404.5 MB, free: 38.44 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00202/0.5532, allocations: 2.016 MB / 406.5 MB, free: 36.39 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007966/0.554, allocations: 151.4 kB / 406.6 MB, free: 36.24 MB / 314.7 MB Notification: Performance of SimCode: time 1.833e-06/0.554, allocations: 0 / 406.6 MB, free: 36.24 MB / 314.7 MB Notification: Performance of Templates: time 0.1122/0.6662, allocations: 77.37 MB / 484 MB, free: 6.781 MB / 362.7 MB