Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadModel(Modelica): time 1.917/1.917, allocations: 194.9 MB / 212.3 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003595/0.0003597, allocations: 8 kB / 264.5 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1502/0.1506, allocations: 44.49 MB / 309 MB, free: 1.043 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.467/0.6177, allocations: 90.27 MB / 399.2 MB, free: 14.73 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002725/0.618, allocations: 85.92 kB / 399.3 MB, free: 14.73 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1782/0.7962, allocations: 44.52 MB / 443.8 MB, free: 10.81 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.545e-06/0.7963, allocations: 0 / 443.8 MB, free: 10.81 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001729/0.7965, allocations: 39.94 kB / 443.9 MB, free: 10.77 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.006588/0.8031, allocations: 1.827 MB / 445.7 MB, free: 9.027 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.58e-05/0.8032, allocations: 11.97 kB / 445.7 MB, free: 9.016 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001797/0.805, allocations: 281.5 kB / 446 MB, free: 8.738 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004188/0.8092, allocations: 1.202 MB / 447.2 MB, free: 7.789 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000115/0.8093, allocations: 116.5 kB / 447.3 MB, free: 7.723 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003871/0.8097, allocations: 161.2 kB / 447.5 MB, free: 7.617 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004616/0.8144, allocations: 1.507 MB / 449 MB, free: 6.547 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.964e-05/0.8145, allocations: 2.594 kB / 449 MB, free: 6.547 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002069/0.8147, allocations: 75.38 kB / 449.1 MB, free: 6.523 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.093e-05/0.8148, allocations: 40 kB / 449.1 MB, free: 6.484 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003954/0.8187, allocations: 1.063 MB / 450.2 MB, free: 5.676 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01435/0.8331, allocations: 6.42 MB / 456.6 MB, free: 15 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002691/0.8359, allocations: 0.6343 MB / 457.2 MB, free: 14.36 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.688e-05/0.836, allocations: 12.56 kB / 457.2 MB, free: 14.35 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.956e-05/0.836, allocations: 39.12 kB / 457.3 MB, free: 14.3 MB / 346.7 MB Notification: Performance of pre-optimization done (n=66): time 3.527e-06/0.836, allocations: 3.938 kB / 457.3 MB, free: 14.3 MB / 346.7 MB Notification: Performance of matching and sorting (n=72): time 0.008625/0.8447, allocations: 2.482 MB / 459.7 MB, free: 11.72 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.825e-05/0.8448, allocations: 115.4 kB / 459.9 MB, free: 11.58 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002651/0.8475, allocations: 1.243 MB / 461.1 MB, free: 10.32 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.605e-05/0.8476, allocations: 37.7 kB / 461.1 MB, free: 10.28 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007897/0.8484, allocations: 0.8425 MB / 462 MB, free: 9.434 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002873/0.8487, allocations: 258.7 kB / 462.2 MB, free: 9.184 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.488e-05/0.8488, allocations: 20 kB / 462.3 MB, free: 9.164 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001772/0.849, allocations: 358.7 kB / 462.6 MB, free: 8.805 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001064/0.85, allocations: 294.5 kB / 462.9 MB, free: 8.52 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001438/0.8515, allocations: 0.7451 MB / 463.6 MB, free: 7.562 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001309/0.8528, allocations: 423 kB / 464 MB, free: 7.148 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.086e-05/0.8528, allocations: 4 kB / 464.1 MB, free: 7.145 MB / 346.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.003828/0.8567, allocations: 1.222 MB / 465.3 MB, free: 5.906 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.259e-05/0.8567, allocations: 12 kB / 465.3 MB, free: 5.895 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.671e-05/0.8568, allocations: 16 kB / 465.3 MB, free: 5.879 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008152/0.8576, allocations: 146.6 kB / 465.4 MB, free: 5.727 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001657/0.8593, allocations: 259.6 kB / 465.7 MB, free: 5.473 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005688/0.865, allocations: 4.344 MB / 470 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001748/0.8668, allocations: 59.89 kB / 470.1 MB, free: 0.6641 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001192/0.8669, allocations: 63.98 kB / 470.2 MB, free: 0.6016 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.001069/0.868, allocations: 357.3 kB / 470.5 MB, free: 248 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002961/0.8683, allocations: 138.3 kB / 470.6 MB, free: 108 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003181/0.8715, allocations: 0.8791 MB / 471.5 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.396e-05/0.8715, allocations: 8 kB / 471.5 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.8715, allocations: 128 / 471.5 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.299e-05/0.8716, allocations: 11.98 kB / 471.5 MB, free: 15.19 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006883/0.8785, allocations: 2.35 MB / 473.9 MB, free: 12.74 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.154e-05/0.8785, allocations: 4 kB / 473.9 MB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00117/0.8797, allocations: 131.8 kB / 474 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008262/0.8805, allocations: 138.9 kB / 474.2 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.129e-05/0.8806, allocations: 20 kB / 474.2 MB, free: 12.44 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006372/0.887, allocations: 4.492 MB / 478.7 MB, free: 7.562 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.386e-06/0.8871, allocations: 11.92 kB / 478.7 MB, free: 7.551 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004401/0.8915, allocations: 1.36 MB / 480 MB, free: 6.121 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009754/0.8925, allocations: 279.4 kB / 480.3 MB, free: 5.828 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003129/0.8928, allocations: 20 kB / 480.3 MB, free: 5.809 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001108/0.894, allocations: 43.97 kB / 480.4 MB, free: 5.766 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002028/0.8942, allocations: 60.38 kB / 480.4 MB, free: 5.703 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.467e-05/0.8943, allocations: 24 kB / 480.5 MB, free: 5.68 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002066/0.8963, allocations: 0.8351 MB / 481.3 MB, free: 4.844 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.22e-07/0.8964, allocations: 0 / 481.3 MB, free: 4.844 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002259/0.8986, allocations: 368 kB / 481.7 MB, free: 4.484 MB / 362.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.0008395/0.8995, allocations: 392.5 kB / 482 MB, free: 4.129 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003252/0.9028, allocations: 1.149 MB / 483.2 MB, free: 2.938 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.304e-06/0.9028, allocations: 0 / 483.2 MB, free: 2.938 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001775/0.9046, allocations: 0.7226 MB / 483.9 MB, free: 2.176 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002795/0.9074, allocations: 332.8 kB / 484.2 MB, free: 1.848 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009841/0.9173, allocations: 3.63 MB / 487.9 MB, free: 14.14 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001208/0.9186, allocations: 1.252 MB / 489.1 MB, free: 12.86 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000591/0.9192, allocations: 99.42 kB / 489.2 MB, free: 12.76 MB / 378.7 MB Notification: Performance of SimCode: time 1.583e-06/0.9192, allocations: 0 / 489.2 MB, free: 12.76 MB / 378.7 MB Notification: Performance of Templates: time 0.07383/0.993, allocations: 39.84 MB / 0.5167 GB, free: 4.891 MB / 410.7 MB