Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.669/1.669, allocations: 171.2 MB / 187.3 MB, free: 1.043 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004833/0.0004834, allocations: 12 kB / 233.8 MB, free: 3.059 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1018, allocations: 38.76 MB / 272.5 MB, free: 12.21 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3937/0.4955, allocations: 85.13 MB / 357.7 MB, free: 5.035 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003076/0.4959, allocations: 89.39 kB / 357.8 MB, free: 4.984 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1854/0.6813, allocations: 42.84 MB / 400.6 MB, free: 15.83 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.116e-06/0.6814, allocations: 3.938 kB / 400.6 MB, free: 15.83 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001673/0.6815, allocations: 36 kB / 400.6 MB, free: 15.79 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.006554/0.6881, allocations: 1.829 MB / 402.5 MB, free: 13.91 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.675e-05/0.6882, allocations: 8.031 kB / 402.5 MB, free: 13.9 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001632/0.6898, allocations: 289.7 kB / 402.8 MB, free: 13.61 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004462/0.6943, allocations: 1.208 MB / 404 MB, free: 12.35 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001722/0.6945, allocations: 119.1 kB / 404.1 MB, free: 12.23 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005275/0.6951, allocations: 155.9 kB / 404.2 MB, free: 12.08 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004669/0.6997, allocations: 1.508 MB / 405.8 MB, free: 10.51 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.773e-05/0.6999, allocations: 15.84 kB / 405.8 MB, free: 10.49 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002226/0.7001, allocations: 64 kB / 405.8 MB, free: 10.43 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.532e-05/0.7002, allocations: 36 kB / 405.9 MB, free: 10.39 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00417/0.7044, allocations: 1.08 MB / 406.9 MB, free: 9.309 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01551/0.7199, allocations: 6.42 MB / 413.4 MB, free: 2.582 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002612/0.7226, allocations: 0.6467 MB / 414 MB, free: 1.922 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.361e-05/0.7227, allocations: 12.56 kB / 414 MB, free: 1.91 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.849e-05/0.7228, allocations: 43.08 kB / 414.1 MB, free: 1.859 MB / 330.7 MB Notification: Performance of pre-optimization done (n=66): time 1.082e-05/0.7228, allocations: 3.984 kB / 414.1 MB, free: 1.855 MB / 330.7 MB Notification: Performance of matching and sorting (n=72): time 0.009286/0.7321, allocations: 2.514 MB / 416.6 MB, free: 15.25 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.303e-05/0.7322, allocations: 115.5 kB / 416.7 MB, free: 15.11 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002981/0.7352, allocations: 1.243 MB / 417.9 MB, free: 13.85 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000168/0.7354, allocations: 33.7 kB / 418 MB, free: 13.81 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008217/0.7363, allocations: 0.8428 MB / 418.8 MB, free: 12.96 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003455/0.7366, allocations: 260.3 kB / 419.1 MB, free: 12.7 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.885e-05/0.7367, allocations: 20 kB / 419.1 MB, free: 12.68 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002139/0.7369, allocations: 358.8 kB / 419.4 MB, free: 12.32 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001117/0.7381, allocations: 306.5 kB / 419.7 MB, free: 12.02 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001463/0.7395, allocations: 0.7529 MB / 420.5 MB, free: 11.06 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001361/0.7409, allocations: 419 kB / 420.9 MB, free: 10.65 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.153e-05/0.741, allocations: 4 kB / 420.9 MB, free: 10.64 MB / 346.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.004185/0.7452, allocations: 1.226 MB / 422.1 MB, free: 9.402 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.194e-05/0.7452, allocations: 20.52 kB / 422.2 MB, free: 9.383 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.003e-05/0.7453, allocations: 16 kB / 422.2 MB, free: 9.367 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008525/0.7461, allocations: 146.4 kB / 422.3 MB, free: 9.215 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001832/0.748, allocations: 263.6 kB / 422.6 MB, free: 8.957 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005821/0.7539, allocations: 4.344 MB / 426.9 MB, free: 4.211 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001743/0.7556, allocations: 55.98 kB / 427 MB, free: 4.156 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001778/0.7558, allocations: 59.98 kB / 427 MB, free: 4.098 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.00117/0.757, allocations: 357.4 kB / 427.4 MB, free: 3.738 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004389/0.7575, allocations: 142.2 kB / 427.5 MB, free: 3.598 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003379/0.7609, allocations: 0.892 MB / 428.4 MB, free: 2.684 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.289e-05/0.7609, allocations: 8 kB / 428.4 MB, free: 2.676 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.206e-06/0.761, allocations: 4 kB / 428.4 MB, free: 2.672 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.293e-05/0.761, allocations: 3.984 kB / 428.4 MB, free: 2.668 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00679/0.7678, allocations: 2.365 MB / 430.8 MB, free: 192 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-05/0.7678, allocations: 4 kB / 430.8 MB, free: 188 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001208/0.7691, allocations: 127.9 kB / 430.9 MB, free: 60 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2332/1.002, allocations: 141.3 kB / 431.1 MB, free: 85.91 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000153/1.002, allocations: 25.09 kB / 431.1 MB, free: 85.91 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00573/1.008, allocations: 4.493 MB / 435.6 MB, free: 82.12 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.524e-06/1.008, allocations: 6.75 kB / 435.6 MB, free: 82.12 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004505/1.013, allocations: 1.373 MB / 436.9 MB, free: 81.84 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008775/1.014, allocations: 279.7 kB / 437.2 MB, free: 81.75 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003614/1.014, allocations: 19.34 kB / 437.2 MB, free: 81.75 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001139/1.015, allocations: 48.8 kB / 437.3 MB, free: 81.75 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002001/1.015, allocations: 62.39 kB / 437.4 MB, free: 81.74 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.177e-05/1.016, allocations: 23.09 kB / 437.4 MB, free: 81.74 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002163/1.018, allocations: 0.8316 MB / 438.2 MB, free: 81.63 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.11e-07/1.018, allocations: 1.094 kB / 438.2 MB, free: 81.63 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002334/1.02, allocations: 375.4 kB / 438.6 MB, free: 81.63 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.0008321/1.021, allocations: 384.2 kB / 438.9 MB, free: 81.53 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003264/1.024, allocations: 1.157 MB / 440.1 MB, free: 81.19 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.488e-06/1.024, allocations: 4.75 kB / 440.1 MB, free: 81.19 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001724/1.026, allocations: 0.7028 MB / 440.8 MB, free: 80.86 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002826/1.029, allocations: 335.5 kB / 441.1 MB, free: 80.84 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009752/1.039, allocations: 3.627 MB / 444.8 MB, free: 79.1 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00124/1.04, allocations: 1.25 MB / 446 MB, free: 78.36 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006017/1.041, allocations: 98.3 kB / 446.1 MB, free: 78.36 MB / 346.7 MB Notification: Performance of SimCode: time 1.032e-06/1.041, allocations: 1.312 kB / 446.1 MB, free: 78.36 MB / 346.7 MB Notification: Performance of Templates: time 0.06262/1.103, allocations: 39.9 MB / 486 MB, free: 66.9 MB / 346.7 MB