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_withLosses.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_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadModel(Modelica): time 1.547/1.547, allocations: 171.2 MB / 186.8 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003539/0.0003541, allocations: 12 kB / 233.3 MB, free: 3.004 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06944/0.06982, allocations: 38.77 MB / 272 MB, free: 12.16 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3092/0.3791, allocations: 85.14 MB / 357.2 MB, free: 4.973 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000236/0.3793, allocations: 83.39 kB / 357.2 MB, free: 4.93 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1939/0.5732, allocations: 42.84 MB / 400.1 MB, free: 15.77 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.5733, allocations: 0 / 400.1 MB, free: 15.77 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001179/0.5734, allocations: 40 kB / 400.1 MB, free: 15.73 MB / 330.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.004606/0.578, allocations: 1.83 MB / 401.9 MB, free: 13.84 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.5781, allocations: 8.031 kB / 402 MB, free: 13.84 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001507/0.5796, allocations: 293.7 kB / 402.2 MB, free: 13.55 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003535/0.5832, allocations: 1.208 MB / 403.5 MB, free: 12.28 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001316/0.5834, allocations: 111.1 kB / 403.6 MB, free: 12.17 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003519/0.5837, allocations: 163.9 kB / 403.7 MB, free: 12.01 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003804/0.5875, allocations: 1.496 MB / 405.2 MB, free: 10.45 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.253e-05/0.5876, allocations: 7.844 kB / 405.2 MB, free: 10.45 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000194/0.5879, allocations: 68 kB / 405.3 MB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.42e-05/0.5879, allocations: 40 kB / 405.3 MB, free: 10.34 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00317/0.5911, allocations: 1.073 MB / 406.4 MB, free: 9.262 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01269/0.6038, allocations: 6.427 MB / 412.8 MB, free: 2.523 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002002/0.6058, allocations: 0.6466 MB / 413.5 MB, free: 1.863 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.753e-05/0.6059, allocations: 8.562 kB / 413.5 MB, free: 1.855 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.543e-05/0.606, allocations: 47.08 kB / 413.5 MB, free: 1.801 MB / 330.7 MB Notification: Performance of pre-optimization done (n=66): time 4.363e-06/0.606, allocations: 0 / 413.5 MB, free: 1.801 MB / 330.7 MB Notification: Performance of matching and sorting (n=72): time 0.007465/0.6135, allocations: 2.51 MB / 416 MB, free: 15.2 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000115/0.6136, allocations: 115.5 kB / 416.2 MB, free: 15.05 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002617/0.6163, allocations: 1.096 MB / 417.2 MB, free: 13.95 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001542/0.6165, allocations: 41.69 kB / 417.3 MB, free: 13.9 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008613/0.6174, allocations: 0.8391 MB / 418.1 MB, free: 13.05 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003454/0.6177, allocations: 256.3 kB / 418.4 MB, free: 12.8 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.268e-05/0.6178, allocations: 24 kB / 418.4 MB, free: 12.78 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002126/0.618, allocations: 358.8 kB / 418.8 MB, free: 12.42 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009067/0.619, allocations: 302.5 kB / 419 MB, free: 12.12 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001274/0.6202, allocations: 0.749 MB / 419.8 MB, free: 11.16 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001143/0.6214, allocations: 415 kB / 420.2 MB, free: 10.75 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.209e-05/0.6214, allocations: 7.938 kB / 420.2 MB, free: 10.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.003481/0.6249, allocations: 1.229 MB / 421.4 MB, free: 9.5 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.653e-05/0.625, allocations: 12 kB / 421.5 MB, free: 9.488 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.864e-05/0.6251, allocations: 12.59 kB / 421.5 MB, free: 9.477 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006742/0.6257, allocations: 150.4 kB / 421.6 MB, free: 9.32 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001213/0.627, allocations: 263.6 kB / 421.9 MB, free: 9.062 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005613/0.6326, allocations: 4.344 MB / 426.2 MB, free: 4.32 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001451/0.6341, allocations: 64.05 kB / 426.3 MB, free: 4.258 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001844/0.6343, allocations: 52 kB / 426.3 MB, free: 4.207 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * 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 (139): * Single equations (assignments): 136 * 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.001093/0.6354, allocations: 365.3 kB / 426.7 MB, free: 3.84 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003788/0.6358, allocations: 142.2 kB / 426.8 MB, free: 3.699 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002701/0.6385, allocations: 0.8806 MB / 427.7 MB, free: 2.797 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.349e-05/0.6386, allocations: 11.98 kB / 427.7 MB, free: 2.785 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-05/0.6386, allocations: 7.984 kB / 427.7 MB, free: 2.777 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.019e-05/0.6386, allocations: 4 kB / 427.7 MB, free: 2.773 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006145/0.6448, allocations: 2.372 MB / 430.1 MB, free: 292 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.255e-05/0.6448, allocations: 4 kB / 430.1 MB, free: 288 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007993/0.6456, allocations: 127.9 kB / 430.2 MB, free: 160 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000647/0.6463, allocations: 142.8 kB / 430.4 MB, free: 8 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.1969/0.8432, allocations: 13.55 kB / 430.4 MB, free: 85.76 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005203/0.8485, allocations: 4.503 MB / 434.9 MB, free: 81.97 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.903e-06/0.8486, allocations: 7.281 kB / 434.9 MB, free: 81.97 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003441/0.852, allocations: 1.565 MB / 436.5 MB, free: 81.41 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008284/0.8529, allocations: 279.9 kB / 436.7 MB, free: 81.32 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002754/0.8532, allocations: 21.84 kB / 436.7 MB, free: 81.32 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008405/0.854, allocations: 47.09 kB / 436.8 MB, free: 81.32 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001717/0.8542, allocations: 60.28 kB / 436.9 MB, free: 81.31 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.862e-05/0.8543, allocations: 24.11 kB / 436.9 MB, free: 81.31 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001895/0.8562, allocations: 0.8306 MB / 437.7 MB, free: 81.2 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.103e-06/0.8562, allocations: 0.5 kB / 437.7 MB, free: 81.2 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00223/0.8585, allocations: 373.2 kB / 438.1 MB, free: 81.2 MB / 346.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.0006713/0.8592, allocations: 383 kB / 438.4 MB, free: 81.11 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002598/0.8618, allocations: 1.163 MB / 439.6 MB, free: 80.76 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.609e-06/0.8618, allocations: 3.625 kB / 439.6 MB, free: 80.76 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001455/0.8633, allocations: 0.7016 MB / 440.3 MB, free: 80.43 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002198/0.8655, allocations: 344.3 kB / 440.7 MB, free: 80.41 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007986/0.8736, allocations: 3.623 MB / 444.3 MB, free: 78.66 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001096/0.8747, allocations: 1.246 MB / 445.5 MB, free: 77.93 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004746/0.8752, allocations: 95.23 kB / 445.6 MB, free: 77.93 MB / 346.7 MB Notification: Performance of SimCode: time 2.011e-06/0.8752, allocations: 0 / 445.6 MB, free: 77.93 MB / 346.7 MB Notification: Performance of Templates: time 0.04877/0.924, allocations: 39.9 MB / 485.5 MB, free: 66.36 MB / 346.7 MB