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_Inverter.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_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.idq_dr.1.|smpm.idq_rr.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter") Notification: Performance of loadModel(Modelica): time 1.667/1.667, allocations: 171.2 MB / 186.7 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003611/0.0003612, allocations: 12 kB / 233.2 MB, free: 3.062 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0739/0.07428, allocations: 38.77 MB / 271.9 MB, free: 12.21 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter): time 0.01691/0.09125, allocations: 8.364 MB / 280.3 MB, free: 3.801 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.007539/0.09883, allocations: 3.295 MB / 283.6 MB, free: 0.5 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001825/0.1007, allocations: 39.81 kB / 283.6 MB, free: 472 kB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002397/0.1031, allocations: 0.6414 MB / 284.3 MB, free: 15.82 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003191/0.1064, allocations: 0.7205 MB / 285 MB, free: 15.09 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001186/0.1076, allocations: 275.5 kB / 285.3 MB, free: 14.82 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003841/0.1114, allocations: 1.81 MB / 287.1 MB, free: 13.01 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002693/0.1142, allocations: 1.54 MB / 288.6 MB, free: 11.44 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001745/0.1159, allocations: 0.8951 MB / 289.5 MB, free: 10.54 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00176/0.1177, allocations: 1.101 MB / 290.6 MB, free: 9.434 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003752/0.1181, allocations: 136 kB / 290.7 MB, free: 9.301 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006776/0.1188, allocations: 211.9 kB / 290.9 MB, free: 9.094 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009916/0.1198, allocations: 0.6738 MB / 291.6 MB, free: 8.418 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006817/0.1205, allocations: 0.5159 MB / 292.1 MB, free: 7.895 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005114/0.1257, allocations: 3.428 MB / 295.6 MB, free: 4.457 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.813e-06/0.1257, allocations: 0 / 295.6 MB, free: 4.457 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.967e-06/0.1257, allocations: 4 kB / 295.6 MB, free: 4.453 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.429e-05/0.1258, allocations: 0 / 295.6 MB, free: 4.453 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: 580 * Number of variables: 580 Notification: Performance of Generate backend data structure: time 0.006478/0.1323, allocations: 2.562 MB / 298.1 MB, free: 1.828 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.523e-05/0.1324, allocations: 11.97 kB / 298.1 MB, free: 1.816 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001306/0.1337, allocations: 308.6 kB / 298.4 MB, free: 1.512 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003884/0.1376, allocations: 1.422 MB / 299.9 MB, free: 32 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.2593/0.3969, allocations: 163.4 kB / 300 MB, free: 28.66 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001402/0.3984, allocations: 217.6 kB / 300.2 MB, free: 28.66 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009533/0.408, allocations: 2.894 MB / 303.1 MB, free: 27.77 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-05/0.4082, allocations: 10.36 kB / 303.1 MB, free: 27.77 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002568/0.4084, allocations: 87.83 kB / 303.2 MB, free: 27.7 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001639/0.4086, allocations: 112.2 kB / 303.3 MB, free: 27.69 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006629/0.4153, allocations: 2.417 MB / 305.8 MB, free: 26.84 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01817/0.4335, allocations: 9.036 MB / 314.8 MB, free: 21.11 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002739/0.4363, allocations: 1.686 MB / 316.5 MB, free: 19.91 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002613/0.4365, allocations: 120.8 kB / 316.6 MB, free: 19.81 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.808e-05/0.4366, allocations: 43.5 kB / 316.6 MB, free: 19.76 MB / 250.7 MB Notification: Performance of pre-optimization done (n=103): time 5.369e-06/0.4366, allocations: 0 / 316.6 MB, free: 19.76 MB / 250.7 MB Notification: Performance of matching and sorting (n=123): time 0.01919/0.4558, allocations: 7.331 MB / 324 MB, free: 14.18 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.672e-05/0.4559, allocations: 64.41 kB / 324 MB, free: 14.11 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002316/0.4582, allocations: 1.435 MB / 325.5 MB, free: 12.66 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002001/0.4585, allocations: 45.7 kB / 325.5 MB, free: 12.61 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005943/0.4591, allocations: 1.047 MB / 326.6 MB, free: 11.55 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003858/0.4595, allocations: 438.9 kB / 327 MB, free: 11.13 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001109/0.4596, allocations: 28 kB / 327 MB, free: 11.1 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.4597, allocations: 370.8 kB / 327.4 MB, free: 10.73 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001543/0.4613, allocations: 0.7418 MB / 328.1 MB, free: 9.988 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001733/0.463, allocations: 1.169 MB / 329.3 MB, free: 8.645 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001997/0.4651, allocations: 0.9304 MB / 330.2 MB, free: 7.715 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.7e-05/0.4651, allocations: 4 kB / 330.2 MB, free: 7.711 MB / 250.7 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.00541/0.4705, allocations: 2.505 MB / 332.7 MB, free: 5.188 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.172e-05/0.4706, allocations: 9.969 kB / 332.7 MB, free: 5.18 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.396e-05/0.4707, allocations: 16.28 kB / 332.8 MB, free: 5.164 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001632/0.4723, allocations: 0.5489 MB / 333.3 MB, free: 4.605 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001635/0.474, allocations: 343.5 kB / 333.6 MB, free: 4.27 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009805/0.4838, allocations: 6.504 MB / 340.1 MB, free: 13.51 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001575/0.4854, allocations: 111.9 kB / 340.3 MB, free: 13.4 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001662/0.4856, allocations: 64 kB / 340.3 MB, free: 13.34 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * 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 (165): * Single equations (assignments): 162 * 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 {(6,72.2%) 20,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001697/0.4873, allocations: 0.7162 MB / 341 MB, free: 12.61 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004502/0.4878, allocations: 169.9 kB / 341.2 MB, free: 12.44 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005773/0.4935, allocations: 2.305 MB / 343.5 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.153e-05/0.4936, allocations: 15.94 kB / 343.5 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.241e-05/0.4936, allocations: 9.594 kB / 343.5 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.346e-05/0.4937, allocations: 7.969 kB / 343.5 MB, free: 10.08 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01188/0.5056, allocations: 4.792 MB / 348.3 MB, free: 5.207 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.211e-05/0.5056, allocations: 0 / 348.3 MB, free: 5.207 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001325/0.507, allocations: 211.7 kB / 348.5 MB, free: 5 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002207/0.5092, allocations: 0.5802 MB / 349.1 MB, free: 4.41 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001938/0.5094, allocations: 35.98 kB / 349.1 MB, free: 4.375 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01328/0.5227, allocations: 7.993 MB / 357.1 MB, free: 11.98 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.07e-05/0.5227, allocations: 7.938 kB / 357.1 MB, free: 11.98 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007972/0.5307, allocations: 3.328 MB / 360.5 MB, free: 8.602 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001204/0.532, allocations: 394.9 kB / 360.9 MB, free: 8.195 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003257/0.5323, allocations: 31.98 kB / 360.9 MB, free: 8.164 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001191/0.5335, allocations: 95.86 kB / 361 MB, free: 8.07 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003198/0.5339, allocations: 88.86 kB / 361.1 MB, free: 7.984 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001242/0.534, allocations: 43.92 kB / 361.1 MB, free: 7.941 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.002103/0.5361, allocations: 0.9681 MB / 362.1 MB, free: 6.977 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.216e-06/0.5362, allocations: 4 kB / 362.1 MB, free: 6.973 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.002423/0.5386, allocations: 0.4921 MB / 362.6 MB, free: 6.48 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],vfController.x,loadInertia.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 (100): * Single equations (assignments): 97 * 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 {(6,72.2%) 20,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004512/0.5391, allocations: 151.1 kB / 362.7 MB, free: 6.324 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.00554/0.5447, allocations: 2.329 MB / 365.1 MB, free: 3.949 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.113e-05/0.5447, allocations: 4 kB / 365.1 MB, free: 3.945 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003717/0.5484, allocations: 1.478 MB / 366.5 MB, free: 2.43 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002574/0.551, allocations: 432.1 kB / 367 MB, free: 2.012 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01167/0.5627, allocations: 5.59 MB / 372.6 MB, free: 12.36 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002632/0.5654, allocations: 1.886 MB / 374.4 MB, free: 10.44 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006986/0.5662, allocations: 119.4 kB / 374.6 MB, free: 10.32 MB / 298.7 MB Notification: Performance of SimCode: time 2.02e-06/0.5662, allocations: 0 / 374.6 MB, free: 10.32 MB / 298.7 MB Notification: Performance of Templates: time 0.28/0.8462, allocations: 58.26 MB / 432.8 MB, free: 115.2 MB / 346.7 MB