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.DCMachines.DCPM_Start.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.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") Notification: Performance of loadModel(Modelica): time 1.615/1.615, allocations: 171.2 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003481/0.0003484, allocations: 11.98 kB / 233.2 MB, free: 3.055 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0711/0.07148, allocations: 38.76 MB / 271.9 MB, free: 12.2 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.008635/0.08016, allocations: 5.701 MB / 277.6 MB, free: 6.461 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.004718/0.08492, allocations: 2.246 MB / 279.9 MB, free: 4.211 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006997/0.08566, allocations: 16 kB / 279.9 MB, free: 4.195 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00145/0.08713, allocations: 422 kB / 280.3 MB, free: 3.781 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001399/0.08856, allocations: 394.9 kB / 280.7 MB, free: 3.395 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004633/0.08904, allocations: 127.8 kB / 280.8 MB, free: 3.27 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.00182/0.09088, allocations: 0.8624 MB / 281.7 MB, free: 2.406 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007302/0.09164, allocations: 352.6 kB / 282 MB, free: 2.051 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006287/0.09228, allocations: 362.5 kB / 282.4 MB, free: 1.695 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005541/0.09285, allocations: 386.2 kB / 282.8 MB, free: 1.316 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001262/0.09299, allocations: 55.98 kB / 282.8 MB, free: 1.262 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003269/0.09333, allocations: 91.97 kB / 282.9 MB, free: 1.172 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001654/0.09351, allocations: 151.3 kB / 283 MB, free: 1.023 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000258/0.09378, allocations: 217.2 kB / 283.3 MB, free: 0.8047 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001508/0.09531, allocations: 1.095 MB / 284.4 MB, free: 15.71 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.786e-06/0.09533, allocations: 0 / 284.4 MB, free: 15.71 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.772e-06/0.09534, allocations: 0 / 284.4 MB, free: 15.71 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.72e-05/0.09537, allocations: 0 / 284.4 MB, free: 15.71 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.002169/0.09755, allocations: 1.095 MB / 285.4 MB, free: 14.56 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.231e-05/0.09761, allocations: 8.031 kB / 285.5 MB, free: 14.55 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000489/0.09811, allocations: 126.8 kB / 285.6 MB, free: 14.43 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001357/0.09948, allocations: 0.6172 MB / 286.2 MB, free: 13.77 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.907e-05/0.09958, allocations: 58 kB / 286.3 MB, free: 13.71 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001619/0.09975, allocations: 83.91 kB / 286.3 MB, free: 13.63 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001856/0.1016, allocations: 0.7793 MB / 287.1 MB, free: 12.82 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.905e-05/0.1017, allocations: 4 kB / 287.1 MB, free: 12.82 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.297e-05/0.1018, allocations: 32 kB / 287.2 MB, free: 12.79 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.716e-05/0.1018, allocations: 20 kB / 287.2 MB, free: 12.77 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00148/0.1033, allocations: 0.5309 MB / 287.7 MB, free: 12.23 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00582/0.1092, allocations: 3.36 MB / 291.1 MB, free: 8.668 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006467/0.1098, allocations: 226.5 kB / 291.3 MB, free: 8.438 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.23e-05/0.1099, allocations: 7.938 kB / 291.3 MB, free: 8.43 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.383e-05/0.11, allocations: 42.52 kB / 291.3 MB, free: 8.379 MB / 250.7 MB Notification: Performance of pre-optimization done (n=25): time 2.923e-06/0.11, allocations: 0 / 291.3 MB, free: 8.379 MB / 250.7 MB Notification: Performance of matching and sorting (n=28): time 0.002759/0.1127, allocations: 1.072 MB / 292.4 MB, free: 7.234 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.391e-05/0.1128, allocations: 89.05 kB / 292.5 MB, free: 7.129 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001234/0.1141, allocations: 0.6763 MB / 293.2 MB, free: 6.449 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.754e-05/0.1142, allocations: 33.7 kB / 293.2 MB, free: 6.41 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004492/0.1146, allocations: 0.5084 MB / 293.7 MB, free: 5.895 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001222/0.1148, allocations: 110.5 kB / 293.8 MB, free: 5.785 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.484e-05/0.1148, allocations: 8 kB / 293.8 MB, free: 5.777 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001913/0.115, allocations: 338.8 kB / 294.2 MB, free: 5.438 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004054/0.1154, allocations: 125.2 kB / 294.3 MB, free: 5.316 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006386/0.1161, allocations: 426.2 kB / 294.7 MB, free: 4.762 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005043/0.1166, allocations: 196.1 kB / 294.9 MB, free: 4.57 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.427e-05/0.1166, allocations: 11.94 kB / 294.9 MB, free: 4.559 MB / 250.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.00142/0.1181, allocations: 0.5644 MB / 295.5 MB, free: 3.984 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.059e-05/0.1181, allocations: 15.98 kB / 295.5 MB, free: 3.969 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.94e-05/0.1181, allocations: 8.5 kB / 295.5 MB, free: 3.961 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001903/0.1183, allocations: 36.86 kB / 295.5 MB, free: 3.922 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005945/0.119, allocations: 143.7 kB / 295.7 MB, free: 3.781 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001428/0.1204, allocations: 1.299 MB / 297 MB, free: 2.348 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006639/0.1211, allocations: 31.98 kB / 297 MB, free: 2.316 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.618e-05/0.1212, allocations: 28 kB / 297 MB, free: 2.289 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (73): * Single equations (assignments): 72 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005207/0.1217, allocations: 249.7 kB / 297.3 MB, free: 2.035 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001543/0.1219, allocations: 75.06 kB / 297.3 MB, free: 1.961 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009689/0.1229, allocations: 337.4 kB / 297.7 MB, free: 1.617 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.879e-06/0.1229, allocations: 4 kB / 297.7 MB, free: 1.613 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.164e-06/0.1229, allocations: 0 / 297.7 MB, free: 1.613 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/0.1229, allocations: 0 / 297.7 MB, free: 1.613 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002398/0.1253, allocations: 1.083 MB / 298.8 MB, free: 464 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.621e-06/0.1254, allocations: 4 kB / 298.8 MB, free: 460 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003589/0.1257, allocations: 63.91 kB / 298.8 MB, free: 396 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001368/0.1259, allocations: 24.84 kB / 298.8 MB, free: 368 kB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.917e-05/0.1259, allocations: 8 kB / 298.9 MB, free: 360 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1764/0.3023, allocations: 1.271 MB / 300.1 MB, free: 28.62 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.27e-06/0.3024, allocations: 6.188 kB / 300.1 MB, free: 28.62 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001285/0.3037, allocations: 0.5737 MB / 300.7 MB, free: 28.43 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002725/0.304, allocations: 167.1 kB / 300.9 MB, free: 28.34 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000106/0.3041, allocations: 8.531 kB / 300.9 MB, free: 28.34 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004137/0.3045, allocations: 28.25 kB / 300.9 MB, free: 28.34 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.204e-05/0.3046, allocations: 27.94 kB / 300.9 MB, free: 28.34 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.687e-05/0.3046, allocations: 14.8 kB / 300.9 MB, free: 28.34 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0008364/0.3055, allocations: 467.9 kB / 301.4 MB, free: 28.24 MB / 250.7 MB Notification: Performance of sort global known variables: time 8.21e-07/0.3055, allocations: 0 / 301.4 MB, free: 28.24 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0009051/0.3064, allocations: 157.3 kB / 301.6 MB, free: 28.24 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,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 (27): * Single equations (assignments): 26 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001991/0.3066, allocations: 118.8 kB / 301.7 MB, free: 28.15 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.001163/0.3078, allocations: 473.4 kB / 302.1 MB, free: 28.03 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.3078, allocations: 0 / 302.1 MB, free: 28.03 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004652/0.3083, allocations: 256.1 kB / 302.4 MB, free: 27.91 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001048/0.3094, allocations: 166.6 kB / 302.5 MB, free: 27.9 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002987/0.3124, allocations: 1.782 MB / 304.3 MB, free: 26.89 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005631/0.313, allocations: 0.9603 MB / 305.3 MB, free: 26.17 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001726/0.3132, allocations: 47.47 kB / 305.3 MB, free: 26.16 MB / 250.7 MB Notification: Performance of SimCode: time 2.326e-06/0.3132, allocations: 0 / 305.3 MB, free: 26.16 MB / 250.7 MB Notification: Performance of Templates: time 0.02064/0.3338, allocations: 12.61 MB / 317.9 MB, free: 20.94 MB / 250.7 MB