Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadModel(Modelica): time 2.205/2.205, allocations: 194.9 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004937/0.0004938, allocations: 8 kB / 264.6 MB, free: 12.94 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1273/0.1278, allocations: 44.52 MB / 309.1 MB, free: 356 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01704/0.1449, allocations: 9.665 MB / 318.7 MB, free: 6.645 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007973/0.1529, allocations: 3.218 MB / 322 MB, free: 3.418 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001605/0.1546, allocations: 31.94 kB / 322 MB, free: 3.387 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002391/0.157, allocations: 0.5207 MB / 322.5 MB, free: 2.863 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003029/0.1601, allocations: 0.7634 MB / 323.3 MB, free: 2.098 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00106/0.1611, allocations: 247.7 kB / 323.5 MB, free: 1.855 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003922/0.1651, allocations: 1.701 MB / 325.2 MB, free: 152 kB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001438/0.1665, allocations: 0.6833 MB / 325.9 MB, free: 15.44 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001254/0.1678, allocations: 0.6848 MB / 326.6 MB, free: 14.75 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001242/0.1691, allocations: 0.7582 MB / 327.3 MB, free: 13.99 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002566/0.1694, allocations: 100 kB / 327.4 MB, free: 13.89 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005937/0.17, allocations: 143.9 kB / 327.6 MB, free: 13.75 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003474/0.1703, allocations: 294.7 kB / 327.9 MB, free: 13.46 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005224/0.1709, allocations: 400.7 kB / 328.3 MB, free: 13.06 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003473/0.1743, allocations: 2.127 MB / 330.4 MB, free: 10.93 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.1744, allocations: 0 / 330.4 MB, free: 10.93 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.815e-06/0.1744, allocations: 0 / 330.4 MB, free: 10.93 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.648e-05/0.1745, allocations: 0 / 330.4 MB, free: 10.93 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.005318/0.1798, allocations: 1.836 MB / 332.2 MB, free: 9.035 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.291e-05/0.1799, allocations: 8.031 kB / 332.2 MB, free: 9.027 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001163/0.1811, allocations: 257.5 kB / 332.5 MB, free: 8.773 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003068/0.1842, allocations: 1.071 MB / 333.6 MB, free: 7.645 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001404/0.1843, allocations: 115.1 kB / 333.7 MB, free: 7.531 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003591/0.1847, allocations: 155.9 kB / 333.8 MB, free: 7.379 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00409/0.1888, allocations: 1.477 MB / 335.3 MB, free: 5.84 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.416e-05/0.189, allocations: 11.89 kB / 335.3 MB, free: 5.828 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002036/0.1892, allocations: 60 kB / 335.4 MB, free: 5.77 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.146e-05/0.1892, allocations: 43.95 kB / 335.4 MB, free: 5.727 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003424/0.1927, allocations: 1.022 MB / 336.4 MB, free: 4.699 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01278/0.2055, allocations: 6.148 MB / 342.6 MB, free: 14.25 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00205/0.2076, allocations: 0.5685 MB / 343.1 MB, free: 13.68 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.259e-05/0.2077, allocations: 12.7 kB / 343.2 MB, free: 13.67 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.962e-05/0.2077, allocations: 39.12 kB / 343.2 MB, free: 13.62 MB / 298.7 MB Notification: Performance of pre-optimization done (n=66): time 3.757e-06/0.2078, allocations: 0 / 343.2 MB, free: 13.62 MB / 298.7 MB Notification: Performance of matching and sorting (n=72): time 0.007631/0.2154, allocations: 2.275 MB / 345.5 MB, free: 11.25 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.161e-05/0.2155, allocations: 115.5 kB / 345.6 MB, free: 11.11 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00238/0.2179, allocations: 1.177 MB / 346.8 MB, free: 9.914 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.751e-05/0.218, allocations: 41.7 kB / 346.8 MB, free: 9.867 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009047/0.2189, allocations: 0.853 MB / 347.7 MB, free: 9.004 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003071/0.2193, allocations: 260.3 kB / 347.9 MB, free: 8.746 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.672e-05/0.2194, allocations: 24 kB / 347.9 MB, free: 8.723 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001809/0.2196, allocations: 357.9 kB / 348.3 MB, free: 8.367 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000988/0.2206, allocations: 274.5 kB / 348.6 MB, free: 8.102 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001398/0.222, allocations: 0.7186 MB / 349.3 MB, free: 7.168 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00123/0.2232, allocations: 387 kB / 349.7 MB, free: 6.789 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.17e-05/0.2232, allocations: 4 kB / 349.7 MB, free: 6.785 MB / 298.7 MB Notification: Performance of matching and sorting (n=145) (initialization): time 0.003751/0.227, allocations: 1.213 MB / 350.9 MB, free: 5.555 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.866e-05/0.2271, allocations: 19.92 kB / 350.9 MB, free: 5.535 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.679e-05/0.2271, allocations: 16.5 kB / 350.9 MB, free: 5.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006144/0.2277, allocations: 110.5 kB / 351 MB, free: 5.402 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001633/0.2294, allocations: 259.5 kB / 351.3 MB, free: 5.148 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005152/0.2346, allocations: 4.196 MB / 355.5 MB, free: 0.5547 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001465/0.2361, allocations: 60.14 kB / 355.5 MB, free: 0.4961 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001313/0.2362, allocations: 52.12 kB / 355.6 MB, free: 456 kB / 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.0009218/0.2372, allocations: 349.4 kB / 355.9 MB, free: 96 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003597/0.2375, allocations: 146.3 kB / 356.1 MB, free: 15.95 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002749/0.2403, allocations: 0.7944 MB / 356.8 MB, free: 15.13 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.19e-05/0.2403, allocations: 0 / 356.8 MB, free: 15.13 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.2404, allocations: 0 / 356.8 MB, free: 15.13 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006791/0.241, allocations: 259.2 kB / 357.1 MB, free: 14.86 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002951/0.2414, allocations: 16 kB / 357.1 MB, free: 14.84 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009221/0.2423, allocations: 35.92 kB / 357.2 MB, free: 14.81 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001589/0.2425, allocations: 56.56 kB / 357.2 MB, free: 14.75 MB / 314.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00353/0.246, allocations: 0.804 MB / 358 MB, free: 13.93 MB / 314.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.003174/0.2492, allocations: 1.117 MB / 359.1 MB, free: 12.8 MB / 314.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0008337/0.2501, allocations: 249.1 kB / 359.4 MB, free: 12.55 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001733/0.2519, allocations: 0.7766 MB / 360.1 MB, free: 11.78 MB / 314.7 MB Notification: Performance of Backend: time 5.41e-07/0.2519, allocations: 0 / 360.1 MB, free: 11.78 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002934/0.2548, allocations: 0.9771 MB / 361.1 MB, free: 10.76 MB / 314.7 MB Notification: Performance of SimCode: time 0.009243/0.2641, allocations: 3.988 MB / 365.1 MB, free: 6.711 MB / 314.7 MB Notification: Performance of Templates: time 0.2904/0.5545, allocations: 15.23 MB / 380.3 MB, free: 58.39 MB / 314.7 MB