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.628/1.628, allocations: 171.2 MB / 186.7 MB, free: 1.035 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005972/0.0005976, allocations: 8 kB / 233.2 MB, free: 3.043 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0725/0.07313, allocations: 38.77 MB / 271.9 MB, free: 12.19 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.01478/0.08795, allocations: 8.918 MB / 280.8 MB, free: 3.23 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.007913/0.09591, allocations: 3.416 MB / 284.3 MB, free: 15.81 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00206/0.09802, allocations: 51.69 kB / 284.3 MB, free: 15.76 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003594/0.1016, allocations: 0.6802 MB / 285 MB, free: 15.07 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004773/0.1065, allocations: 0.7477 MB / 285.7 MB, free: 14.32 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001652/0.1082, allocations: 303.6 kB / 286 MB, free: 14.03 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003941/0.1122, allocations: 1.919 MB / 288 MB, free: 12.11 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003122/0.1153, allocations: 1.812 MB / 289.8 MB, free: 10.25 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001755/0.1171, allocations: 0.9691 MB / 290.7 MB, free: 9.281 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001848/0.119, allocations: 1.19 MB / 291.9 MB, free: 8.086 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004211/0.1194, allocations: 156 kB / 292.1 MB, free: 7.934 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007478/0.1202, allocations: 219.9 kB / 292.3 MB, free: 7.719 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001122/0.1213, allocations: 0.7712 MB / 293.1 MB, free: 6.945 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008092/0.1221, allocations: 0.5627 MB / 293.6 MB, free: 6.375 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005276/0.1274, allocations: 3.799 MB / 297.4 MB, free: 2.566 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.086e-06/0.1275, allocations: 0 / 297.4 MB, free: 2.566 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.039e-06/0.1275, allocations: 0 / 297.4 MB, free: 2.566 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.588e-05/0.1276, allocations: 0 / 297.4 MB, free: 2.566 MB / 250.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.1822/0.3098, allocations: 2.798 MB / 300.2 MB, free: 27.77 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/0.3098, allocations: 9.438 kB / 300.2 MB, free: 27.77 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001257/0.3111, allocations: 335 kB / 300.6 MB, free: 27.61 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003761/0.3149, allocations: 1.548 MB / 302.1 MB, free: 27.12 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002029/0.3151, allocations: 191.2 kB / 302.3 MB, free: 27.04 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000554/0.3157, allocations: 250.4 kB / 302.5 MB, free: 26.96 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007858/0.3236, allocations: 3.251 MB / 305.8 MB, free: 25.63 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.653e-05/0.3237, allocations: 11.31 kB / 305.8 MB, free: 25.62 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002884/0.324, allocations: 100.8 kB / 305.9 MB, free: 25.55 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001684/0.3242, allocations: 126.5 kB / 306 MB, free: 25.53 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006894/0.3311, allocations: 2.709 MB / 308.7 MB, free: 24.55 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01889/0.35, allocations: 10.38 MB / 319.1 MB, free: 17.32 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002179/0.3523, allocations: 1.312 MB / 320.4 MB, free: 16.48 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002627/0.3526, allocations: 123.1 kB / 320.5 MB, free: 16.38 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.609e-05/0.3526, allocations: 43.19 kB / 320.6 MB, free: 16.33 MB / 250.7 MB Notification: Performance of pre-optimization done (n=95): time 4.681e-06/0.3526, allocations: 4 kB / 320.6 MB, free: 16.33 MB / 250.7 MB Notification: Performance of matching and sorting (n=120): time 0.01708/0.3697, allocations: 6.856 MB / 327.4 MB, free: 9.852 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.393e-05/0.3698, allocations: 68.34 kB / 327.5 MB, free: 9.773 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002444/0.3722, allocations: 1.604 MB / 329.1 MB, free: 8.168 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001775/0.3724, allocations: 45.7 kB / 329.2 MB, free: 8.117 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006447/0.3731, allocations: 1.199 MB / 330.4 MB, free: 6.91 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003396/0.3734, allocations: 419.2 kB / 330.8 MB, free: 6.504 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001096/0.3736, allocations: 36 kB / 330.8 MB, free: 6.469 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001122/0.3737, allocations: 370.8 kB / 331.2 MB, free: 6.098 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001375/0.3751, allocations: 0.7652 MB / 331.9 MB, free: 5.332 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001555/0.3767, allocations: 1.277 MB / 333.2 MB, free: 3.828 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001628/0.3783, allocations: 0.9751 MB / 334.2 MB, free: 2.852 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.946e-06/0.3783, allocations: 4 kB / 334.2 MB, free: 2.848 MB / 250.7 MB Notification: Performance of matching and sorting (n=201) (initialization): time 0.004216/0.3826, allocations: 2.327 MB / 336.5 MB, free: 0.5 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.011e-05/0.3826, allocations: 12 kB / 336.5 MB, free: 500 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.259e-05/0.3826, allocations: 16 kB / 336.5 MB, free: 484 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007193/0.3834, allocations: 247.7 kB / 336.8 MB, free: 224 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001826/0.3852, allocations: 416.8 kB / 337.2 MB, free: 15.81 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003691/0.3889, allocations: 3.046 MB / 340.2 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001735/0.3907, allocations: 123.8 kB / 340.4 MB, free: 12.38 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001836/0.3909, allocations: 71.98 kB / 340.4 MB, free: 12.3 MB / 266.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 (196): * Single equations (assignments): 192 * 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.001879/0.3928, allocations: 0.8267 MB / 341.3 MB, free: 11.47 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004465/0.3933, allocations: 185.6 kB / 341.4 MB, free: 11.29 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004545/0.3978, allocations: 2.015 MB / 343.5 MB, free: 9.25 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.106e-05/0.3979, allocations: 12 kB / 343.5 MB, free: 9.238 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-05/0.3979, allocations: 4 kB / 343.5 MB, free: 9.234 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.746e-05/0.3979, allocations: 3.984 kB / 343.5 MB, free: 9.23 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01048/0.4084, allocations: 4.634 MB / 348.1 MB, free: 4.523 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.01e-05/0.4085, allocations: 0 / 348.1 MB, free: 4.523 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001432/0.4099, allocations: 259.6 kB / 348.4 MB, free: 4.27 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007497/0.4107, allocations: 203.5 kB / 348.6 MB, free: 4.059 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001101/0.4108, allocations: 24 kB / 348.6 MB, free: 4.035 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0036/0.4144, allocations: 2.999 MB / 351.6 MB, free: 0.7695 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.414e-06/0.4145, allocations: 4.062 kB / 351.6 MB, free: 0.7656 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006422/0.4209, allocations: 3.089 MB / 354.7 MB, free: 13.62 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001145/0.4221, allocations: 414.7 kB / 355.1 MB, free: 13.19 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00032/0.4224, allocations: 24 kB / 355.1 MB, free: 13.17 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001073/0.4235, allocations: 91.94 kB / 355.2 MB, free: 13.08 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002132/0.4237, allocations: 84.78 kB / 355.3 MB, free: 13 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001116/0.4239, allocations: 32 kB / 355.3 MB, free: 12.96 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.002166/0.426, allocations: 1.078 MB / 356.4 MB, free: 11.89 MB / 282.7 MB Notification: Performance of sort global known variables: time 9.01e-07/0.4261, allocations: 3.938 kB / 356.4 MB, free: 11.89 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.002039/0.4281, allocations: 482.9 kB / 356.9 MB, free: 11.42 MB / 282.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 (118): * Single equations (assignments): 114 * 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.000377/0.4285, allocations: 155.2 kB / 357 MB, free: 11.26 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.004879/0.4334, allocations: 2.323 MB / 359.3 MB, free: 8.871 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.454e-06/0.4334, allocations: 0 / 359.3 MB, free: 8.871 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00261/0.4361, allocations: 1.32 MB / 360.7 MB, free: 7.484 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002505/0.4386, allocations: 429.3 kB / 361.1 MB, free: 7.066 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01137/0.45, allocations: 5.738 MB / 366.8 MB, free: 1.262 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002624/0.4527, allocations: 2.011 MB / 368.8 MB, free: 15.22 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007495/0.4534, allocations: 135.4 kB / 369 MB, free: 15.09 MB / 298.7 MB Notification: Performance of SimCode: time 1.769e-06/0.4535, allocations: 0 / 369 MB, free: 15.09 MB / 298.7 MB Notification: Performance of Templates: time 0.3032/0.7567, allocations: 75.91 MB / 444.9 MB, free: 110.6 MB / 346.7 MB