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_withLosses.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_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadModel(Modelica): time 1.887/1.887, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003659/0.0003661, allocations: 12 kB / 263.9 MB, free: 13.6 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08295/0.08335, allocations: 44.5 MB / 308.4 MB, free: 1.023 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.0154/0.0988, allocations: 9.68 MB / 318 MB, free: 7.305 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007443/0.1063, allocations: 3.211 MB / 321.3 MB, free: 4.086 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001841/0.1082, allocations: 35.94 kB / 321.3 MB, free: 4.051 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002048/0.1103, allocations: 0.5207 MB / 321.8 MB, free: 3.527 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003079/0.1134, allocations: 0.7673 MB / 322.6 MB, free: 2.758 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001277/0.1147, allocations: 235.8 kB / 322.8 MB, free: 2.527 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004255/0.119, allocations: 1.709 MB / 324.5 MB, free: 0.8125 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001557/0.1206, allocations: 0.6794 MB / 325.2 MB, free: 108 kB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001471/0.1221, allocations: 0.7042 MB / 325.9 MB, free: 15.4 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001452/0.1236, allocations: 0.7777 MB / 326.7 MB, free: 14.62 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000471/0.1241, allocations: 104 kB / 326.8 MB, free: 14.52 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007993/0.1249, allocations: 143.9 kB / 326.9 MB, free: 14.38 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003597/0.1253, allocations: 290.8 kB / 327.2 MB, free: 14.09 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007554/0.126, allocations: 404.7 kB / 327.6 MB, free: 13.69 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003238/0.1293, allocations: 2.173 MB / 329.8 MB, free: 11.51 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.672e-06/0.1293, allocations: 0 / 329.8 MB, free: 11.51 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.299e-06/0.1294, allocations: 0 / 329.8 MB, free: 11.51 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.465e-05/0.1294, allocations: 0 / 329.8 MB, free: 11.51 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.004072/0.1335, allocations: 1.833 MB / 331.6 MB, free: 9.617 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/0.1336, allocations: 8.031 kB / 331.6 MB, free: 9.609 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009505/0.1345, allocations: 253.5 kB / 331.9 MB, free: 9.359 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002771/0.1373, allocations: 1.071 MB / 332.9 MB, free: 8.23 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001294/0.1375, allocations: 115.1 kB / 333 MB, free: 8.117 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003279/0.1378, allocations: 163.8 kB / 333.2 MB, free: 7.957 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003758/0.1416, allocations: 1.488 MB / 334.7 MB, free: 6.406 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.839e-05/0.1417, allocations: 15.94 kB / 334.7 MB, free: 6.391 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001705/0.1419, allocations: 64 kB / 334.8 MB, free: 6.328 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.169e-05/0.142, allocations: 43.95 kB / 334.8 MB, free: 6.285 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003165/0.1451, allocations: 1.041 MB / 335.9 MB, free: 5.238 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01254/0.1577, allocations: 6.199 MB / 342.1 MB, free: 14.74 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001986/0.1597, allocations: 0.6154 MB / 342.7 MB, free: 14.12 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.151e-05/0.1598, allocations: 8.562 kB / 342.7 MB, free: 14.11 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.538e-05/0.1599, allocations: 43.12 kB / 342.7 MB, free: 14.06 MB / 298.7 MB Notification: Performance of pre-optimization done (n=66): time 3.961e-06/0.1599, allocations: 0 / 342.7 MB, free: 14.06 MB / 298.7 MB Notification: Performance of matching and sorting (n=72): time 0.007586/0.1675, allocations: 2.42 MB / 345.1 MB, free: 11.54 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001099/0.1677, allocations: 111.5 kB / 345.2 MB, free: 11.41 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002313/0.17, allocations: 1.208 MB / 346.5 MB, free: 10.18 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000106/0.1701, allocations: 37.7 kB / 346.5 MB, free: 10.14 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008041/0.171, allocations: 0.8312 MB / 347.3 MB, free: 9.301 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002886/0.1713, allocations: 256.3 kB / 347.6 MB, free: 9.047 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.407e-05/0.1713, allocations: 24 kB / 347.6 MB, free: 9.023 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002172/0.1716, allocations: 358.8 kB / 347.9 MB, free: 8.664 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000874/0.1725, allocations: 282.5 kB / 348.2 MB, free: 8.391 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001274/0.1737, allocations: 0.7304 MB / 349 MB, free: 7.445 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001056/0.1748, allocations: 410.9 kB / 349.4 MB, free: 7.043 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.585e-05/0.1749, allocations: 8 kB / 349.4 MB, free: 7.035 MB / 298.7 MB Notification: Performance of matching and sorting (n=145) (initialization): time 0.003198/0.1781, allocations: 1.194 MB / 350.6 MB, free: 5.824 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.912e-05/0.1781, allocations: 12 kB / 350.6 MB, free: 5.812 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.631e-05/0.1782, allocations: 16 kB / 350.6 MB, free: 5.797 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005924/0.1788, allocations: 139 kB / 350.7 MB, free: 5.652 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001115/0.1799, allocations: 255.6 kB / 351 MB, free: 5.402 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005494/0.1854, allocations: 4.317 MB / 355.3 MB, free: 0.6875 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001286/0.1868, allocations: 55.98 kB / 355.3 MB, free: 0.6328 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001636/0.187, allocations: 59.98 kB / 355.4 MB, free: 0.5742 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (138): * Single equations (assignments): 135 * 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: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0009482/0.1879, allocations: 361.7 kB / 355.8 MB, free: 216 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003207/0.1883, allocations: 146.2 kB / 355.9 MB, free: 68 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002572/0.1908, allocations: 0.853 MB / 356.8 MB, free: 15.19 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-05/0.1909, allocations: 8 kB / 356.8 MB, free: 15.18 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.127e-06/0.1909, allocations: 0 / 356.8 MB, free: 15.18 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.392e-05/0.1909, allocations: 7.984 kB / 356.8 MB, free: 15.18 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005717/0.1967, allocations: 2.275 MB / 359 MB, free: 12.79 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.384e-06/0.1967, allocations: 0.5625 kB / 359 MB, free: 12.79 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007611/0.1975, allocations: 139.8 kB / 359.2 MB, free: 12.65 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005891/0.1981, allocations: 138.5 kB / 359.3 MB, free: 12.5 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.9e-05/0.1982, allocations: 16 kB / 359.3 MB, free: 12.49 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005948/0.2042, allocations: 4.473 MB / 363.8 MB, free: 7.617 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.789e-06/0.2042, allocations: 11.88 kB / 363.8 MB, free: 7.605 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003388/0.2076, allocations: 1.329 MB / 365.1 MB, free: 6.207 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006823/0.2083, allocations: 259.4 kB / 365.4 MB, free: 5.934 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002179/0.2086, allocations: 19.98 kB / 365.4 MB, free: 5.914 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007535/0.2093, allocations: 39.97 kB / 365.5 MB, free: 5.875 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001808/0.2095, allocations: 68.38 kB / 365.5 MB, free: 5.809 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.628e-05/0.2096, allocations: 27.98 kB / 365.5 MB, free: 5.781 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001605/0.2112, allocations: 0.7844 MB / 366.3 MB, free: 4.996 MB / 314.7 MB Notification: Performance of sort global known variables: time 9.55e-07/0.2112, allocations: 0 / 366.3 MB, free: 4.996 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001712/0.213, allocations: 324 kB / 366.6 MB, free: 4.68 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * 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: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003101/0.2133, allocations: 139 kB / 366.8 MB, free: 4.531 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002769/0.2161, allocations: 1.121 MB / 367.9 MB, free: 3.371 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.478e-06/0.2161, allocations: 8 kB / 367.9 MB, free: 3.363 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001513/0.2177, allocations: 0.703 MB / 368.6 MB, free: 2.621 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002021/0.2197, allocations: 340.9 kB / 369 MB, free: 2.285 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2217/0.4415, allocations: 3.592 MB / 372.5 MB, free: 59.86 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002271/0.4438, allocations: 1.248 MB / 373.8 MB, free: 59.14 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008592/0.4448, allocations: 95.08 kB / 373.9 MB, free: 59.14 MB / 314.7 MB Notification: Performance of SimCode: time 2.955e-06/0.4448, allocations: 0.9688 kB / 373.9 MB, free: 59.14 MB / 314.7 MB Notification: Performance of Templates: time 0.08296/0.5278, allocations: 38.07 MB / 411.9 MB, free: 31.41 MB / 314.7 MB