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.121/2.121, allocations: 194.9 MB / 211.7 MB, free: 2.883 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003484/0.0003484, allocations: 19.94 kB / 264.6 MB, free: 12.91 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1119, allocations: 44.51 MB / 309.1 MB, free: 344 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4953/0.6072, allocations: 90.27 MB / 399.3 MB, free: 15.3 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003188/0.6076, allocations: 85.5 kB / 399.4 MB, free: 15.3 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1767/0.7843, allocations: 44.51 MB / 443.9 MB, free: 10.38 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.366e-06/0.7844, allocations: 0 / 443.9 MB, free: 10.38 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002192/0.7846, allocations: 39.94 kB / 444 MB, free: 10.34 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.006946/0.7916, allocations: 1.83 MB / 445.8 MB, free: 8.586 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.405e-05/0.7917, allocations: 8.031 kB / 445.8 MB, free: 8.578 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001884/0.7936, allocations: 281.5 kB / 446.1 MB, free: 8.301 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004515/0.7981, allocations: 1.212 MB / 447.3 MB, free: 7.344 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00017/0.7984, allocations: 117.4 kB / 447.4 MB, free: 7.277 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005242/0.7989, allocations: 161.1 kB / 447.6 MB, free: 7.172 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004643/0.8036, allocations: 1.491 MB / 449 MB, free: 6.117 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.409e-05/0.8037, allocations: 6.891 kB / 449.1 MB, free: 6.113 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002131/0.8039, allocations: 69.33 kB / 449.1 MB, free: 6.094 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.753e-05/0.804, allocations: 40 kB / 449.2 MB, free: 6.055 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00401/0.808, allocations: 1.066 MB / 450.2 MB, free: 5.234 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01493/0.823, allocations: 6.417 MB / 456.6 MB, free: 14.56 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00281/0.8258, allocations: 0.6348 MB / 457.3 MB, free: 13.92 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.129e-05/0.826, allocations: 12.31 kB / 457.3 MB, free: 13.91 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.315e-05/0.826, allocations: 47.12 kB / 457.3 MB, free: 13.86 MB / 346.7 MB Notification: Performance of pre-optimization done (n=66): time 3.467e-06/0.826, allocations: 0 / 457.3 MB, free: 13.86 MB / 346.7 MB Notification: Performance of matching and sorting (n=72): time 0.009387/0.8354, allocations: 2.475 MB / 459.8 MB, free: 11.28 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000107/0.8356, allocations: 123.4 kB / 459.9 MB, free: 11.14 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003042/0.8387, allocations: 1.251 MB / 461.2 MB, free: 9.871 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001693/0.8389, allocations: 33.7 kB / 461.2 MB, free: 9.832 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000947/0.8398, allocations: 0.8674 MB / 462.1 MB, free: 8.961 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003503/0.8402, allocations: 251.9 kB / 462.3 MB, free: 8.715 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.495e-05/0.8403, allocations: 24 kB / 462.4 MB, free: 8.691 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001879/0.8405, allocations: 353.9 kB / 462.7 MB, free: 8.34 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001968/0.8425, allocations: 294.5 kB / 463 MB, free: 8.055 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001632/0.8442, allocations: 0.7335 MB / 463.7 MB, free: 7.109 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001341/0.8455, allocations: 422.9 kB / 464.1 MB, free: 6.695 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.309e-05/0.8456, allocations: 4 kB / 464.1 MB, free: 6.691 MB / 346.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.004413/0.85, allocations: 1.314 MB / 465.5 MB, free: 5.359 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.932e-05/0.8501, allocations: 12.59 kB / 465.5 MB, free: 5.348 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.455e-05/0.8501, allocations: 16 kB / 465.5 MB, free: 5.332 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008571/0.851, allocations: 154.5 kB / 465.6 MB, free: 5.172 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001687/0.8527, allocations: 259.6 kB / 465.9 MB, free: 4.918 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005893/0.8586, allocations: 4.34 MB / 470.2 MB, free: 180 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001742/0.8604, allocations: 64 kB / 470.3 MB, free: 116 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001411/0.8605, allocations: 56 kB / 470.3 MB, free: 60 kB / 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.001074/0.8616, allocations: 361.3 kB / 470.7 MB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003356/0.862, allocations: 142.3 kB / 470.8 MB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00328/0.8653, allocations: 0.8764 MB / 471.7 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.485e-05/0.8653, allocations: 8 kB / 471.7 MB, free: 14.65 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/0.8653, allocations: 0 / 471.7 MB, free: 14.65 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-05/0.8654, allocations: 11.98 kB / 471.7 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007409/0.8728, allocations: 2.343 MB / 474.1 MB, free: 12.19 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.51e-05/0.8728, allocations: 4 kB / 474.1 MB, free: 12.19 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001183/0.874, allocations: 131.8 kB / 474.2 MB, free: 12.06 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008402/0.8749, allocations: 146.4 kB / 474.3 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.776e-05/0.875, allocations: 19.98 kB / 474.4 MB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006668/0.8817, allocations: 4.489 MB / 478.9 MB, free: 7.012 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.18e-05/0.8817, allocations: 11.94 kB / 478.9 MB, free: 7 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004476/0.8862, allocations: 1.36 MB / 480.2 MB, free: 5.57 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009037/0.8872, allocations: 283.3 kB / 480.5 MB, free: 5.273 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003869/0.8876, allocations: 23.98 kB / 480.5 MB, free: 5.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00119/0.8888, allocations: 39.97 kB / 480.6 MB, free: 5.211 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002031/0.889, allocations: 60.39 kB / 480.6 MB, free: 5.148 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.44e-05/0.8891, allocations: 27.98 kB / 480.7 MB, free: 5.121 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002187/0.8913, allocations: 0.8273 MB / 481.5 MB, free: 4.293 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.91e-07/0.8914, allocations: 0 / 481.5 MB, free: 4.293 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002337/0.8937, allocations: 376 kB / 481.8 MB, free: 3.926 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.0008427/0.8946, allocations: 387.4 kB / 482.2 MB, free: 3.574 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003357/0.898, allocations: 1.148 MB / 483.4 MB, free: 2.383 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.795e-06/0.898, allocations: 0.8125 kB / 483.4 MB, free: 2.383 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001862/0.8999, allocations: 0.7263 MB / 484.1 MB, free: 1.617 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0028/0.9027, allocations: 329.6 kB / 484.4 MB, free: 1.293 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01075/0.9135, allocations: 3.581 MB / 488 MB, free: 13.64 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001283/0.9149, allocations: 1.253 MB / 489.3 MB, free: 12.36 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00136/0.9163, allocations: 175.7 kB / 489.4 MB, free: 12.18 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003884/0.9167, allocations: 87.42 kB / 489.5 MB, free: 12.09 MB / 378.7 MB Notification: Performance of SimCode: time 1.032e-06/0.9167, allocations: 0 / 489.5 MB, free: 12.09 MB / 378.7 MB Notification: Performance of Templates: time 0.06018/0.9769, allocations: 19.15 MB / 0.4967 GB, free: 9.004 MB / 394.7 MB