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.DCMachines.DCPM_Start.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.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") Notification: Performance of loadModel(Modelica): time 1.833/1.833, allocations: 194.8 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003627/0.0003628, allocations: 8 kB / 263.9 MB, free: 13.59 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08012/0.08051, allocations: 44.51 MB / 308.4 MB, free: 1.016 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.009188/0.08973, allocations: 5.701 MB / 314.1 MB, free: 11.29 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004924/0.0947, allocations: 2.258 MB / 316.3 MB, free: 9.02 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008779/0.09562, allocations: 19.94 kB / 316.3 MB, free: 9 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001444/0.09708, allocations: 426 kB / 316.8 MB, free: 8.582 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001372/0.09848, allocations: 398.9 kB / 317.1 MB, free: 8.191 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004989/0.099, allocations: 127.8 kB / 317.3 MB, free: 8.066 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00173/0.1007, allocations: 0.8506 MB / 318.1 MB, free: 7.215 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007059/0.1015, allocations: 356.9 kB / 318.5 MB, free: 6.852 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006029/0.1021, allocations: 358.6 kB / 318.8 MB, free: 6.5 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005519/0.1027, allocations: 394.1 kB / 319.2 MB, free: 6.113 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001199/0.1028, allocations: 52 kB / 319.3 MB, free: 6.062 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003223/0.1031, allocations: 91.97 kB / 319.3 MB, free: 5.973 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001661/0.1033, allocations: 147.4 kB / 319.5 MB, free: 5.828 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002646/0.1036, allocations: 217.2 kB / 319.7 MB, free: 5.609 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001522/0.1051, allocations: 1.094 MB / 320.8 MB, free: 4.512 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.393e-06/0.1051, allocations: 4 kB / 320.8 MB, free: 4.508 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.123e-06/0.1052, allocations: 0 / 320.8 MB, free: 4.508 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.506e-05/0.1052, allocations: 0 / 320.8 MB, free: 4.508 MB / 266.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.002094/0.1073, allocations: 1.091 MB / 321.9 MB, free: 3.367 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.401e-05/0.1073, allocations: 8.031 kB / 321.9 MB, free: 3.359 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004704/0.1078, allocations: 138.7 kB / 322 MB, free: 3.223 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00128/0.1091, allocations: 0.6134 MB / 322.6 MB, free: 2.566 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.88e-05/0.1092, allocations: 58 kB / 322.7 MB, free: 2.512 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001599/0.1094, allocations: 83.91 kB / 322.8 MB, free: 2.43 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001851/0.1112, allocations: 0.7793 MB / 323.6 MB, free: 1.617 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.313e-05/0.1113, allocations: 7.938 kB / 323.6 MB, free: 1.609 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.945e-05/0.1114, allocations: 28 kB / 323.6 MB, free: 1.582 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.352e-05/0.1115, allocations: 20 kB / 323.6 MB, free: 1.562 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00151/0.113, allocations: 0.5231 MB / 324.1 MB, free: 1.039 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006069/0.1191, allocations: 3.368 MB / 327.5 MB, free: 13.46 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006582/0.1198, allocations: 234.5 kB / 327.7 MB, free: 13.22 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.045e-05/0.1198, allocations: 3.984 kB / 327.7 MB, free: 13.22 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.528e-05/0.1199, allocations: 38.56 kB / 327.8 MB, free: 13.17 MB / 282.7 MB Notification: Performance of pre-optimization done (n=25): time 3.503e-06/0.1199, allocations: 0 / 327.8 MB, free: 13.17 MB / 282.7 MB Notification: Performance of matching and sorting (n=28): time 0.002792/0.1227, allocations: 1.078 MB / 328.9 MB, free: 12.02 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.796e-05/0.1228, allocations: 77.11 kB / 328.9 MB, free: 11.93 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00123/0.124, allocations: 0.6918 MB / 329.6 MB, free: 11.23 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.334e-05/0.1241, allocations: 25.7 kB / 329.7 MB, free: 11.2 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004667/0.1246, allocations: 0.5123 MB / 330.2 MB, free: 10.68 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001214/0.1247, allocations: 110.5 kB / 330.3 MB, free: 10.57 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.242e-05/0.1248, allocations: 16 kB / 330.3 MB, free: 10.55 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001874/0.125, allocations: 334.8 kB / 330.6 MB, free: 10.22 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004138/0.1254, allocations: 129.2 kB / 330.7 MB, free: 10.09 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006453/0.126, allocations: 422.2 kB / 331.2 MB, free: 9.543 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005163/0.1266, allocations: 199.9 kB / 331.3 MB, free: 9.348 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.014e-06/0.1266, allocations: 4 kB / 331.4 MB, free: 9.344 MB / 282.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001439/0.1281, allocations: 0.5685 MB / 331.9 MB, free: 8.766 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.812e-05/0.1281, allocations: 8 kB / 331.9 MB, free: 8.758 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.02e-05/0.1281, allocations: 8 kB / 331.9 MB, free: 8.75 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001898/0.1283, allocations: 37.19 kB / 332 MB, free: 8.711 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005854/0.1289, allocations: 151.8 kB / 332.1 MB, free: 8.562 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001423/0.1304, allocations: 1.292 MB / 333.4 MB, free: 7.137 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006362/0.131, allocations: 39.89 kB / 333.5 MB, free: 7.098 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.013e-05/0.1311, allocations: 32 kB / 333.5 MB, free: 7.066 MB / 282.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.0004918/0.1316, allocations: 237.7 kB / 333.7 MB, free: 6.824 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001403/0.1318, allocations: 71.16 kB / 333.8 MB, free: 6.754 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009108/0.1327, allocations: 337.9 kB / 334.1 MB, free: 6.414 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.03e-05/0.1327, allocations: 7.953 kB / 334.1 MB, free: 6.406 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.954e-06/0.1327, allocations: 0 / 334.1 MB, free: 6.406 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.478e-06/0.1328, allocations: 3.984 kB / 334.1 MB, free: 6.402 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002321/0.1351, allocations: 1.077 MB / 335.2 MB, free: 5.246 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.612e-06/0.1351, allocations: 8 kB / 335.2 MB, free: 5.238 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003631/0.1355, allocations: 59.95 kB / 335.3 MB, free: 5.18 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001339/0.1357, allocations: 20.86 kB / 335.3 MB, free: 5.156 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.953e-05/0.1357, allocations: 11.94 kB / 335.3 MB, free: 5.145 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001345/0.1371, allocations: 1.28 MB / 336.6 MB, free: 3.727 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.587e-06/0.1371, allocations: 8.016 kB / 336.6 MB, free: 3.719 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00129/0.1384, allocations: 0.5716 MB / 337.2 MB, free: 3.105 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003384/0.1387, allocations: 168.3 kB / 337.3 MB, free: 2.922 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001038/0.1389, allocations: 12 kB / 337.3 MB, free: 2.91 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003952/0.1393, allocations: 19.98 kB / 337.4 MB, free: 2.891 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.59e-05/0.1394, allocations: 27.92 kB / 337.4 MB, free: 2.863 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.431e-05/0.1394, allocations: 8 kB / 337.4 MB, free: 2.855 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0008423/0.1403, allocations: 471 kB / 337.9 MB, free: 2.398 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.002e-06/0.1403, allocations: 4 kB / 337.9 MB, free: 2.395 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0009118/0.1412, allocations: 159.9 kB / 338 MB, free: 2.238 MB / 282.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.0002358/0.1415, allocations: 123.2 kB / 338.1 MB, free: 2.109 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001202/0.1427, allocations: 471.2 kB / 338.6 MB, free: 1.637 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.417e-06/0.1427, allocations: 3.938 kB / 338.6 MB, free: 1.633 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005205/0.1432, allocations: 248.3 kB / 338.8 MB, free: 1.379 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001069/0.1443, allocations: 170.9 kB / 339 MB, free: 1.215 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003324/0.1477, allocations: 1.771 MB / 340.8 MB, free: 15.38 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000799/0.1485, allocations: 0.9568 MB / 341.7 MB, free: 14.39 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001705/0.1487, allocations: 59.36 kB / 341.8 MB, free: 14.34 MB / 298.7 MB Notification: Performance of SimCode: time 1.777e-06/0.1487, allocations: 4 kB / 341.8 MB, free: 14.34 MB / 298.7 MB Notification: Performance of Templates: time 0.0227/0.1714, allocations: 12.58 MB / 354.4 MB, free: 1.773 MB / 298.7 MB