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.DCSE_SinglePhase.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.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadModel(Modelica): time 1.765/1.765, allocations: 171.2 MB / 187.3 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003557/0.0003558, allocations: 11.98 kB / 233.8 MB, free: 3.074 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08302/0.0834, allocations: 38.77 MB / 272.6 MB, free: 12.22 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4048/0.4883, allocations: 88.87 MB / 361.4 MB, free: 1.496 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003537/0.4887, allocations: 90.19 kB / 361.5 MB, free: 1.445 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1255/0.6142, allocations: 28.7 MB / 390.2 MB, free: 9.234 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.795e-06/0.6143, allocations: 0 / 390.2 MB, free: 9.234 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001139/0.6144, allocations: 24 kB / 390.2 MB, free: 9.211 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.004055/0.6184, allocations: 1.282 MB / 391.5 MB, free: 7.961 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.804e-05/0.6185, allocations: 8.031 kB / 391.5 MB, free: 7.953 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001166/0.6197, allocations: 202.3 kB / 391.7 MB, free: 7.754 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002589/0.6223, allocations: 0.8079 MB / 392.5 MB, free: 7.078 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.713e-05/0.6224, allocations: 73.62 kB / 392.6 MB, free: 7.039 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002362/0.6227, allocations: 103.9 kB / 392.7 MB, free: 6.969 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002802/0.6255, allocations: 0.9421 MB / 393.6 MB, free: 6.309 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.112e-05/0.6256, allocations: 7.922 kB / 393.7 MB, free: 6.301 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001311/0.6257, allocations: 43.06 kB / 393.7 MB, free: 6.289 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.391e-05/0.6258, allocations: 24 kB / 393.7 MB, free: 6.266 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002254/0.6281, allocations: 0.6627 MB / 394.4 MB, free: 5.828 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009415/0.6375, allocations: 3.958 MB / 398.3 MB, free: 1.887 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001246/0.6388, allocations: 468.5 kB / 398.8 MB, free: 1.398 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.561e-05/0.6389, allocations: 4 kB / 398.8 MB, free: 1.395 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.357e-05/0.6389, allocations: 38.56 kB / 398.8 MB, free: 1.348 MB / 314.7 MB Notification: Performance of pre-optimization done (n=43): time 3.296e-06/0.6389, allocations: 0 / 398.8 MB, free: 1.348 MB / 314.7 MB Notification: Performance of matching and sorting (n=48): time 0.005033/0.644, allocations: 1.517 MB / 400.4 MB, free: 15.75 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.785e-05/0.6441, allocations: 81.55 kB / 400.4 MB, free: 15.66 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001732/0.6459, allocations: 0.7981 MB / 401.2 MB, free: 14.85 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.879e-05/0.646, allocations: 41.69 kB / 401.3 MB, free: 14.8 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000559/0.6466, allocations: 0.5706 MB / 401.8 MB, free: 14.23 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002192/0.6468, allocations: 165.6 kB / 402 MB, free: 14.06 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.792e-05/0.6468, allocations: 16 kB / 402 MB, free: 14.05 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001876/0.647, allocations: 346.8 kB / 402.4 MB, free: 13.7 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007162/0.6478, allocations: 185.9 kB / 402.5 MB, free: 13.52 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009063/0.6487, allocations: 480 kB / 403 MB, free: 12.92 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008233/0.6495, allocations: 256.7 kB / 403.3 MB, free: 12.67 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.878e-06/0.6496, allocations: 7.938 kB / 403.3 MB, free: 12.66 MB / 330.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002235/0.6518, allocations: 0.7476 MB / 404 MB, free: 11.9 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.176e-05/0.6519, allocations: 12.03 kB / 404 MB, free: 11.89 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.146e-05/0.6519, allocations: 8 kB / 404 MB, free: 11.88 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000426/0.6523, allocations: 85.67 kB / 404.1 MB, free: 11.79 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001044/0.6534, allocations: 159.7 kB / 404.3 MB, free: 11.64 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003533/0.657, allocations: 2.931 MB / 407.2 MB, free: 8.43 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001283/0.6583, allocations: 51.91 kB / 407.3 MB, free: 8.379 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.284e-05/0.6584, allocations: 36 kB / 407.3 MB, free: 8.344 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (87): * Single equations (assignments): 85 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007274/0.6591, allocations: 261.5 kB / 407.5 MB, free: 8.078 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002299/0.6594, allocations: 90.88 kB / 407.6 MB, free: 7.988 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001744/0.6611, allocations: 0.5262 MB / 408.2 MB, free: 7.449 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-05/0.6612, allocations: 8 kB / 408.2 MB, free: 7.441 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.6612, allocations: 0 / 408.2 MB, free: 7.441 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.967e-06/0.6612, allocations: 7.984 kB / 408.2 MB, free: 7.434 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004032/0.6652, allocations: 1.466 MB / 409.6 MB, free: 5.879 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.093e-06/0.6653, allocations: 0 / 409.6 MB, free: 5.879 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006649/0.666, allocations: 83.83 kB / 409.7 MB, free: 5.797 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003597/0.6664, allocations: 77.66 kB / 409.8 MB, free: 5.715 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.394e-05/0.6664, allocations: 12.19 kB / 409.8 MB, free: 5.703 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003514/0.6699, allocations: 2.916 MB / 412.7 MB, free: 2.523 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.522e-06/0.67, allocations: 4 kB / 412.7 MB, free: 2.52 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002565/0.6726, allocations: 0.8362 MB / 413.6 MB, free: 1.633 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005606/0.6732, allocations: 204 kB / 413.8 MB, free: 1.414 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001997/0.6734, allocations: 15.95 kB / 413.8 MB, free: 1.398 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008665/0.6743, allocations: 39.97 kB / 413.8 MB, free: 1.359 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001382/0.6744, allocations: 39.89 kB / 413.9 MB, free: 1.32 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.16e-05/0.6745, allocations: 12 kB / 413.9 MB, free: 1.309 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001285/0.6758, allocations: 0.542 MB / 414.4 MB, free: 0.7695 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.9e-07/0.6758, allocations: 0 / 414.4 MB, free: 0.7695 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002224/0.678, allocations: 247.9 kB / 414.7 MB, free: 0.5273 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (41): * Single equations (assignments): 39 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007049/0.6788, allocations: 297.8 kB / 414.9 MB, free: 232 kB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002219/0.681, allocations: 0.7302 MB / 415.7 MB, free: 15.47 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/0.6811, allocations: 0 / 415.7 MB, free: 15.47 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001223/0.6823, allocations: 482.4 kB / 416.1 MB, free: 14.98 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001838/0.6842, allocations: 219.2 kB / 416.4 MB, free: 14.77 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00523/0.6894, allocations: 2.18 MB / 418.5 MB, free: 12.53 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008813/0.6904, allocations: 1.04 MB / 419.6 MB, free: 11.46 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003424/0.6907, allocations: 67.44 kB / 419.6 MB, free: 11.4 MB / 346.7 MB Notification: Performance of SimCode: time 1.252e-06/0.6907, allocations: 0 / 419.6 MB, free: 11.4 MB / 346.7 MB Notification: Performance of Templates: time 0.2927/0.9834, allocations: 21.27 MB / 440.9 MB, free: 91.83 MB / 346.7 MB